See 787226 for reasons renaming was disabled. This disable, though, is only a short-term fix to avoid larger issues and needs to be resolved.
-----
Since we base the repoid in pulp off of the environment name, we really
shouldn't be able to rename it, as it could cause problems.
One such scenario that could cause issues:
1. create environment Dev
2. promote repo X to dev
3. rename environment Dev to Foo
4. Create a new environment called Dev after Foo
5. promote repo X to Dev
Since the repo was already created in an environment called Dev, the repo
promotion would fail.
Ideally we wouldn't be basing repo_id off of environment name. There was some
discussion on having an immutable label field, which should allow us to have a
name that is changeable, but this is probably post V1.
We need to block this in the UI and the api.