Description
As per this Slack discussion and also based on the Editing active experiments documentation, we decided to prevent the edition of the parts of the configuration of experiments and instruments that shouldn't change during their lifetime. To prevent issues, we decided to set the following fields as read-only when users try to edit artifacts once they was activated for the first time (see T379355: MPIC: Register the fact that an instrument/experiment has been activated for the first time for related context):
- Experiment form: Experiment name, feature variants, location, sample rate, sample unit.
- Instrument form: Instrument name
- Modification flow should be simplified by removing the "What would you like to do?" field from the form
In addition to that, through T373907: MPIC: Improve application copy some messages will be added to the UI to let users know when these fields will no longer be modifiable
Acceptance Criteria
- The fields that define parts of the experiment or instrument configurations that shouldn't change throughout their lifetimes, should be displayed as read only when users try to edit their artifacts
- A tooltip message is displayed on hover to indicate the reason why the specified fields cannot be edited (copy: "This field cannot be edited after the {artifact} is activated")
- We remove the "What would you like to do?" field from the modification form