Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG FIX] [MER-4131] | Dig into chem labs simulations #5369

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dtiwarATS
Copy link
Contributor

@dtiwarATS dtiwarATS commented Jan 24, 2025

Hey @bsparks, could you please look at this PR? Thanks

I have updated the condition (to make sure that the partId variable is used in _PREVIEW MODE ONLY & NOT SENT TO SERVER_) to resolve the earlier issue where this was causing the part responses not to be saved on server hence resume mode and review mode was not working.

I have tested it with the preview mode / Resume mode / Review Mode and part responses are getting saved and are pre-filled in review mode.

Comment from the original PR where the changes were made (just for reference)-> #5282

Previously, we did not save the variable type received during the handshake with the CAPI component. As a result, in the Inspector preview tool, the variable type was auto-detected based on its value. This approach caused issues with variables of type ENUM, as ENUMs require a dropdown with allowed values to be displayed. Instead, the current implementation incorrectly shows a text input because it was thinking ENUM values as string.

To address this specifically for the preview mode (Inspector tool), I have introduced a new variable, stage.${partId}.variables.Type, in the scripting (PREVIEW MODE ONLY & NOT SENT TO SERVER). This variable stores all variables along with their types and allowed values, ensuring correct representation in the preview tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants