-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AMBARI-26425: ambari admin sign out #3970
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
base: frontend-refactor
Are you sure you want to change the base?
Conversation
| className="text-black m-0 breadcrumb d-flex align-items-center" | ||
| style={{ fontSize: 24 }} | ||
| > | ||
| {" "} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant strings.
| parseJSONData | ||
| } from "./api/Utility.ts"; | ||
| import { get } from "lodash"; | ||
| import AmbariAboutModal from "./AmbariAboutModal"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File missing.
| {showAmbariAboutModal ? ( | ||
| <AmbariAboutModal | ||
| isOpen={showAmbariAboutModal} | ||
| onClose={() => setShowAmbariAboutModal(false)} | ||
| /> | ||
| ) : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that isOpen alone can control the display and hiding of AmbariAboutModal. Why is an additional layer of render conditional wrapping needed?
| setInLocalStorage('ambari', encryptData(JSON.stringify(data))); | ||
|
|
||
| const headers = { | ||
| 'Authorization': 'Basic ' + 'invalid_username:password' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current ambari-server uses cookie-based authentication, but it seems you’ve implemented it using a JWT approach. What is the purpose of this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zRains this implementation logic seems to be as per angular js implementation of ambari-admin auth.js
nikita15p
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shaur97 add JIRA ID in the commit message. CI gives error Ooops, no jira id found :(
|
Updated PR subject and retriggered precommit tests. Encountered rat failure: [INFO] Rat check: Summary over all files. Unapproved: 1, unknown: 1, generated: 0, approved: 181 licenses. |
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.