Skip to content

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

Open
vogievetsky wants to merge 5 commits into
apache:masterfrom
vogievetsky:sampler_shows_file_uri
Open

feat: web console: add file uri tooltip to sample data view#19741
vogievetsky wants to merge 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

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.

2 participants