Skip to content

Correlate deploy TML-import results positionally, not by request_index - #330

Merged
jp-spotter merged 1 commit into
thoughtspot:devfrom
jp-spotter:fix/searchable-deploy-request-index
Jul 23, 2026
Merged

Correlate deploy TML-import results positionally, not by request_index#330
jp-spotter merged 1 commit into
thoughtspot:devfrom
jp-spotter:fix/searchable-deploy-request-index

Conversation

@jp-spotter

@jp-spotter jp-spotter commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

The searchable deploy command crashes with an IndexError right after a successful TML import. It maps each import result back to the submitted TMLs by the result's request_index, but that value is a server-side ordinal rather than a position in the submitted list. It is sparse and can exceed the list length, so the lookup runs off the end.

The fix maps results to TMLs positionally, by submission order, instead — matching how the existing import path already reports its results.

Verified with a unit test that reproduces the crash, and end-to-end against a live deploy: 21 of 21 objects imported, no crash.

@jp-spotter
jp-spotter requested a review from a team as a code owner July 23, 2026 21:54
@jp-spotter jp-spotter changed the title Fix searchable deploy IndexError: correlate TML-import results positionally Correlate deploy TML-import results positionally, not by request_index Jul 23, 2026
@jp-spotter
jp-spotter merged commit b2d682f into thoughtspot:dev Jul 23, 2026
3 checks passed
@jp-spotter
jp-spotter deleted the fix/searchable-deploy-request-index branch July 24, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant