Change the Form Name
This is to support a user who requests to update their form name. This is only possible for forms published in test.
- Identify the form and which environment it has been deployed to: test or live. If it’s live, push back as we’re unable to change the name.
Look for the pods running the service with the following command:
kubectl get pods -n formbuilder-services-live-dev
Unpublish the form from the admin dashboard using the ‘Unpublish’ button.
Using the command from step 2, check the pods that correspond to the service are no longer running.
Using the admin dashboard, update the form metadata to change the
service_name
value to the desired value.Check the name has changed by inspecting the Metadata API Service table. This can be done by logging onto a Metadata API pod:
- Start a rails console:
bundle exec rails c
- Find the ‘service_id’ for the service modified:
Service.find(‘service_id’)
- Check the value associated with the
name
key. This should now be the updated form name.
- Start a rails console:
Let the form owner know that the name has changed and they have to re-publish the form, which will generate a new url.