Repository navigation
fix(apps): allow unset model selections in list and detail responses - #46593
Merged
Merged
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-11-17 13:47:11.646017263 +0000
+++ /tmp/pyrefly_pr.txt 2026-11-17 13:46:49.174093737 +0000
@@ -2001,7 +2001,7 @@
ERROR Object of class `App` has no attribute `permission_keys` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_app.py:1076:9
ERROR `str` is not assignable to dict key `strategy` with type `bool | list[Unknown]` [bad-assignment]
- --> tests/unit_tests/controllers/console/app/test_app.py:1114:38
+ --> tests/unit_tests/controllers/console/app/test_app.py:1166:38
ERROR Missing argument `app_model` in function `controllers.console.app.workflow.EvaluationPublishedWorkflowApi.post` [missing-argument]
--> tests/unit_tests/controllers/console/app/test_workflow.py:1419:30
ERROR Missing argument `app_model` in function `controllers.console.app.workflow.WorkflowKindConvertApi.post` [missing-argument]
|
Contributor
Pyrefly Type Coverage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #46593 +/- ##
=======================================
Coverage 90.25% 90.25%
=======================================
Files 6438 6438
Lines 405444 405444
Branches 81522 81522
=======================================
Hits 365934 365934
+ Misses 33108 33106 -2
- Partials 6402 6404 +2
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:
|
lyzno1
marked this pull request as ready for review
November 17, 2026 11:05
lyzno1
requested review from
QuantumGhost,
crazywoola,
iamjoel and
laipz8200
as code owners
November 17, 2026 11:05
hyoban
approved these changes
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
lyzno1
enabled auto-merge
November 17, 2026 12:10
3 of 5 tasks
3 of 5 tasks
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
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.
An app whose stored model selection contains
provider: nullorname: nullfails response validation, preventing the entire Studio app list and the affected app's detail response from loading. Allow nullable identifiers in the response-only model selection schema so these apps remain readable and can be configured through the existing editor.Preserve the stored selection and other configuration fields, and regenerate the OpenAPI documentation and TypeScript/Zod contracts. Write and execution validation are unchanged. Error classification, diagnostic logging, and list error presentation are outside this fix.
Fixes https://linear.app/dify/issue/CUS-1814
Related: https://linear.app/dify/issue/CUS-1810
Validation
Draft pending review and real API/UI verification in the affected environment. No customer data was modified and recovery has not been confirmed in production.