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

Migrate SampleType to DX #2584

Merged
merged 42 commits into from
Aug 4, 2024
Merged

Migrate SampleType to DX #2584

merged 42 commits into from
Aug 4, 2024

Conversation

toropok
Copy link
Contributor

@toropok toropok commented Jun 27, 2024

Description of the issue/feature this PR addresses

This PR migrates the AT SampleType to Dexterity types for Python 3 compatibility.

Current behavior before PR

SampleType is a content type based on the Archetypes framework

Desired behavior after PR is merged

SampleType is a content type 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.

@xispa xispa added Python 3 Python 3 compatibility Content Migration ♻️ Migrate contents to Dexterity labels Jul 15, 2024
@toropok toropok marked this pull request as ready for review July 17, 2024 07:15
@toropok toropok requested a review from xispa July 24, 2024 07:10
@toropok
Copy link
Contributor Author

toropok commented Jul 24, 2024

@xispa thanks for review. hope it is ok now :)

Copy link
Member

@xispa xispa left a comment

Choose a reason for hiding this comment

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

Many thanks, we are almost there!

Besides the comments I've left, please add the counterpart doctests for the two functions you added in senaite.core.api.dtime at https://github.com/senaite/senaite.core/blob/2.x/src/senaite/core/tests/doctests/API_datetime.rst .

Thanks man!

@toropok toropok requested a review from xispa July 25, 2024 06:53
@toropok
Copy link
Contributor Author

toropok commented Jul 25, 2024

@xispa here we go :) the new iteration served :)

@xispa
Copy link
Member

xispa commented Jul 29, 2024

@xispa here we go :) the new iteration served :)

Thanks @toropok ! I am working on the changes for compatibility of other add-ons with this PR. Will revisit and merge afterwards!

Copy link
Member

@xispa xispa left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! 🚀

@xispa xispa merged commit 90f02d5 into senaite:2.x Aug 4, 2024
1 check passed
@toropok toropok deleted the dx-sampletype branch August 5, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Migration ♻️ Migrate contents to Dexterity Python 3 Python 3 compatibility
Development

Successfully merging this pull request may close these issues.

3 participants