Skip to content

Conversation

djc
Copy link
Contributor

@djc djc commented Sep 22, 2025

We've had 4 different Notification enums:

  • dist::notifications::Notification
  • dist::temp::Notification
  • utils::notifications::Notification
  • notifications::Notification

While these carried somewhat different variants (although there was some overlap as well!), the complexity of having these separate types does not seem worth it. (And in fact, the existence of the Notification type itself doesn't seem all that valuable.) Merge all the variants into the top-level type.

@djc djc force-pushed the no-dist-temp-notifications branch 2 times, most recently from 8e90e40 to 93451db Compare September 23, 2025 07:24
@djc djc force-pushed the no-dist-temp-notifications branch from 93451db to 37ab3c5 Compare September 23, 2025 07:30
@djc djc force-pushed the no-dist-temp-notifications branch from 37ab3c5 to 4578dea Compare September 23, 2025 07:39
@rami3l rami3l self-assigned this Sep 23, 2025
Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

Many thanks! It will definitely make #4471 even clearer for @FranciscoTGouveia, so looking forward to landing it :)

Install(n) => n.level(),
Utils(n) => n.level(),
Temp(n) => n.level(),
ChecksumValid(_)
Copy link
Member

Choose a reason for hiding this comment

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

The original code (that has been deleted in this PR) seems to be grouping this by notification level first and then by order of variants. Should we do the same with the merged version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intend to delete most of Notification in a next PR, so I don't think there's a lot of value in style tweaks.

@djc djc enabled auto-merge September 23, 2025 15:17
@djc djc added this pull request to the merge queue Sep 23, 2025
Merged via the queue into master with commit b5e5a66 Sep 23, 2025
29 checks passed
@djc djc deleted the no-dist-temp-notifications branch September 23, 2025 16:10
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.

2 participants