Skip to content

Conversation

@GrootZ7
Copy link
Contributor

@GrootZ7 GrootZ7 commented May 16, 2022

Resolves #358

@GrootZ7 GrootZ7 requested a review from shurwit June 2, 2022 21:13
Copy link
Collaborator

@shurwit shurwit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @siqiz7, this is looking good! I left a few more comments below

@GrootZ7 GrootZ7 requested a review from shurwit August 2, 2022 20:52
Copy link
Collaborator

@shurwit shurwit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @siqiz7, this is looking good! Just a couple more comments below


// UpdateCachedWebhookConfigs updates the webhook configs cache
func (sa *Adapter) UpdateCachedWebhookConfigs() error {
return sa.cacheWebhookConfigs()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is currently an issue here when the webhook configs are updated. The cache will be updated on whichever instance receives the webhook request, but the other instances will not get the updated version. The easiest solution would be to store these webhook configs into the database somewhere and setting a listener so that all instances will be notified of updates.

Copy link
Collaborator

@shurwit shurwit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @siqiz7, LGTM! I have restructured this to abstract all GitHub specific implementations into the github package. This is so we can support different VCS systems in the future.

@petyos, please take a look when you get a chance. Also please note that there are several related issues that build on this one that we will request your review on soon as well. Thanks!

Copy link
Collaborator

@petyos petyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shurwit
Copy link
Collaborator

shurwit commented Sep 8, 2022

Hi @petyos, @roberlander2 and I noticed that we will need to make a change here to handle creating a new version object in the app type if a new app config is added with a version number that doesn't currently exist. Otherwise, we will end up with conflicting version number IDs between the app types and app configs. We will address this before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App config version control integration

4 participants