-
Notifications
You must be signed in to change notification settings - Fork 111
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
Added consistency improvement in list, details and create page of node credentials. #4323
Conversation
Deploy preview for chef-automate ready! Built with commit aeb328e |
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.effects.ts
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
@samshinde both the details and reset credential forms have issues with the spacing between the inputs, please use the same amount of space as the other forms, i believe its 30px |
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
e7db8db
to
4792472
Compare
@susanev I have updated the space between the inputs for the details and reset the credential tab. |
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.
Some initial feedback; more later...
components/automate-ui/src/app/entities/node-credentials/node-credential.actions.ts
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.effects.ts
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.effects.ts
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.model.ts
Outdated
Show resolved
Hide resolved
...s/+compliance/+node-credentials/node-credential-details/node-credential-details.component.ts
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.model.ts
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.model.ts
Outdated
Show resolved
Hide resolved
4792472
to
736e78b
Compare
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.
A lot of good work here!
Note that I have not exercised the code; my notes are from code-reading only.
components/automate-ui/src/app/entities/node-credentials/node-credential.reducer.ts
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/entities/node-credentials/node-credential.selectors.ts
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
components/automate-ui/src/app/pages/+compliance/+node-credentials/node-credentials.module.ts
Outdated
Show resolved
Hide resolved
...ages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.html
Outdated
Show resolved
Hide resolved
b7e1d0b
to
7777288
Compare
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.
Thanks for the updates; did another review pass with some additional notes.
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
...+compliance/+node-credentials/node-credential-details/node-credential-details.component.html
Outdated
Show resolved
Hide resolved
...+compliance/+node-credentials/node-credential-details/node-credential-details.component.html
Outdated
Show resolved
Hide resolved
...e/+node-credentials/create-node-credential-modal/create-node-credential-modal.component.html
Outdated
Show resolved
Hide resolved
this.resetSuccessful = (state === EntityStatus.loadingSuccess); | ||
this.resetForm.markAsPristine(); | ||
} | ||
this.getNodeCred(); |
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.
Delete this--method is already called on L84 and should only be called once.
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.
@msorens Actually we don't have any response after calling the patch Api so for updating the node credential we need to call it as the same happening in creating success.
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.
No, this violates subscription lifecycle management. The reason I asked you even to rename it to setupNodeSubscriptions
is that it is not performing any actions--it is simply creating subscriptions and we do not want to setup the same subscription call twice--that simply means the subscription handler will run twice every time the data is emitted.
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
.../pages/+compliance/+node-credentials/node-credentials-list/node-credential-list.component.ts
Outdated
Show resolved
Hide resolved
7777288
to
bda2113
Compare
@msorens regarding the Conflict error test case for now I have disabled the test case and looking for a solution for the same. |
Re-reviewed once more; just the one item that needs addressing (#4323 (comment)), then looks good to go! |
Signed-off-by: samshinde <ashinde@chef.io>
bda2113
to
aeb328e
Compare
@msorens Yes, I have updated the code and resolve the two API call issue. |
Signed-off-by: samshinde ashinde@chef.io
🔩 Description: What code changed, and why?
consistency improvements for the list, details and create of node credential.
⛓️ Related Resources
#3716
👍 Definition of Done
I have added consistency changes for the
create Node Credential
,list
,update
anddelete Node Credential
with UI changes.👟 How to Build and Test the Change
visit the Settings >> Node Credential page,
create Node Credential - Create node credential according to the type you need.
delete Node Credential - click to any Node Credential left side three-dot menu
...
where you can see the delete Node Credential link to test delete the Node Credential.✅ Checklist
📷 Screenshots, if applicable