Administrator can put Jira connect settings in invalid state
If a user takes the following steps:
- Enable 'Allow requests to the local network from webhooks and integrations' in http://gdk.test:3000/admin/application_settings/network#js-outbound-settings.
- Enter
http://127.0.0.1:2000
as the 'Jira Connect Proxy URL' in http://gdk.test:3000/admin/application_settings/general#js-jira-connect-application-id-settings. - Disable 'Allow requests to the local network from webhooks and integrations' in http://gdk.test:3000/admin/application_settings/network#js-outbound-settings.
- Try to update any other app setting, for example issues rate limits.
The user receives the following validation error:
This is slightly confusing: The message technically includes the information they need, but the user may not be aware of which settings they need to change. We could consider:
- Validate earlier. Prevent the user from disabling local requests if it's going to break an existing integration setting.
- Keep the existing mechanic but improve the messaging. "Hey, you just disabled local requests and we think it's going to break your Jira configuration. Please go check."
- Remove this validation on Jira proxy URLs entirely. Surface any appropriate error messages when the users actually try to use the Jira integration.