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

Configurable workflow: Enable workflow item deletion without publishing it (DS-3926) #2076

Closed
wants to merge 2 commits into from

Conversation

santit96
Copy link
Contributor

@santit96 santit96 commented Jun 7, 2018

The whole issue is described here:
https://jira.duraspace.org/browse/DS-3926

The item is removed permanently, and before deleting the item DELETE
permission is checked
@tdonohue tdonohue added improvement needs discussion Ticket or PR needs discussion before it can be moved forward. labels Jul 17, 2018
@tdonohue tdonohue added the component: workflow Related to approval workflow or configurable workflow label Aug 21, 2018
@J4bbi J4bbi self-assigned this Jul 23, 2021
@J4bbi J4bbi added this to the 6.4 milestone Jul 23, 2021
@J4bbi J4bbi closed this Jul 23, 2021
@J4bbi J4bbi reopened this Jul 23, 2021
@J4bbi
Copy link
Contributor

J4bbi commented Jul 23, 2021

Closing and opening to restart tests

@J4bbi
Copy link
Contributor

J4bbi commented Aug 11, 2021

@santit96, it's been a while since you submitted, but a belated thanks for the pr

I am having some difficulty actually testing the functionality described, I haven't used the workflow process very much

could you explain how to use the described feature in this PR?

@santit96
Copy link
Contributor Author

Hi @J4bbi! Sure! Here are the steps to use the feature:

  1. First, with workflow enabled and as an admin or collection admin, select a task from the task pool
    tasksinthepool
  2. Claim the task
    taketask
  3. Then (if you have edit permissions over the item), along with the "Accept" "Edit" and "Reject" options, there will be de "Delete" option, which deletes the workflow item.
    deleteaction
  4. Click "Delete" and then it will ask to confirm de action
    confirmdeletion

And that's it, the workflow item no longer exists

@J4bbi
Copy link
Contributor

J4bbi commented Aug 14, 2021

Thanks @santit96

I don't know why but I don't get that option, I am pretty sure I have done everything correctly, I am building your branch with the two commits and using docker-compose.

image

these are the only, and standard options I get.

Is it possible this branch is missing a commit?

I've made the submission with a non-admin and I've set admin to be the group assigned to WF2 Accept/Reject/Edit Metadata Step.

I've also peppered the xmlworkflow AcceptEditRejectAction class with log.info and System.out.printlns but I get nothing in the logs. I'm feeling like I need a serious sanity check.

@santit96
Copy link
Contributor Author

@J4bbi I'm pretty sure that i have pushed all the commits, but i made this PR long ago so i'll check just in case!

@J4bbi
Copy link
Contributor

J4bbi commented Aug 23, 2021

@santit96, can you also confirm if this PR is intended for configurable xmlworkflow or the basic workflow?

see: https://wiki.lyrasis.org/display/DSDOC6x/Configurable+Workflow

@santit96
Copy link
Contributor Author

It is for configurable xmlworkflow

@J4bbi J4bbi changed the title Enable workflow item deletion without publishing it (DS-3926) Configurable workflow: Enable workflow item deletion without publishing it (DS-3926) Aug 23, 2021
@J4bbi J4bbi added the interface: XMLUI (obsolete) XMLUI in DSpace versions 1.x through 6.x. Removed in 7.x label Aug 23, 2021
@santit96
Copy link
Contributor Author

I checked the feature again with the branch of this PR (also checked that i have the same commits this PR has), and everything works fine for me. I seems to me that there is a permissions issue. Perhaps the problem is that the the group assigned to WF2 Accept/Reject/Edit Metadata Step does not have DELETE permissions over the items, you can try giving DELETE permissions over the collection to that particular admin.

@tdonohue
Copy link
Member

@santit96 and @J4bbi : I'd recommend this PR be updated to go against main and DSpace 7.x. It looks, to me, like it's adding a new feature to Configurable Workflow (the ability to delete a workflowitem while it's in workflow) and XMLUI. Since this feature doesn't exist in DSpace 7.0, adding it into 6.x this late is potentially problematic unless it's also added to 7.x.

Therefore, I'd like to ask that you consider adding this into 7.x instead of 6.x. In the 7.0 platform, it is possible for Administrators in the system to delete any item in Workflow (which would solve the DS-3926 ticket in a different manner). But, I don't believe it's possible yet for reviewers to delete items currently in workflow.

@tdonohue tdonohue removed this from the 6.4 milestone Sep 3, 2021
@tdonohue tdonohue closed this Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: workflow Related to approval workflow or configurable workflow improvement interface: XMLUI (obsolete) XMLUI in DSpace versions 1.x through 6.x. Removed in 7.x needs discussion Ticket or PR needs discussion before it can be moved forward. new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants