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

Remove sampling rounds from core #1531

Merged
merged 39 commits into from
Feb 28, 2020
Merged

Remove sampling rounds from core #1531

merged 39 commits into from
Feb 28, 2020

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR removes the whole Sampling Rounds functionality from core, including the types SamplingRound, SamplingRounds, SRTemplate and SRTemplates.

Please merge #1530 first.

Current behavior before PR

Dysfunctional Sampling Rounds functionality in Core

Desired behavior after PR is merged

Completely removed Sampling Rounds from Core

--
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 14:42
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.GenericSetup.tool, line 1053, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 166, in doStep
  Module bika.lims.upgrade, line 68, in wrap_func_args
  Module bika.lims.upgrade.v01_03_003, line 393, in upgrade
  Module bika.lims.upgrade.v01_03_003, line 892, in remove_samplingrounds
UnboundLocalError: local variable 'obj' referenced before assignment
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.GenericSetup.tool, line 1053, in manage_doUpgrades
  Module Products.GenericSetup.upgrade, line 166, in doStep
  Module bika.lims.upgrade, line 68, in wrap_func_args
  Module bika.lims.upgrade.v01_03_003, line 393, in upgrade
  Module bika.lims.upgrade.v01_03_003, line 892, in remove_samplingrounds
  Module bika.lims.api, line 554, in get_path
  Module bika.lims.api, line 240, in get_object
  Module bika.lims.api, line 207, in fail
APIError: <persistent broken bika.lims.controlpanel.bika_srtemplates.SRTemplates
instance '\x00\x00\x00\x00\x00\x00\x1a\xdb'> is not supported.
@xispa xispa merged commit 9d33276 into master Feb 28, 2020
@xispa xispa deleted the remove-sampling-rounds branch February 28, 2020 19:42
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