-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(api): Delete subscriber channel preference when updating global channel #6767
Merged
rifont
merged 45 commits into
next
from
nv-4498-forget-workflow-subscriber-preferences-if-global-channel
Oct 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5e77371
refactor(preferences): enhance validation and structure
rifont cda73b9
refactor(preferences): remove default values from schema
rifont 856a947
fix(sync): handle undefined workflow preferences
rifont 22346b8
refactor(base.command): improve error mapping logic
rifont 18523d5
refactor(upsert-preferences): remove unused import
rifont 8ba826f
refactor(sync): extract getWorkflowPreferences method
rifont eaf6080
refactor(inbox): rename GetPreferences to GetInboxPreferences
rifont 3e3ff65
refactor(inbox): rename GetPreferences to GetInboxPreferences
rifont f5c8d98
refactor(upsert-preferences): simplify preferences handling
rifont 0c41453
`feat(preferences): add unset logic for channel types`
rifont 150e302
refactor(preferences): simplify channel handling
rifont 6a66a12
refactor(sync): update WorkflowPreferences type usage
rifont 5d99857
refactor(inbox): simplify preference retrieval logic
rifont 0fa489a
refactor(preference): simplify global preference logic
rifont 86b5bc6
refactor(get-subscriber): improve preference handling
rifont 56f0d09
refactor(workflows): add default workflow preferences
rifont 70f22b6
refactor(preferences): update storePreferences method
rifont 7aab8b7
refactor(preferences): extract method for clarity
rifont 49b8683
refactor(subscriber): merge fetch and get methods
rifont a4d5c47
fix: correct enabled flag in preference return object
rifont 1739863
fix: handle undefined enabled property safely
rifont ae7a520
fix(preference): default enable to true if undefined
rifont b1abd25
test(get-inbox-preferences): revise test structure
rifont 26c0ffc
test(update-preferences): remove unused channel fields
rifont 4d7479d
test(inbox): update preferences e2e test logic
rifont a51539c
refactor(get-subscriber-preference): rename variable
rifont 85addb9
refactor(get-preferences): simplify preference mapping
rifont 73fe8bf
feat(upsert-preferences): enhance preferences handling
rifont 7177ae2
refactor(get-preferences): use partial preferences type
rifont a5ce239
test(inbox): update e2e test for preferences
rifont 8ca830f
refactor(get-preferences): improve preference mapping logic
rifont 3c09ccc
refactor(update-preferences): reorganize preference logic
rifont c783e5d
test(inbox): add test for updating preferences
rifont 32f7ec6
refactor(upsert-preferences): rename method for clarity
rifont 093365d
refactor: rename method for clarity
rifont 26891fc
refactor(upsert-preferences): simplify update query
rifont 6afe9da
refactor(preferences): use WorkflowPreferencesPartial type
rifont 4b54490
ci(setup-project): update MongoDB to v5.0.29
rifont a5c0b9b
ci(setup-project): update MongoDB version and action tag
rifont 2ee421d
ci: Update MongoDB version in setup action
rifont e383ae2
style: Adjust div height in preferences page
rifont 09107f8
refactor(get-preferences): update preferences handling
rifont 33c0d8e
refactor(get-preferences): update source type definitions
rifont a53724a
refactor(preferences): add caching to preference update
rifont 2137bc3
test: simplify global preference channel assertions
rifont File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This
update
method on the fullPreferences
resource was never used, so I'm deleting it.