Skip to content

chore(Notifications): Refactor notification settings to be per team#10899

Merged
Dschoordsch merged 4 commits intomasterfrom
chore/10685/makeNotificationSettingsPerTeamAndChannel
Mar 3, 2025
Merged

chore(Notifications): Refactor notification settings to be per team#10899
Dschoordsch merged 4 commits intomasterfrom
chore/10685/makeNotificationSettingsPerTeamAndChannel

Conversation

@Dschoordsch
Copy link
Contributor

Description

Relates to #10685

Previously although meant to be per team, the settings were still tied to a specific auth object. This meant that 1 team could have different conflicting settings.
This should clean up my mess.

Demo

[If possible, please include a screenshot or gif/video, it'll make it easier for reviewers to understand the scope of the changes and how the change is supposed to work. If you're introducing something new or changing the existing patterns, please share a Loom and explain what decisions you've made and under what circumstances]

Testing scenarios

[Please list all the testing scenarios a reviewer has to check before approving the PR]

  • Scenario A

    • Step 1
    • Step 2...
  • Scenario B

    • Step 1
    • Step 2....

Final checklist

  • I checked the code review guidelines
  • I have added Metrics Representative as reviewer(s) if my PR invovles metrics/data/analytics related changes
  • I have performed a self-review of my code, the same way I'd do it for any other team member
  • I have tested all cases I listed in the testing scenarios and I haven't found any issues or regressions
  • Whenever I took a non-obvious choice I added a comment explaining why I did it this way
  • I added the label Skip Maintainer Review Indicating the PR only requires reviewer review and can be merged right after it's approved if the PR introduces only minor changes, does not contain any architectural changes or does not introduce any new patterns and I think one review is sufficient'
  • PR title is human readable and could be used in changelog

}))
.onConflict((oc) => oc.doNothing())
.execute()
if (service === 'msTeams' || service === 'mattermost') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously we inserted this for most integrations, including GitLab and GCal 🤦

version "0.15.0"
resolved "https://registry.yarnpkg.com/kysely-codegen/-/kysely-codegen-0.15.0.tgz#771c0256c24897ea64d5713dc10e40e8a359b96b"
integrity sha512-LPta2nQOyoEPDQ3w/Gsplc+2iyZPAsGvtWoS21VzOB0NDQ0B38Xy1gS8WlbGef542Zdw2eLJHxekud9DzVdNRw==
kysely-codegen@^0.17.0:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previous version would not generate the column type for SlackNotificationEventEnum[] correctly.

@Dschoordsch Dschoordsch force-pushed the chore/10685/makeNotificationSettingsPerTeamAndChannel branch from 6c7e914 to baf76ce Compare February 20, 2025 09:07
Previously although meant to be per team, the settings were still tied
to a specific auth object. This meant that 1 team could have different
conflicting settings.
@Dschoordsch Dschoordsch force-pushed the chore/10685/makeNotificationSettingsPerTeamAndChannel branch from baf76ce to d14bdc7 Compare February 28, 2025 15:32
It is associated with team and provider, but the client needs it on the
integration, so that's where it will live.
We also need to make sure that a team only has one active provider for a
given integration.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2025

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR will be delayed and might be rejected due to its size.

@github-actions github-actions bot added size/xl and removed size/m labels Mar 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2025

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR will be delayed and might be rejected due to its size.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I didn't want to introduce new types in legacy GraphQL definitions, I had to update some related types and mutations to SDL first.

@Dschoordsch Dschoordsch merged commit 49dc95a into master Mar 3, 2025
7 checks passed
@Dschoordsch Dschoordsch deleted the chore/10685/makeNotificationSettingsPerTeamAndChannel branch March 3, 2025 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant