refactor: migrate workflow queries to contracts#35799
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #35799 +/- ##
==========================================
+ Coverage 85.78% 85.81% +0.03%
==========================================
Files 4462 4461 -1
Lines 209069 209005 -64
Branches 39081 39069 -12
==========================================
+ Hits 179352 179365 +13
+ Misses 26554 26474 -80
- Partials 3163 3166 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Pyrefly Type Coverage
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-05 12:35:56.704642704 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-05 12:35:43.600539056 +0000
@@ -1,7 +1,7 @@
ERROR Object of class `Server` has no attribute `app` [missing-attribute]
--> app_factory.py:132:5
ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
- --> controllers/console/app/app.py:553:13
+ --> controllers/console/app/app.py:573:13
ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
--> controllers/console/auth/email_register.py:75:108
ERROR Object of class `MissingRouter` has no attribute `get` [missing-attribute]
@@ -1805,19 +1805,19 @@
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_annotation_security.py:256:35
ERROR Object of class `ModuleType` has no attribute `console_ns` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:70:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
ERROR Object of class `ModuleType` has no attribute `api` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:71:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:73:5
ERROR Object of class `ModuleType` has no attribute `bp` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:74:5
ERROR Object of class `ModuleType` has no attribute `app` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:78:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:80:5
ERROR Argument `ModuleSpec | None` is not assignable to parameter `spec` with type `ModuleSpec` in function `_frozen_importlib.module_from_spec` [bad-argument-type]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:107:36
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:109:36
ERROR Object of class `NoneType` has no attribute `loader` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:110:12
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:112:12
ERROR Object of class `object` has no attribute `exec_module` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:111:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:113:5
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-05 12:39:19.333072171 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-05 12:39:05.774160757 +0000
@@ -1,7 +1,7 @@
ERROR Object of class `Server` has no attribute `app` [missing-attribute]
--> app_factory.py:132:5
ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
- --> controllers/console/app/app.py:553:13
+ --> controllers/console/app/app.py:573:13
ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
--> controllers/console/auth/email_register.py:75:108
ERROR Object of class `MissingRouter` has no attribute `get` [missing-attribute]
@@ -1805,19 +1805,19 @@
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_annotation_security.py:256:35
ERROR Object of class `ModuleType` has no attribute `console_ns` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:70:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
ERROR Object of class `ModuleType` has no attribute `api` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:71:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:73:5
ERROR Object of class `ModuleType` has no attribute `bp` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:74:5
ERROR Object of class `ModuleType` has no attribute `app` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:78:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:80:5
ERROR Argument `ModuleSpec | None` is not assignable to parameter `spec` with type `ModuleSpec` in function `_frozen_importlib.module_from_spec` [bad-argument-type]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:107:36
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:109:36
ERROR Object of class `NoneType` has no attribute `loader` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:110:12
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:112:12
ERROR Object of class `object` has no attribute `exec_module` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:111:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:113:5
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-05 13:31:28.128246691 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-05 13:31:20.091259775 +0000
@@ -1,7 +1,7 @@
ERROR Object of class `Server` has no attribute `app` [missing-attribute]
--> app_factory.py:132:5
ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
- --> controllers/console/app/app.py:553:13
+ --> controllers/console/app/app.py:573:13
ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
--> controllers/console/auth/email_register.py:75:108
ERROR Object of class `MissingRouter` has no attribute `get` [missing-attribute]
@@ -1805,19 +1805,19 @@
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_annotation_security.py:256:35
ERROR Object of class `ModuleType` has no attribute `console_ns` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:70:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
ERROR Object of class `ModuleType` has no attribute `api` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:71:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:73:5
ERROR Object of class `ModuleType` has no attribute `bp` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:74:5
ERROR Object of class `ModuleType` has no attribute `app` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:78:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:80:5
ERROR Argument `ModuleSpec | None` is not assignable to parameter `spec` with type `ModuleSpec` in function `_frozen_importlib.module_from_spec` [bad-argument-type]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:107:36
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:109:36
ERROR Object of class `NoneType` has no attribute `loader` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:110:12
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:112:12
ERROR Object of class `object` has no attribute `exec_module` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:111:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:113:5
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
|
e30ce93 to
3832957
Compare
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-05 13:35:46.555835331 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-05 13:35:37.358752296 +0000
@@ -1,7 +1,7 @@
ERROR Object of class `Server` has no attribute `app` [missing-attribute]
--> app_factory.py:132:5
ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
- --> controllers/console/app/app.py:553:13
+ --> controllers/console/app/app.py:573:13
ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
--> controllers/console/auth/email_register.py:75:108
ERROR Object of class `MissingRouter` has no attribute `get` [missing-attribute]
@@ -1805,19 +1805,19 @@
ERROR Object of class `int` has no attribute `lower` [missing-attribute]
--> tests/unit_tests/controllers/console/app/test_annotation_security.py:256:35
ERROR Object of class `ModuleType` has no attribute `console_ns` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:70:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
ERROR Object of class `ModuleType` has no attribute `api` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:71:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:73:5
ERROR Object of class `ModuleType` has no attribute `bp` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:72:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:74:5
ERROR Object of class `ModuleType` has no attribute `app` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:78:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:80:5
ERROR Argument `ModuleSpec | None` is not assignable to parameter `spec` with type `ModuleSpec` in function `_frozen_importlib.module_from_spec` [bad-argument-type]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:107:36
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:109:36
ERROR Object of class `NoneType` has no attribute `loader` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:110:12
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:112:12
ERROR Object of class `object` has no attribute `exec_module` [missing-attribute]
- --> tests/unit_tests/controllers/console/app/test_app_response_models.py:111:5
+ --> tests/unit_tests/controllers/console/app/test_app_response_models.py:113:5
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
--> tests/unit_tests/controllers/console/app/test_workflow.py:26:40
ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `controllers.console.app.workflow._parse_file` [bad-argument-type]
|
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
Workflow comments and collaboration contracts
App list infinite queries on the frontend
consoleQuery.apps.listuseAppListanduseInfiniteAppListpassthrough hooks from the app service layerconsoleQuery.apps.listdirectlyinfiniteOptionswith TanStack Query for paginated app list reads, including explicit page params and next-page calculation at the call siteBackend app tag filter parsing
tag_ids[n]query parameters intoAppListQuery.tag_idstag_idsas a list of UUID stringstag_idsshape