Repository navigation
feat: optimize integrations initial loading - #40118
Merged
Merged
Conversation
Jingyi-Dify
requested review from
CodingOnStar,
JzoNgKVO,
QuantumGhost,
WH-2099,
Yessenia-d,
crazywoola,
hyoban,
iamjoel,
laipz8200,
lyzno1,
zhsama and
zxhlyh
as code owners
August 7, 2026 00:52
Contributor
Pyrefly Type Coverage
|
Jingyi-Dify
marked this pull request as draft
August 7, 2026 00:54
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-08-07 01:31:30.318922876 +0000
+++ /tmp/pyrefly_pr.txt 2026-08-07 01:31:17.189817691 +0000
@@ -4687,33 +4687,33 @@
ERROR Argument `None` is not assignable to parameter `project` with type `str` in function `core.ops.utils.validate_project_name` [bad-argument-type]
--> tests/unit_tests/core/ops/test_utils.py:174:40
ERROR Missing required key `content` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:472:19
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:485:19
ERROR Missing required key `content_type` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:472:19
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:485:19
ERROR Key `type` is not defined in TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:472:20
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:485:20
ERROR Key `value` is not defined in TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:472:36
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:485:36
ERROR Missing required key `content` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:473:19
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:486:19
ERROR Missing required key `content_type` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:473:19
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:486:19
ERROR Key `type` is not defined in TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:473:20
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:486:20
ERROR Key `value` is not defined in TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:473:37
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:486:37
ERROR Missing required key `content` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:492:17
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:505:17
ERROR Missing required key `content_type` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:492:17
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:505:17
ERROR Key `type` is not defined in TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:492:18
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:505:18
ERROR Missing required key `content` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:493:18
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:506:18
ERROR Missing required key `content_type` for TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:493:18
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:506:18
ERROR Key `type` is not defined in TypedDict `MultimodalRerankInput` [bad-typed-dict-key]
- --> tests/unit_tests/core/plugin/impl/test_model_client.py:493:19
+ --> tests/unit_tests/core/plugin/impl/test_model_client.py:506:19
ERROR Argument `werkzeug.wrappers.request.Request` is not assignable to parameter `request` with type `flask.wrappers.Request` in function `core.plugin.impl.trigger.PluginTriggerClient.invoke_trigger_event` [bad-argument-type]
--> tests/unit_tests/core/plugin/impl/test_trigger_client.py:127:21
ERROR Argument `werkzeug.wrappers.request.Request` is not assignable to parameter `request` with type `flask.wrappers.Request` in function `core.plugin.impl.trigger.PluginTriggerClient.invoke_trigger_event` [bad-argument-type]
@@ -4739,27 +4739,27 @@
ERROR Argument `TestPluginDaemonEntities.test_credential_type_helpers._FakeCredential` is not assignable to parameter `self` with type `CredentialType` in function `core.plugin.entities.plugin_daemon.CredentialType.get_name` [bad-argument-type]
--> tests/unit_tests/core/plugin/test_plugin_entities.py:283:40
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:992:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1019:16
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:993:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1020:16
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:994:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1021:16
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:995:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1022:16
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:996:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1023:16
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:997:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1024:16
ERROR Object of class `NoneType` has no attribute `model` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:998:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1025:16
ERROR Object of class `NoneType` has no attribute `storage` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:1016:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1043:16
ERROR Object of class `NoneType` has no attribute `storage` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:1017:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1044:16
ERROR Object of class `NoneType` has no attribute `endpoint` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:1034:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1061:16
ERROR Object of class `NoneType` has no attribute `node` [missing-attribute]
- --> tests/unit_tests/core/plugin/test_plugin_manager.py:1051:16
+ --> tests/unit_tests/core/plugin/test_plugin_manager.py:1078:16
ERROR `in` is not supported between `Literal['Rate limit exceeded']` and `None` [not-iterable]
--> tests/unit_tests/core/plugin/test_plugin_runtime.py:374:20
ERROR `in` is not supported between `Literal['Invalid credentials']` and `None` [not-iterable]
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #40118 +/- ##
==========================================
+ Coverage 86.31% 86.33% +0.02%
==========================================
Files 5251 5264 +13
Lines 294040 294973 +933
Branches 58893 59095 +202
==========================================
+ Hits 253794 254662 +868
- Misses 35320 35368 +48
- Partials 4926 4943 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…performance-pr' into codex/integrations-initial-load-performance-pr
Jingyi-Dify
marked this pull request as ready for review
August 7, 2026 01:50
8 tasks
hjlarry
approved these changes
Aug 7, 2026
4 tasks done
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
main's provider identity and installation-scope behavior, and require verified hosted bindings before enabling system providers.Screenshots
Verification
vp checkpassed with 0 errors for every changed frontend file (existing warnings remain).tscwas attempted but is currently blocked by stale generated.nextvalidator errors outside this PR's files.Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint godsFrom Codex