Use layout name/acronym for the Layout API
It would be better to use layout aconym instead of layout index in the API.
Related to !249 (merged)
It exists both SWITCH_LAYOUT
, SWITCH_LAYOUT_SLUG
, but the index is stored, not the acronym.
It would be safer to do the reverse.
- sanity check on server side:
- acroynym have to be mandatory
- acroynym have to be unique
- on client side
- if the acronym is not found a dedicated error page should be displayed
An extra change would be to load a main
layout by default, is defined (else still index 0). This could be used as hub in beamlines. It is what i expect to have to select the kind of experiment. THis can be switch into another issue.