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 call to getObjectWorkflowStates #96

Merged
merged 2 commits into from
May 8, 2020
Merged

Conversation

xispa
Copy link
Member

@xispa xispa commented May 7, 2020

Description of the issue/feature this PR addresses

Compatibility with senaite/senaite.core#1579

This Pull Request removes the call to getObjectWorkflowStates. This metadata column has been removed (and functions as well) from senaite.core. This metadata was used for when objects were bound to multiple workflows. This is not true since long time ago.

Current behavior before PR

Impress reports use the function is_provisional to know if the report is provisional. This function is relying on getObjectWorkflowStates, that is no longer available.

Desired behavior after PR is merged

is_provisional function directly relies on api.get_workflow_status

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

@xispa xispa requested a review from ramonski May 7, 2020 22:52
@ramonski ramonski merged commit 7fa41e7 into master May 8, 2020
@ramonski ramonski deleted the remove-workflow-states branch May 8, 2020 10:33
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.

2 participants