Skip to content

fix(hub-frontend): display public datasets/workflows on hub page#4587

Merged
bobbai00 merged 2 commits into
apache:release/v1.1.0-incubatingfrom
xuang7:hub-search-update
May 1, 2026
Merged

fix(hub-frontend): display public datasets/workflows on hub page#4587
bobbai00 merged 2 commits into
apache:release/v1.1.0-incubatingfrom
xuang7:hub-search-update

Conversation

@xuang7
Copy link
Copy Markdown
Contributor

@xuang7 xuang7 commented Apr 30, 2026

What changes were proposed in this PR?

This PR fixes an issue where public datasets/workflows fail to display on the hub search result page on first render. After the Angular upgrade, @ViewChild is undefined during the first render, and the previous getters for filters and searchResultsComponent threw an error in that case.

Changes:

  • Change the filters and searchResultsComponent getters to return undefined when the child view is not yet initialized.
  • Add a guard at the start of search() to skip until both are ready.
  • Move searchKeywords into a component property so the template no longer dereferences filters while it's undefined.
Screenshot 2026-04-30 at 3 14 29 PM

Any related issues, documentation, discussions?

Resolves #4578
Backport to the 1.1 release branch.

How was this PR tested?

Manually tested

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.7

@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Apr 30, 2026
@xuang7
Copy link
Copy Markdown
Contributor Author

xuang7 commented Apr 30, 2026

This is backport PR for release/v1-1-0-incubating, thanks. @bobbai00

@bobbai00 bobbai00 merged commit d98014d into apache:release/v1.1.0-incubating May 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants