Preview (dry run) feature for services
Hello,
In previous versions, Onyxia had a feature that let the user get the Kubernetes contracts that would be deployed.
The API still has a dryRun parameter that can be used to get the contracts without deploying the service (see https://github.com/InseeFrLab/onyxia-api/blob/master/onyxia-model/src/main/java/fr/insee/onyxia/model/dto/CreateServiceDTO.java#L54).
I suggest we bring back the preview button (could be an eye icon or something like that).
We have to make sure the average user is not confused by this button. We can either hide it behind the beta-test flag or use some UX trick to make the user aware this is just a preview button.
@marchufschmitt We just have to decide on the UI.
One approach that can be easily implemented is to put a button that, when click, triggers the download of a contract.json file.
At the first time, we decided to review this feature with a icon to display a code zone with the conctract inside. Now you want download a files? I'm not convinced by this... I find that it's a frustration for the user to have a files on his desktop if he use a online workspace... What do you think? (below a screenshot of my last mockup

And at the same time, we can maybe resolve this issue too https://github.com/InseeFrLab/onyxia-web/issues/266#issue-1034845568
@olevitt still want this feature ?
It may be useful but it's not top priority at all especially given we now have to corresponding helm command displayed to the user