Integration page does not reflect API output
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Sending an API request to change the integrations does not update the view if there's an instance-wide configuration for an integration.
Steps to reproduce
- Create an instance wide integration, for example for datadog (any text is fine, even for the api key)
- Send an API request to update that integration, for example:
$ curl --request PUT \
--url 'https://INSTANCE_URL/api/v4/projects/PROJECT_ID/integrations/datadog?api_key=123datadog_site=someurl.com' \
--header "PRIVATE-TOKEN: $TOKEN"
- Observe 200
- Open UI - still the old values are shown
- Send a GET request towards the above endpoint - observe correct values
Example Project
/
What is the current bug behavior?
The UI does not reflect the changes done via the API unless we manually "apply" the use custom settings button.
What is the expected correct behavior?
The UI reflects the changes from the API.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 20.04 Proxy: no Current User: git Using RVM: no Ruby Version: 3.1.4p223 Gem Version: 3.5.6 Bundler Version:2.5.6 Rake Version: 13.0.6 Redis Version: 7.0.15 Sidekiq Version:7.1.6 Go Version: unknown GitLab information Version: 16.10.1-ee Revision: a5d6463727c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 13.14 URL: https://troubleshooting-instance.env-72fc74ed.gcp.gitlabsandbox.net HTTP Clone URL: https://troubleshooting-instance.env-72fc74ed.gcp.gitlabsandbox.net/some-group/some-project.git SSH Clone URL: git@troubleshooting-instance.env-72fc74ed.gcp.gitlabsandbox.net:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.34.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Gitaly - default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket - default Version: 16.10.1 - default Git Version: 2.43.0
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.34.0 ? ... OK (14.34.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes Tables are truncated? ... skipped All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet) Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 2/1 ... yes 2/2 ... yes 2/3 ... yes Redis version >= 6.2.14? ... no Try fixing it: Support for your Redis version 6.2.11 has been deprecated and will be removed soon. Update your Redis server to a version >= 6.2.14 For more information see: doc/administration/redis/index.html#redis-replication-and-failover-using-the-non-bundled-redis Please fix the error above and rerun the checks. Ruby version >= 3.0.6 ? ... yes (3.1.4) Git user has default SSH configuration? ... yes Active users: ... 2 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes Elasticsearch version 7.x-8.x or OpenSearch version 1.x ... skipped (Advanced Search is disabled) All migrations must be finished before doing a major upgrade ... skipped (Advanced Search is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished

