tljh-repo2docker icon indicating copy to clipboard operation
tljh-repo2docker copied to clipboard

Prevent to create an environnement with existing name

Open pierrepo opened this issue 4 years ago • 4 comments

User can provide any name for its environment.

If 2 environments have the same name, conflicts could occur.

On should prevent the creation of an environment with an already existing name.

pierrepo avatar Jul 06 '20 09:07 pierrepo

It might still be useful to be able to reuse an existing name.

For example a teacher could prepare a new environment with the same name, keeping the old one available while the new one is building. Once the new one is available, the old one can be removed by clicking on the remove button (a bit like a rolling upgrade).

jtpio avatar Jul 07 '20 11:07 jtpio

An alternative could be to display a hint in the dialog window, by checking the list of existing environments client side (without enforcing it server side)

jtpio avatar Jul 07 '20 11:07 jtpio

Having twice (or more) the same env name could be very confusing.

Even the case of a rolling update might not be easily handled by teachers.

display a hint in the dialog window, by checking the list of existing environments client side

Yes. Definitely.

pierrepo avatar Jul 07 '20 11:07 pierrepo

Actually, this reminds me the red or green tick that appears nearby the name of a gihub repo when you create one: Peek 08-07-2020 09-26

pierrepo avatar Jul 08 '20 07:07 pierrepo