-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Issue 3249: make casetype a managed entity #23313
Conversation
(Standard links)
|
Just noting
|
I think the word "managed" is used to mean two different things here.
If the latter works well for case types, then I would say we deprecate the former. |
I pasted an example here https://lab.civicrm.org/dev/core/-/issues/3429#note_74121. I haven't tested adding it to an extension, but I may soon, and I wasn't aware of the old approach. |
Perhaps |
@herbdool no I don't think other updates will be needed. |
I tested my PR now and it seems to work, though darn slow. I created a test extension and added an mgd.php file with:
Relies only on existing activity types. I enabled it via Uninstalling the extension is much faster but it doesn't remove the case type. I also tested the same extension with only a mgd.php file for 1 contact type. That was fast (and disabling the extension removes the contact type). When I test creating 1 contact type with the case type, the contact type fails to appear. So something might be getting caught in a loop, but I haven't looked under the hood. |
Yes, from a high level, 👍 I also like
Re: #23320, I have issues with that PR at this time (being discussed over there). But please don't interpret that as a general obstacle to dev/core#3429. They can certainly coexist, and (for deprecation/transition) there's plenty of tasks. IMHO, the transition would look something like this:
|
All that to say, yes we should merge this PR :) |
Fixes https://lab.civicrm.org/dev/core/-/issues/3429