Skip to content

fix: add isDatasetDownloadable and align field order & docstring in dataset query - #3723

Merged
aicam merged 7 commits into
apache:mainfrom
AnzhiZhang:3683-dashboard-query
Sep 13, 2025
Merged

aicam merged 7 commits into
apache:mainfrom
AnzhiZhang:3683-dashboard-query

Conversation

@AnzhiZhang

@AnzhiZhang AnzhiZhang commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

fixes #3727

Copilot AI review requested due to automatic review settings September 10, 2025 05:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Fixes dataset-related dashboard query by adding the missing isDatasetDownloadable field and ensuring proper field ordering to match SQL schema. Also corrects documentation grammar issues.

  • Adds isDatasetDownloadable field to DatasetSearchQueryBuilder to match existing dataset schema
  • Reorders field properties to align with SQL schema structure
  • Fixes grammatical errors in UnifiedResourceSchema docstring

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
UnifiedResourceSchema.scala Adds isDatasetDownloadable parameter, reorders field mappings to match SQL schema, and fixes docstring grammar
DatasetSearchQueryBuilder.scala Adds isDatasetDownloadable field and reorders did field to match schema ordering

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@aicam aicam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@chenlica

Copy link
Copy Markdown
Contributor

@AnzhiZhang : following our practice, please create an issue to describe the problem we want to solve, then use this PR to close the issue. Also the subject of this PR is not clear enough.

After you make these changes, I will review them again.

@AnzhiZhang AnzhiZhang changed the title fix: dataset related dashboard query fix: add isDatasetDownloadable and fix field order & docstring consistency to dataset query Sep 11, 2025
@AnzhiZhang AnzhiZhang changed the title fix: add isDatasetDownloadable and fix field order & docstring consistency to dataset query fix: add isDatasetDownloadable and align field order & docstring in dataset query Sep 11, 2025
@AnzhiZhang

Copy link
Copy Markdown
Contributor Author

@AnzhiZhang : following our practice, please create an issue to describe the problem we want to solve, then use this PR to close the issue. Also the subject of this PR is not clear enough.

After you make these changes, I will review them again.

@chenlica Done.

@chenlica
chenlica removed the request for review from bobbai00 September 13, 2025 00:53
@chenlica

Copy link
Copy Markdown
Contributor

@seongjinyoon Can you review it?

@seongjinyoon

Copy link
Copy Markdown
Contributor

@AnzhiZhang , could you explain as to why we need isDatasetDownloadable in DatasetSearchQueryBuilder and WorkflowSearchQueryBuilder?

@AnzhiZhang

Copy link
Copy Markdown
Contributor Author

@AnzhiZhang , could you explain as to why we need isDatasetDownloadable in DatasetSearchQueryBuilder and WorkflowSearchQueryBuilder?

I saw we have other dataset fields e.g. datasetStoragePath, so I thought it was intended to include them. Another reason is that isDatasetDownloadable was returned in the search result, but the value is null because it was not included in the query.

Before:

image

After:

image

@seongjinyoon

Copy link
Copy Markdown
Contributor

LGTM. The implementation correctly fixes the issue.

@chenlica
chenlica requested review from aglinxinyuan and removed request for chenlica September 13, 2025 03:15
@chenlica

Copy link
Copy Markdown
Contributor

@aglinxinyuan please review it. @seongjinyoon already reviewed it and approved it. For some reason I cannot add him as a reviewer. I removed myself from the reviewer list.

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@aicam
aicam merged commit d33a155 into apache:main Sep 13, 2025
@AnzhiZhang
AnzhiZhang deleted the 3683-dashboard-query branch September 14, 2025 01:52
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
…ataset query (apache#3723)

fixes apache#3727

---------

Co-authored-by: Xinyuan Lin <xinyual3@uci.edu>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…ataset query (apache#3723)

fixes apache#3727

---------

Co-authored-by: Xinyuan Lin <xinyual3@uci.edu>
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.

Add isDatasetDownloadable field and update docstring in dashboard dataset query

6 participants