Repository navigation
chore: inject session - #37941
Merged
Merged
chore: inject session#37941
Conversation
asukaminato0721
requested review from
JohnJyong,
QuantumGhost and
laipz8200
as code owners
June 25, 2026 09:50
asukaminato0721
enabled auto-merge
June 25, 2026 09:51
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-06-26 02:28:59.638652154 +0000
+++ /tmp/pyrefly_pr.txt 2026-06-26 02:28:49.916659383 +0000
@@ -6905,35 +6905,35 @@
ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
--> tests/unit_tests/services/test_credit_pool_service.py:146:5
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account` in function `services.dataset_service.DatasetService.create_empty_dataset` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:329:93
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:348:93
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account` in function `services.dataset_service.DatasetService.create_empty_dataset` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:353:25
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:372:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account` in function `services.dataset_service.DatasetService.create_empty_dataset` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:396:25
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:415:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:713:70
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:736:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:723:70
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:746:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:762:70
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:785:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:785:74
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:808:74
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:852:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:875:9
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:890:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:913:9
ERROR Argument `None` is not assignable to parameter `embedding_model_provider` with type `str` in function `tests.unit_tests.services.dataset_service_test_helpers.DatasetServiceUnitDataFactory.create_dataset_mock` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:956:38
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:979:38
ERROR Argument `None` is not assignable to parameter `embedding_model` with type `str` in function `tests.unit_tests.services.dataset_service_test_helpers.DatasetServiceUnitDataFactory.create_dataset_mock` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:957:29
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:980:29
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:1015:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1038:9
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:1050:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1073:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | None` in function `services.dataset_service.DatasetService.check_dataset_operator_permission` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:1361:67
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1384:67
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset | None` in function `services.dataset_service.DatasetService.check_dataset_operator_permission` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:1364:81
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1387:81
ERROR Object of class `FakeAccount` has no attribute `id` [missing-attribute]
--> tests/unit_tests/services/test_dataset_service_document.py:91:9
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
|
Contributor
Pyrefly Type Coverage
|
asukaminato0721
force-pushed
the
db.session
branch
2 times, most recently
from
June 25, 2026 10:36
20acd34 to
8efe961
Compare
WH-2099
approved these changes
Jun 26, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jun 26, 2026
Ssazurov
pushed a commit
to Ssazurov/dify
that referenced
this pull request
Aug 8, 2026
Co-authored-by: WH-2099 <wh2099@pm.me>
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.
Important
Fixes #<issue number>.Summary
#35934
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint gods