Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Fix workspace-scoped global config source get requests #4774

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

paladin-devops
Copy link
Contributor

This PR fixes the retrieval of workspace-scoped, globally-scoped config sources. Prior to the changes in this PR, clients were receiving all globally-scoped config sources on a get request, even if they only wanted the config source for a specific workspace. This was because the logic to filter out the results from the other workspaces was being skipped, but that is fixed by this PR.

Added some tests!

Prior to this commit, global config source get requests were receiving all config sources at the global scope, even if a workspace was specified. The state function was skipping over the filtering out of config sources which were not for the specified workspace. This commit fixes that, and now global config source requests will filter out config sources which are not in the specified workspace.
@paladin-devops paladin-devops merged commit e68450a into main Jun 6, 2023
42 checks passed
@paladin-devops paladin-devops deleted the config-sourcer-state-tests branch June 6, 2023 17:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants