Skip to content

feat: notify on successful autoupdate #13903

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

Merged
merged 10 commits into from
Jul 18, 2024
Merged

feat: notify on successful autoupdate #13903

merged 10 commits into from
Jul 18, 2024

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Jul 16, 2024

Related: #13891

This PR implements notifications on workspace autoupdate.

Comment:
I took inspiration from Bruno's PR, and exposed the FakeNotificationsEnqueuer as a separate package.

@mtojek mtojek self-assigned this Jul 16, 2024
@mtojek mtojek requested a review from dannykopping July 16, 2024 15:30
@mtojek mtojek marked this pull request as ready for review July 16, 2024 15:30
@mtojek mtojek requested a review from BrunoQuaresma July 17, 2024 10:14
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the other PR, we did this a bit differently. We added this fake helper into the testutils package. Link to PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I'm aware of it. This is an alternative approach, and I'm happy to leave it or switch to the other form. @dannykopping any preference?

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer names which are explicit and clear, so I prefer testutils TBH.

Copy link
Member Author

@mtojek mtojek Jul 18, 2024

Choose a reason for hiding this comment

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

I will wait with merging this PR until Bruno merges #13868, then adjust it.

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Overall, the code looks good to me, but I would wait for @dannykopping review since he is leading the work on this feature.

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -0,0 +1,37 @@
package notiffake
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I like splitting this out but I think the name is too "cute".
I think something like testutil or something would be more idiomatic.

Copy link
Member Author

Choose a reason for hiding this comment

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

Alright, I decided to merge it as is, and refactor/unify once #13868 is merged.

@mtojek mtojek merged commit fbd1d7f into main Jul 18, 2024
28 checks passed
@mtojek mtojek deleted the 7-auto-update branch July 18, 2024 13:19
@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants