Skip to content

fix and optimise explorer#170

Merged
iam404 merged 2 commits into
next-1.0.0from
fix-explorer
May 24, 2026
Merged

fix and optimise explorer#170
iam404 merged 2 commits into
next-1.0.0from
fix-explorer

Conversation

@iam404

@iam404 iam404 commented May 24, 2026

Copy link
Copy Markdown
Member

No description provided.

@iam404 iam404 requested a review from a team as a code owner May 24, 2026 17:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0aafb8aeea

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/pytfe/resources/explorer.py Outdated
raise InvalidExplorerSavedViewIDError()
path = (
f"/api/v2/organizations/{organization}"
f"/explorer/views/{view_id}/export/csv"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Call the documented saved-view CSV endpoint

saved_view_results_csv now requests /explorer/views/{id}/export/csv, but the Explorer API’s saved-view CSV route is /explorer/views/{id}/csv. In environments that only expose the documented route, this method will return 404 for every valid saved view, so CSV export is effectively broken for users of this SDK method.

Useful? React with 👍 / 👎.

Comment thread src/pytfe/resources/explorer.py
Comment thread src/pytfe/models/explorer.py
Comment on lines +95 to +96
if isinstance(raw_fields, list) and isinstance(view_type, str):
query["fields"] = {view_type: list(raw_fields)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve query.fields as list in saved-view writes

Create/update serialization now rewrites query.fields from a list into {view_type: [...]}, but the Explorer saved-view payload contract expects query.fields to be an array of strings. When callers provide fields, this can send an invalid schema and cause API validation failures or ignored column selections.

Useful? React with 👍 / 👎.

@iam404 iam404 merged commit c95a3ed into next-1.0.0 May 24, 2026
11 checks passed
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