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

NMRL-301 Removing Html from ARReport #101

Merged
merged 4 commits into from
May 30, 2017

Conversation

nihadness
Copy link
Contributor

From bika.lims.content.arreport, removed 'Html' field.
The result will be a reduction of the database size and RAM consumption.
Note that there is the need of a migration script that walks thorugh all ARReport objects and remove the field.

obj = ar.getObject()
if hasattr(obj, f_name):
delattr(obj, f_name)
print 'R'
Copy link

Choose a reason for hiding this comment

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

Well done Nihad, but this "print" should be removed.
BTW, having a progess logger here would be nice, in order to keep the track about what the upgradestep is doing. Something like that: https://github.com/naralabs/bika.lims/blob/wip/bika/lims/upgrade/utils.py#L105

@xispa xispa merged commit 22b39d3 into wip May 30, 2017
@xispa xispa deleted the task/NMRL-301-remove-html-field-from-ARReport branch August 24, 2017 08:14
Ruhanga pushed a commit to Ruhanga/senaite.core that referenced this pull request Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants