Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] added 'hue' to metastore url prefix when running Knox #3609

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

bjornalm
Copy link
Collaborator

Previously the hue prefix was only added if Knox was not running,
which caused the back button to trigger a 404.

What changes were proposed in this pull request?

  • Updated the metastore.url.change in metastoreViewModel.js

@wing2fly this change will overwrite some of you changes here #2111 but I think it will still work since all parts called 'hue' are removed before actually loading the data.

How was this patch tested?

  • Tested by manually temporary modifying the window.HUE_BASE_URL in metastoreViewModel.js and changeURL.ts to verify that HUE_BASE_URL = '/hue' would result in a url containing two 'hue' in the path. E.g. looking like hue/hue/metastore/table/default/sample_07?source_type=hive when navigating in the table browser. Because that is how the base url looks in a Knox enabled setup.

  • Please review Hue Contributing Guide before opening a pull request.

Copy link
Contributor

@JohanAhlen JohanAhlen left a comment

Choose a reason for hiding this comment

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

LGTM!

Previously the hue prefix was only added if Knox was not running, which caused the back button to trigger a 404.
@bjornalm bjornalm force-pushed the bjorn--table-browser-error-404 branch from 50267e2 to c42880c Compare January 25, 2024 14:21
@bjornalm bjornalm merged commit 55f561b into master Jan 26, 2024
4 checks passed
@bjornalm bjornalm deleted the bjorn--table-browser-error-404 branch January 26, 2024 09:41
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.

None yet

3 participants