Skip to content

fix: fix rag pipeline operation permission - #40841

Open
fatelei wants to merge 1 commit into
langgenius:mainfrom
fatelei:rag_pipeline_permission
Open

fix: fix rag pipeline operation permission#40841
fatelei wants to merge 1 commit into
langgenius:mainfrom
fatelei:rag_pipeline_permission

Conversation

@fatelei

@fatelei fatelei commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

fix rag pipeline operation permission #37988

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

@fatelei
fatelei marked this pull request as ready for review August 17, 2026 02:57
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 17, 2026
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-08-17 03:35:26.726872737 +0000
+++ /tmp/pyrefly_pr.txt	2026-08-17 03:35:17.321901794 +0000
@@ -1980,6 +1980,8 @@
    --> tests/unit_tests/controllers/console/auth/test_oauth.py:238:9
 ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
   --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline.py:82:9
+ERROR `SimpleNamespace` is not assignable to attribute `_current_tenant` with type `Tenant | None` [bad-assignment]
+  --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline_import.py:41:31
 ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
    --> tests/unit_tests/controllers/console/datasets/rag_pipeline/test_rag_pipeline_workflow.py:110:9
 ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 59.18% 59.19% +0.01%
Strict coverage 58.76% 58.77% +0.01%
Typed symbols 39,433 39,448 +15
Untyped symbols 27,389 27,389 0
Modules 3167 3167 0

@fatelei
fatelei force-pushed the rag_pipeline_permission branch from e33a78b to 2d4e576 Compare August 17, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant