Skip to content

Conversation

avikarshasaha
Copy link
Contributor

@avikarshasaha avikarshasaha commented Feb 7, 2025

Q A
Bug fix? (use the a.b branch) 🔴
New feature/enhancement? (use the a.x branch) 🟢
Deprecations? 🔴
BC breaks? (use the c.x branch) 🔴
Automated tests included? 🟢
Related user documentation PR URL
Related developer documentation PR URL
Issue(s) addressed

Description

In this PR, we restrict user deletion of categories if they are associated to other resources.


📋 Steps to test this PR:

  1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs here)
  2. Create a global category and add it to any resource.
  3. Then, attempt to delete the global category/attempt to batch delete
  4. You should receive an error, and a category should exist.

avikarshasaha and others added 30 commits February 6, 2025 13:56
This reverts commit 61bd54ae07868713b0edcab02ec9db1441f5f9da.
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
Co-authored-by: Tejas Navghane <ts.navghane@gmail.com>
@escopecz escopecz added the unforking Used for PRs in the Acquia's unforking initiative label Feb 7, 2025
@escopecz escopecz added the pending-feedback PR's and issues that are awaiting feedback from the author label Feb 7, 2025
@escopecz
Copy link
Member

Please request the review again once the CI is green

@escopecz escopecz removed their request for review February 10, 2025 16:28
Copy link
Member

@escopecz escopecz left a comment

Choose a reason for hiding this comment

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

Works as described.

Screenshot 2025-02-11 at 12 57 52

I got some small bugs along the way but those are already documented in GH issues and not related to this PR.

@escopecz escopecz added pending-test-confirmation PR's that require one test before they can be merged code-review-passed PRs which have passed code review user-testing-passed PRs which have been successfully tested by the required number of people. and removed ready-to-test PR's that are ready to test pending-feedback PR's and issues that are awaiting feedback from the author code-review-needed PR's that require a code review before merging labels Feb 11, 2025
Copy link
Contributor

@rahuld-dev rahuld-dev left a comment

Choose a reason for hiding this comment

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

Thanks @avikarshasaha
It is working as expected.
image

There is another issue with Category list page it is not related to this PR.
If you delete a category you will see the category list page UI is broken.
image

@rahuld-dev rahuld-dev added ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged and removed pending-test-confirmation PR's that require one test before they can be merged labels Feb 13, 2025
@escopecz
Copy link
Member

That issue is recorded at #14401

@escopecz escopecz added this to the 6.0.0-beta milestone Feb 13, 2025
@escopecz escopecz merged commit 7264428 into mautic:6.x Feb 13, 2025
17 checks passed
@RCheesley RCheesley modified the milestones: 6.0.0-beta, 6.0.0-beta2 Mar 5, 2025
@mautibot
Copy link
Contributor

mautibot commented Mar 6, 2025

This pull request has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/announcing-mautic-6-beta-now-available-for-testing/35196/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
categories Anything related to categories code-review-passed PRs which have passed code review enhancement Any improvement to an existing feature or functionality ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged unforking Used for PRs in the Acquia's unforking initiative user-testing-passed PRs which have been successfully tested by the required number of people.
Projects
Status: 🥳 Done
Development

Successfully merging this pull request may close these issues.

5 participants