fix(knowledge): let Slack reach per-member access, and scope the v1 document delete to the caller - #7455
Closed
waleedlatif1 wants to merge 2 commits into
Closed
fix(knowledge): let Slack reach per-member access, and scope the v1 document delete to the caller#7455waleedlatif1 wants to merge 2 commits into
waleedlatif1 wants to merge 2 commits into
Conversation
…ocument delete to the caller
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR fixes permission-aware knowledge and composer-state regressions while consolidating shared credential-group logic.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/knowledge/orchestration/documents.ts | Requires caller access for document deletion and delegates to the knowledge-base-scoped, access-checking delete path. |
| apps/sim/app/api/v1/knowledge/[id]/documents/[documentId]/route.ts | Resolves one caller access scope and passes it through both document lookup and deletion. |
| apps/sim/lib/credential-groups/providers.ts | Adds shared provider lookup and selectable-option predicates used consistently by client and server paths. |
| apps/sim/lib/knowledge/connectors/member-provisioning.ts | Uses shared credential-group selection and enrollment-error projection while preserving existing readiness requirements. |
| apps/sim/app/workspace/[workspaceId]/home/home.tsx | Clears live search state when restoring a queued message to its original sendable composer mode. |
| apps/sim/lib/credential-groups/enrollments.ts | Centralizes enrollment status conversion into orchestration errors for consistent API responses. |
Reviews (2): Last reviewed commit: "fix(credential-groups): map every enroll..." | Re-trigger Greptile
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 14 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
6 tasks
…ilure keeps its message
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Five real defects the v0.8.21 release review found in the permission-aware knowledge work, plus the consolidation the review passes asked for.
The status mapping behind that last one existed in four near-identical copies and this would have been a fifth, so it now lives once beside the error class that defines the statuses. Likewise, the option-selection rule was written twice — the client copy drifting from the server's is precisely the first bug above — so both sides now share one predicate.
Reviewed and deliberately not changed
Three further comments on the release PR are not defects. The Build composer keeping search text is the person's own draft, and discarding it would fight the draft-persistence the composer is built around. The chat sanitizer's no-backtick constraint is load-bearing — it is what separates a real tag from prose quoting the tag name — and needs a backtick inside a source title to bite. The Ask-mode comment already documents the integration exception it was said to omit.
Type of Change
Testing
check:audits(45 audits), and 9,113 tests across the credential-group, knowledge, API, workspace, and hooks suites pass./cleanup(effects, state, memo, callback, React Query, url-state, emcn, comments) and/simplify(reuse, simplification, efficiency, altitude) were run over the diff; every finding is either applied here or recorded above with the reason it was not.Checklist