mxcube / mxcubecore

Backend used by MXCuBE
http://mxcube.github.io/mxcube/
GNU Lesser General Public License v3.0
11 stars 51 forks source link

Add Specification for GPHL Json Schema form #815

Closed jbflo closed 8 months ago

jbflo commented 8 months ago

Update for Current form query_pre_strategy_params renames ui filed keys for better display of form

github-actions[bot] commented 8 months ago

Coverage

Coverage Report •
FileStmtsMissCoverMissing
mxcubecore/HardwareObjects/Gphl
   GphlWorkflow.py127212720%4–3032
TOTAL60524562077% 

Tests Skipped Failures Errors Time
1921 0 :zzz: 0 :x: 0 :fire: 1m 36s :stopwatch:
rhfogh commented 8 months ago

Looking good, but a quick discussion needed.

Two changes here, near as I can see:

Anyway, once we agree on this one, do you want me to make a new PR where I expand this to make the same changes in query_collection_strategy as in query_pre_strategy_params, and rebase it on the current tip (and make sure I adapt the qt version to it, which I need to do anyway). If you prefer I can leave it to you, of course.

jbflo commented 8 months ago

Hope they are not a big breaking to the qt.

I also will need to add some Changes to the uiSchema ditct cause it does not work in the Web UI .

You can Please push your Changes to this Branch if you like , so won't need to create another PR. If they are Related to the Schemas and UISchema.

rhfogh commented 8 months ago

OK, without value_dict there is no way of setting a pulldown where the visible labels are different from the values returned. So far we are not using that, so it is not too big a deal. I guess that means we should simply get rid of value_dict, which we can do, and find another way of transforming from the visible label to a desired value if we ever need it. The UI schema will be more interesting - here there might well be harder to find a way to get the kind of control over the generated UI that we have currently in Qt.

I have no pending changes, but there is a recent merge in mxcubecore that means that the jb-rasmus-gphl branch will need to be rebased on develop before the PR can be merged. I do not think there should be any clashes, but there are some changes in GphlWorkflow not too far away from yours. Anyway, I leave that to you.