-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[issues-357] - User should not be able to update/delete #392
Conversation
…cs. Add confirmation for all delete/reset actions
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.
Looks good, just a few notes to fix.
kafka-ui-react-app/src/components/Topics/List/__tests__/ListItem.spec.tsx
Outdated
Show resolved
Hide resolved
kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx
Outdated
Show resolved
Hide resolved
…cs. Add confirmation for all delete/reset actions
…cs. Add confirmation for all delete/reset actions
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.
Nice 👍🏼
kafka-ui-react-app/src/components/Topics/Topic/Details/Details.tsx
Outdated
Show resolved
Hide resolved
…cs. Add confirmation for all delete/reset actions
…cs. Add confirmation for all delete/reset actions
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.
Please apply the internal check only to child elemt of td
onClick={() => | ||
clearTopicMessages(clusterName, topicName, [partition]) | ||
{!internal ? ( | ||
<td className="has-text-right"> |
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.
I would suggest to hide children of this td instead. In other case to make html of the table valid you need to hide th
too
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.
done
<DropdownItem | ||
onClick={() => setDeleteTopicConfirmationVisible(true)} | ||
{!internal ? ( | ||
<td className="value"> |
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 behaviour makes html of the table invalid. Please apply !internal
to child element of last td in a row
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.
done
Kudos, SonarCloud Quality Gate passed! |
* [issues-357] - User should not be able to update/delete internal topics. Add confirmation for all delete/reset actions * [issues-357] - User should not be able to update/delete internal topics. Add confirmation for all delete/reset actions * [issues-357] - User should not be able to update/delete internal topics. Add confirmation for all delete/reset actions * [issues-357] - User should not be able to update/delete internal topics. Add confirmation for all delete/reset actions * [issues-357] - User should not be able to update/delete internal topics. Add confirmation for all delete/reset actions * [issues-357] - User should not be able to update/delete Co-authored-by: mbovtryuk <mbovtryuk@provectus.com>
User should not be able to update/delete internal topics. Add confirmation for all delete/reset actions
![Screenshot 2021-04-25 at 21 18 12](https://user-images.githubusercontent.com/34422286/116004530-c0893280-a60b-11eb-926a-73f4ac60ac21.png)
if topic is internal you don't see an action button