Add ability to run hamilton-ui on domain subpath#1284
Merged
elijahbenizzy merged 3 commits intoapache:mainfrom Feb 28, 2025
Merged
Add ability to run hamilton-ui on domain subpath#1284elijahbenizzy merged 3 commits intoapache:mainfrom
elijahbenizzy merged 3 commits intoapache:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
👍 Looks good to me! Reviewed everything up to 215cdf4 in 1 minute and 3 seconds
More details
- Looked at
37lines of code in2files - Skipped
0files when reviewing. - Skipped posting
5drafted comments based on config settings.
1. docs/hamilton-ui/ui.rst:121
- Draft comment:
Clarify that REACT_APP_HAMILTON_SUB_PATH should begin with '/' if set. - Reason this comment was not posted:
Confidence changes required:50%<= threshold50%
None
2. ui/frontend/src/App.tsx:31
- Draft comment:
Consider sanitizing REACT_APP_HAMILTON_SUB_PATH to ensure it has a leading '/' (if non-empty) for BrowserRouter basename. - Reason this comment was not posted:
Confidence changes required:50%<= threshold50%
None
3. docs/hamilton-ui/ui.rst:121
- Draft comment:
Consider adding a note that REACT_APP_HAMILTON_SUB_PATH must start with a '/' (e.g., '/hamilton') to ensure proper routing. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%
None
4. ui/frontend/src/App.tsx:31
- Draft comment:
Good integration of subPath. Consider normalizing the value so that it always starts with a '/' to avoid routing issues when used as the basename in BrowserRouter. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%
None
5. ui/frontend/src/App.tsx:58
- Draft comment:
Typographical error: In the comment on line 58, 'oseparate' should be corrected to 'separate'. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_hl2qxDygutE58iH2
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
Contributor
|
This looks great/backwards compatible. Thanks! Will take another look then we can merge/release. |
elijahbenizzy
approved these changes
Feb 28, 2025
Contributor
elijahbenizzy
left a comment
There was a problem hiding this comment.
Thank you! Looks good.
|
Hi guys, sorry for stepping in here. But I wonder how to correctly configure nginx to work properly with a subpath defined as Probably, this could also be included into the docs. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--- PR TEMPLATE INSTRUCTIONS (2) ---
This pull request allows the user to run the hamilton-ui on a custom subpath for a domain, e.g
https://domain.com/hamiltonChanges
REACT_APP_HAMILTON_SUB_PATHHow I tested this
Tested manually by setting the following in the docker-compose.yml under the environment section in the frontend service:
- REACT_APP_HAMILTON_SUB_PATH=/hamiltonNotes
N/A
Checklist