-
Notifications
You must be signed in to change notification settings - Fork 113
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
Client Runs Delete check boxes not showing up. #3804
Conversation
Signed-off-by: Lance Finfrock <lfinfrock@chef.io>
Signed-off-by: Lance Finfrock <lfinfrock@chef.io>
@@ -16,7 +16,7 @@ <h2 id="confirm-delete-modal-label" class="status-modal-heading">Warning</h2> | |||
<strong>{{nodesSelectedForDelete.size}} node{{ nodesSelectedForDelete.size | i18nPlural: pluralMapping }}</strong>. | |||
</p> | |||
<p>This action can not be undone.</p> | |||
<chef-button primary caution (click)="closeModal(true)"> | |||
<chef-button class="delete-button-confirm" primary caution (click)="closeModal(true)"> |
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.
Added to allow the cypress test to find this control.
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.
In other places, I believe we've used data-cy for that.
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.
@@ -374,7 +374,7 @@ export class ClientRunsComponent implements OnInit, OnDestroy { | |||
this.authorizedChecker = new AuthorizedChecker(this.store); | |||
this.authorizedChecker.setPermissions([ | |||
{ | |||
endpoint: '/ingest/events/chef/node-multiple-deletes', | |||
endpoint: '/api/v0/ingest/events/chef/node-multiple-deletes', |
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.
This is the fix.
@@ -16,7 +16,7 @@ <h2 id="confirm-delete-modal-label" class="status-modal-heading">Warning</h2> | |||
<strong>{{nodesSelectedForDelete.size}} node{{ nodesSelectedForDelete.size | i18nPlural: pluralMapping }}</strong>. | |||
</p> | |||
<p>This action can not be undone.</p> | |||
<chef-button primary caution (click)="closeModal(true)"> | |||
<chef-button class="delete-button-confirm" primary caution (click)="closeModal(true)"> |
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.
In other places, I believe we've used data-cy for that.
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.
im gonna go ahead and merge since this is one of the prs that we need before promoting - we can make the change to data-cy in a future pr if ppl want to make that change
🔩 Description: What code changed, and why?
Fixing a bug where admin users were not provided the checkboxes to delete missing nodes. The problem was the API path used was incorrect. The incorrect path that was being used was "/ingest/events/chef/node-multiple-deletes", but it was correct path is "/api/v0/ingest/events/chef/node-multiple-deletes".
⛓️ Related Resources
#3802
👟 How to Build and Test the Change
build components/automate-ui-devproxy && start_all_services && start_automate_ui_background
send_chef_run_example
ui_logs
✅ Checklist
📷 Screenshots, if applicable