-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial introduction of providers to the database #955
Merged
Commits on Sep 25, 2023
-
Add initial introduction of providers to the database
This simply replaces the usages of the `github` provider checks and instead provides a simple implementation of providers that will be expanded upon. The intent is to leave the same functionality as-is, but instead rely on a provider that's installed on every organization by default. I've left traces of how the implementation will evolve by adding a definition and a `providers_type` column to the providers database. These will serve as the means of instantiating providers dynamically, instead of always building the github one as we do today. But, to keep things short, I've left that out of this PR.
Configuration menu - View commit details
-
Copy full SHA for 2d170e2 - Browse repository at this point
Copy the full SHA 2d170e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4d832a - Browse repository at this point
Copy the full SHA a4d832aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6f8536 - Browse repository at this point
Copy the full SHA c6f8536View commit details -
This removes the group information from entities in favor of relying on providers for data integrity.
Configuration menu - View commit details
-
Copy full SHA for c2fe49f - Browse repository at this point
Copy the full SHA c2fe49fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8becaa2 - Browse repository at this point
Copy the full SHA 8becaa2View commit details -
Use provider name + group ID as compount foreign key
Co-Authored-By: Evan Anderson <evan@stacklok.com>
Configuration menu - View commit details
-
Copy full SHA for d3f38d8 - Browse repository at this point
Copy the full SHA d3f38d8View commit details -
Remove UNIQUE constraints for providers and groups from entities
These prevent us from creating multiple objects which is not the desired outcome.
Configuration menu - View commit details
-
Copy full SHA for 745d412 - Browse repository at this point
Copy the full SHA 745d412View commit details -
Configuration menu - View commit details
-
Copy full SHA for 352cccf - Browse repository at this point
Copy the full SHA 352cccfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c364e40 - Browse repository at this point
Copy the full SHA c364e40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c37ff3 - Browse repository at this point
Copy the full SHA 1c37ff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43ced75 - Browse repository at this point
Copy the full SHA 43ced75View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5a5476 - Browse repository at this point
Copy the full SHA a5a5476View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.