Skip to content

Share code between router ui and presto ui#25223

Merged
yhwang merged 9 commits intoprestodb:masterfrom
auden-woolfson:share_router_ui_code
Jun 12, 2025
Merged

Share code between router ui and presto ui#25223
yhwang merged 9 commits intoprestodb:masterfrom
auden-woolfson:share_router_ui_code

Conversation

@auden-woolfson
Copy link
Contributor

@auden-woolfson auden-woolfson commented May 29, 2025

Description

Reduce code repetition on the UI side. The router ui shares a lot of resources with the main presto ui, so they don't need to be defined twice in the code base.

Motivation and Context

Impact

Test Plan

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

Please follow release notes guidelines and fill in the release notes below.

== RELEASE NOTES ==

General Changes
* ... 
* ... 

@auden-woolfson auden-woolfson requested a review from ZacBlanco May 29, 2025 17:33
@prestodb-ci prestodb-ci added the from:IBM PR from IBM label May 29, 2025
@auden-woolfson auden-woolfson force-pushed the share_router_ui_code branch from 7dbf84c to baa2d41 Compare June 4, 2025 22:12
Copy link
Contributor

@ZacBlanco ZacBlanco left a comment

Choose a reason for hiding this comment

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

let's double check which dependencies are already vendored and make sure we reference those rather than introducing a copy in a separate tree

auden-woolfson and others added 2 commits June 5, 2025 13:03
move the jsx and html pages to presto-ui project
and reuse the vendor, assets, and deps there to
build the presto-router page.

Signed-off-by: Yihong Wang <yh.wang@ibm.com>
@auden-woolfson auden-woolfson marked this pull request as ready for review June 6, 2025 18:32
@auden-woolfson auden-woolfson requested review from a team and yhwang as code owners June 6, 2025 18:32
@prestodb-ci prestodb-ci requested review from a team, pramodsatya and sh-shamsan and removed request for a team June 6, 2025 18:32
@auden-woolfson auden-woolfson requested a review from ZacBlanco June 10, 2025 22:44
Copy link
Contributor

@ZacBlanco ZacBlanco left a comment

Choose a reason for hiding this comment

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

LGTM, please squash commits and also get approval from @yhwang

@yhwang
Copy link
Member

yhwang commented Jun 12, 2025

@ZacBlanco thanks for the review. I thought one of the commits is from me, I shouldn't be qualified to approve it.

@auden-woolfson thanks for fixing the flow errors. let me just squash and merge it.

Copy link
Member

@yhwang yhwang left a comment

Choose a reason for hiding this comment

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

/LGTM

@yhwang yhwang merged commit a99fa32 into prestodb:master Jun 12, 2025
97 checks passed
anandamideShakyan pushed a commit to anandamideShakyan/presto that referenced this pull request Jun 19, 2025
## Description
Reduce code repetition on the UI side. The router ui shares a lot of
resources with the main presto ui, so they don't need to be defined
twice in the code base.

## Motivation and Context
<!---Why is this change required? What problem does it solve?-->
<!---If it fixes an open issue, please link to the issue here.-->

## Impact
<!---Describe any public API or user-facing feature change or any
performance impact-->

## Test Plan
<!---Please fill in how you tested your change-->

## Contributor checklist

- [ ] Please make sure your submission complies with our [contributing
guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md),
in particular [code
style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style)
and [commit
standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards).
- [ ] PR description addresses the issue accurately and concisely. If
the change is non-trivial, a GitHub Issue is referenced.
- [ ] Documented new properties (with its default value), SQL syntax,
functions, or other functionality.
- [ ] If release notes are required, they follow the [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines).
- [ ] Adequate tests were added if applicable.
- [ ] CI passed.

## Release Notes
Please follow [release notes
guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines)
and fill in the release notes below.

```
== RELEASE NOTES ==

General Changes
* ... 
* ... 
```

---------

Signed-off-by: auden-woolfson <auden.woolfson@ibm.com>
Co-authored-by: Yihong Wang <yh.wang@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from:IBM PR from IBM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants