-
Notifications
You must be signed in to change notification settings - Fork 34
fix(scheduler): preserve public dispatch visibility #1182
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e450968
fix scheduler dispatch visibility
dcramer d161b44
refine visibility fallback precedence
dcramer 8f78be6
remove identifier visibility inference
dcramer 2ec0a27
fix confirmed visibility warnings
dcramer d254a62
fix privacy warning ownership
dcramer f47f4d5
ref(chat): require destination visibility across agent runs
dcramer 5f98057
fix(chat): separate run privacy from visibility metadata
dcramer fb1894c
ref(chat): use one conversation visibility
dcramer 35b9395
ref(chat): centralize conversation visibility
dcramer e0a3028
fix(chat): preserve unknown destination visibility
dcramer 3a37d0e
fix(reporting): preserve confirmed private labels
dcramer 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
21 changes: 21 additions & 0 deletions
21
packages/junior/src/chat/conversations/destination-visibility.ts
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import type { Destination } from "@sentry/junior-plugin-api"; | ||
| import { getConversationStore } from "@/chat/db"; | ||
| import type { ConversationPrivacy } from "@/chat/conversation-privacy"; | ||
|
|
||
| /** Read confirmed visibility from the current signal or persisted destination. */ | ||
| export async function resolveDestinationVisibility(args: { | ||
| destination: Destination; | ||
| visibility?: ConversationPrivacy; | ||
| }): Promise<ConversationPrivacy | undefined> { | ||
| if (args.visibility) { | ||
| return args.visibility; | ||
| } | ||
| if (args.destination.platform === "local") { | ||
| return "private"; | ||
| } | ||
| return await getConversationStore().getDestinationVisibility({ | ||
| provider: "slack", | ||
| providerDestinationId: args.destination.channelId, | ||
| providerTenantId: args.destination.teamId, | ||
| }); | ||
|
cursor[bot] marked this conversation as resolved.
|
||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.