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

Fixes #36577 - Filter gets applied to all the repository upon removal #10640

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

sjha4
Copy link
Member

@sjha4 sjha4 commented Jul 11, 2023

What are the changes introduced in this pull request?

Considerations taken when implementing this change?

What are the testing steps for this pull request?

  1. Create a couple of repos and add them to filters.
  2. Go to repo > Remove repository
  3. You should see a section in the deletion confirmation modal if the repo is the last repo that a filter is applied to.
  4. You should be able to choose to delete the filter/or make it apply to all repositories in the CV depending on your selection.
  5. This section shouldn't appear for repos that are not the last affected repo in any filters.

@theforeman-bot
Copy link

Issues: #36577

Copy link
Member

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

just a few wording suggestions :)

… of repository for which the filter was created.
Copy link
Member

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

When clicking Remove Repository from the repo details screen / Select Action,
✔️ I see the section added to the modal when it's the last repo
✔️ I don't see the section added to the modal when it's not the last repo

One question.. When selecting a repo from the repo list screen and clicking Remove Repositories, I don't see anything special. Is this intended?

image

@sjha4
Copy link
Member Author

sjha4 commented Jul 13, 2023

Good point! For bulk actions, we don't check if individual selected repos are part of published versions or this use case..For CV versions that is fine because we fail the deletion for that repo. For filters we would default to deleting the filter.

@jeremylenz
Copy link
Member

For filters we would default to deleting the filter.

Have we always deleted the filter in this case? Or this PR changes that behavior?

If it's a change, should probably add some notice to that modal.

@sjha4
Copy link
Member Author

sjha4 commented Jul 13, 2023

For filters we would default to deleting the filter.

Have we always deleted the filter in this case? Or this PR changes that behavior?

If it's a change, should probably add some notice to that modal.

We do change the behavior. Earlier it would make the filter apply to all repos..

Copy link
Member

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

I was expecting a different message on both the bulk product delete confirmation and the bulk repository delete confirmation modals, but I don't see them.

See my question/suggestion below about auto-deleting filters during bulk delete. Maybe we should change the behavior as per that, then update these modals to describe it. Thoughts?

Copy link
Member

@jeremylenz jeremylenz left a comment

Choose a reason for hiding this comment

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

thanks @sjha4!

ACK 👍

@sjha4 sjha4 merged commit 49a55b1 into Katello:master Jul 19, 2023
4 of 5 checks passed
wbclark pushed a commit to wbclark/katello that referenced this pull request Sep 7, 2023
…Katello#10640)

* Fixes #36577 - Filter gets applied to all the repository upon removal of repository for which the filter was created.

* Fixes #36577 - Handle bulk repo and product deletion

(cherry picked from commit 49a55b1)
wbclark pushed a commit that referenced this pull request Sep 27, 2023
…#10640)

* Fixes #36577 - Filter gets applied to all the repository upon removal of repository for which the filter was created.

* Fixes #36577 - Handle bulk repo and product deletion

(cherry picked from commit 49a55b1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants