-
Notifications
You must be signed in to change notification settings - Fork 16
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
get or create github kebechet installation #2293
get or create github kebechet installation #2293
Conversation
214b42e
to
bfacccc
Compare
/lgtm |
Related-To: thoth-station/user-api#1181 |
thoth/storages/graph/postgres.py
Outdated
thoth_provenance_manager="thoth-provenance" in all_managers, | ||
item = ( | ||
session.query(KebechetGithubAppInstallations) | ||
.filter(KebechetGithubAppInstallations.installation_id == installation_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slug
is unique in the database table and not installation_id
, you cannot create two records with the same slug
and different installation_id
, because user can install, uninstall the app and a new installation_id
would be created in that case (I assume this was the initial design decision by Sai)
bfacccc
to
f9647f5
Compare
New changes are detected. LGTM label has been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 💯
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pacospace The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Function wasn't working if the entry didn't exist in the database. Here we create if it doesn't exist yet.