-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
Migrate AnalysisCategories to DX #2567
Migrate AnalysisCategories to DX #2567
Conversation
… for analysis category
@xispa Hi, this PR ready for review. pls, check it |
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.
Thanks @Bugerman58 !
There is a subscriber that reindexes all sample analyses when the title of the category changes. This subscriber won't be called because the event is only triggered for AT content types. I do know that the dance is weird, takes ages to complete and is something we need to fix. But keep it for now, please. I will open a PR after yours to remove the getCategoryTitle
metadata and fix that thing. Meanwhile, please create a new subscriber specific for analysiscategory at senaite.core.subscribers
.
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.
Excellent, thanks!
Description of the issue/feature this PR addresses
This PR migrates the AT AnalysisCategory and AnalysisCategories to Dexterity types for Python 3 compatibility.
Current behavior before PR
AnalysisCategory and AnalysisCategories are content types based on the Archetypes framework
Desired behavior after PR is merged
AnalysisCategory and AnalysisCategories are content types based on the Dexterity framework
--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.