Skip to content

feat: web console: add file uri tooltip to sample data view - #19741

Merged
vogievetsky merged 5 commits into
apache:masterfrom
vogievetsky:sampler_shows_file_uri
Jul 29, 2026
Merged

feat: web console: add file uri tooltip to sample data view#19741
vogievetsky merged 5 commits into
apache:masterfrom
vogievetsky:sampler_shows_file_uri

Conversation

@vogievetsky

Copy link
Copy Markdown
Contributor

query the __file_uri system field if it is possible for the input source and show it in a tooltip

@FrankChen021 FrankChen021 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Severity Findings
P0 0
P1 0
P2 1
P3 0
Total 1

Reviewed 4 of 4 changed files.


This is an automated review by Codex GPT-5.6-Sol


const addFileUri = Boolean(
ioConfig.inputSource &&
getPossibleSystemFieldsForInputSource(ioConfig.inputSource).includes('__file_uri'),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[P2] Include HTTP sources in the file-URI gate

getPossibleSystemFieldsForInputSource returns no fields for http, even though HttpInputSource supports both __file_uri and __file_path. As a result this new gate never requests __file_uri for HTTP samples, so the tooltip is absent for the web console's common URL-based sample flow. Add HTTP to the supported-source mapping and cover the generated sampler request.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Great spot! fixed

@FrankChen021 FrankChen021 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Confirmed that the follow-up adds http to getPossibleSystemFieldsForInputSource, so sampleForConnect now requests and surfaces __file_uri for HTTP sources. The original issue is resolved.

Reviewed 8 of 8 changed files.


This is an automated review by Codex GPT-5.6-Sol

@FrankChen021 FrankChen021 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I reviewed the update and full PR for correctness, edge cases, UI states, and integration risks; no new issues were found.

Reviewed 13 of 13 changed files.


This is an automated review by Codex GPT-5.6-Sol

@vogievetsky
vogievetsky merged commit 841faf1 into apache:master Jul 29, 2026
11 checks passed
@vogievetsky
vogievetsky deleted the sampler_shows_file_uri branch July 29, 2026 19:43
@github-actions github-actions Bot added this to the 39.0.0 milestone Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants