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

Removed stale type registrations #1530

Merged
merged 22 commits into from
Feb 14, 2020
Merged

Removed stale type registrations #1530

merged 22 commits into from
Feb 14, 2020

Conversation

ramonski
Copy link
Contributor

@ramonski ramonski commented Feb 11, 2020

Description of the issue/feature this PR addresses

Remove the following stale types and their content code:

  • ARImport
  • Sample (old-type)
  • SamplesFolder
  • BikaCache
  • InvoiceBatch
  • InvoiceFolder

Current behavior before PR

Stale types in Database and Code

Desired behavior after PR is merged

Stale types are history

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@ramonski ramonski added the Cleanup 🧹 Code cleanup and refactoring label Feb 11, 2020
@ramonski ramonski requested a review from xispa February 11, 2020 12:56
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.

RejectAnalysis is used when a Worksheet is rejected. Haven't gone into details, but for what I've seen, when a Worksheet is rejected, an object of type RejectAnalysis for each routine analysis is created in same slot, while the counterpart original analysis is moved to a new worksheet. I think this is used to prevent worksheets to end-up being empty while keeping the original analyses without changes:
https://github.com/senaite/senaite.core/blob/master/bika/lims/content/worksheet.py#L1414

@ramonski
Copy link
Contributor Author

Sorry, I missed that place where it was used. Just ressurected it

@xispa
Copy link
Member

xispa commented Feb 12, 2020

Sorry, I missed that place where it was used. Just ressurected it

I understand, that place really hurts...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup 🧹 Code cleanup and refactoring
Development

Successfully merging this pull request may close these issues.

2 participants