[codex] Default null summary index setting to disabled#36820
Draft
QuantumGhost wants to merge 5 commits into
Draft
[codex] Default null summary index setting to disabled#36820QuantumGhost wants to merge 5 commits into
QuantumGhost wants to merge 5 commits into
Conversation
Assisted-by: Codex:GPT-5.5
Assisted-by: Codex:GPT-5.5
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-29 08:50:34.443805167 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-29 08:50:25.516733814 +0000
@@ -565,11 +565,11 @@
ERROR Argument `str | None` is not assignable to parameter `value` with type `SQLCoreOperations[str] | str` in function `sqlalchemy.orm.base.Mapped.__set__` [bad-argument-type]
--> services/conversation_service.py:131:33
ERROR `dict[str, dict[str, Any] | str | None]` is not assignable to variable `data_source_info` with type `dict[str, bool | str]` [bad-assignment]
- --> services/dataset_service.py:2232:56
+ --> services/dataset_service.py:2202:56
ERROR `dict[str, dict[str, Any] | str | None]` is not assignable to variable `data_source_info` with type `dict[str, bool | str]` [bad-assignment]
- --> services/dataset_service.py:2745:44
+ --> services/dataset_service.py:2715:44
ERROR `None` is not assignable to attribute `rules` with type `Never` [bad-assignment]
- --> services/dataset_service.py:2920:51
+ --> services/dataset_service.py:2890:51
ERROR Class member `DocumentIndexingTaskProxy.NORMAL_TASK_FUNC` overrides parent class `BatchDocumentIndexingProxy` in an inconsistent manner [bad-override]
--> services/document_indexing_proxy/document_indexing_task_proxy.py:11:5
ERROR Class member `DocumentIndexingTaskProxy.PRIORITY_TASK_FUNC` overrides parent class `BatchDocumentIndexingProxy` in an inconsistent manner [bad-override]
@@ -2066,6 +2066,8 @@
--> tests/unit_tests/controllers/console/app/test_wraps.py:148:26
ERROR Cannot set item in `OrderedDict[str, bool | list[str] | str]` [unsupported-operation]
--> tests/unit_tests/controllers/console/app/workflow_draft_variables_test.py:137:47
+ERROR Unpacked `dict[str, str | dict[str, list[dict[str, bool | str]] | dict[str, int | str]]]` is not assignable to `dict[str, int]` [bad-unpacking]
+ --> tests/unit_tests/controllers/console/datasets/test_datasets.py:1312:35
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
--> tests/unit_tests/controllers/console/explore/test_trial.py:651:9
ERROR Object of class `BytesIO` has no attribute `filename` [missing-attribute]
|
Contributor
Pyrefly Type Coverage
|
Assisted-by: Codex:GPT-5.5
…ix/invalid-enable-value
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.
AI disclosure: This PR was AI-assisted with Codex using GPT-5.5. I have reviewed the final diff, and I am responsible for the content.
Summary
This PR fixes the Console dataset detail response for legacy datasets whose
summary_index_settingis stored asNULL.A
NULLsummary index setting means summary index generation is not configured and should behave as disabled. The response currently exposes that storage detail asenable: null, which gives Console clients an ambiguous boolean value and can be propagated into follow-up requests such as/datasets/indexing-estimate.Fix
DatasetSummaryIndexSettingResponse.enabletofalse.{ "enable": null }, so the API output contract is responsible for producing a valid disabled setting.summary_index_setting = NULL.summary_index_settingin an indexing estimate request, and verify the estimate path accepts the normalized disabled setting.Validation
Closes #36813