Remember scan parameter settings when navigating between parameters#113
Open
beitler wants to merge 3 commits into
Open
Remember scan parameter settings when navigating between parameters#113beitler wants to merge 3 commits into
beitler wants to merge 3 commits into
Conversation
mastadle
reviewed
Jun 4, 2026
Contributor
|
Great. I think it's a good idea to move the value generation to submit job. You will have to regenerate the static assets before you can merge. |
Contributor
|
Another idea just came up and maybe @FlorenceBerterottiere can comment on it: You can change the namespace or display group and ICON currently does not remember the last parameter that was selected. To achieve this, we would need another dictionary from namespace to display group and one from display group to parameter. It's quite related to what's currently happening in this PR. But we can leave that for the next PR after this implementation has received some testing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #108
Background
In the Experiment Page, the user is expected to configure a range scan for one or more parameters.
The fields
Namespace,Display GroupandParameterconstruct the hierarchical identifier to the parameter to be scanned. The fieldsstart,stop,pointsandscan pattern(the value range generator) define how the parameter value range is calculated.Problem Statement
When navigating between different parameters (i.e. choosing different
Namespace/Display Group/Parametertuples) the values ofstart,stop,pointsandscan patternare left unchanged. This can lead the user being presented with infeasible value ranges for their parameters.The background of this behavior is that the browser's local storage persist only the value range generators for the currently selected parameter(s).
before.mov
Solution Proposal
A possible solution is to extend the
ScanInfoStatein the local storage with a list of parameter value range generators for previously configured but not currently shown parameters. When a new parameter is selected in the drop down, the past value range generator is fetched from the browser's local storage if present, otherwise a global default is loaded.after.mov
Notes
valuesfrom theScanParameterInfoto avoid the browser potentially having to materialize a large value lists in case the user accidentally enters a large number ofpoints. Now, thevalueslist gets generated when the job is submitted, i.e. after input validation.start,stop,pointsfield should be pre-populated with parameter-specfic reasonable defaultsstart,stop,pointsfields should be validated against parameter-specfic validatorsstart,stop,pointsfields currently don't allow to clear the value, only overwrite is possible. It should be made possible to completely clear the value.