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

[issues-357] - User should not be able to update/delete #392

Merged
merged 6 commits into from
May 11, 2021
Merged

Conversation

TEDMykhailo
Copy link
Contributor

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

if topic is internal you don't see an action button

Screenshot 2021-04-25 at 21 18 39

Screenshot 2021-04-25 at 21 18 52

…cs. Add confirmation for all delete/reset actions
Copy link
Member

@marat-ad marat-ad left a 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.

@marat-ad marat-ad self-requested a review April 26, 2021 10:32
Copy link
Member

@marat-ad marat-ad left a comment

Choose a reason for hiding this comment

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

Nice 👍🏼

Copy link
Member

@workshur workshur left a 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">
Copy link
Member

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

Copy link
Contributor Author

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">
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sonarcloud
Copy link

sonarcloud bot commented May 11, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

84.6% 84.6% Coverage
0.0% 0.0% Duplication

@workshur workshur merged commit c3ff5a2 into master May 11, 2021
@workshur workshur deleted the issues-357 branch May 11, 2021 19:53
javalover123 pushed a commit to javalover123/kafka-ui that referenced this pull request Dec 7, 2022
* [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>
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

4 participants