-
Notifications
You must be signed in to change notification settings - Fork 452
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
Ability to bulk-delete old incomplete submissions #6528
Comments
Thanks @pmangahis. Can you say a little bit more about the use-case and the steps that editors are taking? I assume that editors/managers are identifying old incomplete submissions in some way before deciding what to remove. How do they determine which ones to remove? Why do they feel they need to remove them? |
In one case the journal was doing a manual import from BePress using the QuickSubmit plugin. I think when there is an error during the submission process using QuickSubmit it still creates a record. They want to be able to remove duplicates. In the other journal, it seems that the journal has multiple pages (over 10) of incomplete submissions from what I can tell were the authors created that the JM would like to remove. |
Thanks! I think the QuickSubmit issue is probably something that we should address at its source. With the incomplete submissions, do you know if these were done by a single malicious user or spam bot? Or had they just accumulated over many years? |
I think it might be both cases for the other journal. |
We also have this issue on our installations. Journals have previously let us know that there are a lot of abandoned submissions that they need to manually delete. It's an issue on our OPS installation as well, considering that out of our 357 currently active submissions, 239 have not been touched on the last six months. |
Just to add 0.02 to this from the systems side. We've been able to clean out incomplete submissions by using the following logic:
But this does seem to work for us. We've a few clients that are very old and have a long history with OJS 2 and now have upwards of a thousand incomplete submissions accumulated over the years, so it's nice to be able to clean these out. Jason |
In addition to Jason's script suggestion above, for a use case with a smaller number of incomplete submissions - I wonder if it would make sense to bring back the old submission "Delete" button for admin accounts only (before a submission is declined)? I understand the reason for removing it for JE/JM accounts, but having an admin delete submissions quickly would be very helpful. |
Hello, Here are the designs for the the issue! The considerations taken for the designs were:
Also I do like @librariam 's suggestion of only including this option for the admin only On selecting a checkbox, the delete button becomes enabled You can select and deselect all after a checkbox has been selected This needs to be an entirely intentional action and hence an extra layer of confirmation is necessary 3.5 A confirmation message similar to 3.4 needs to be shown here as well. |
Thanks @Devika008 |
Ready for review. PRspkp-lib (main) UI library (main) submodule updates |
@taslangraham I think you're tagging the wrong Erik, it should be @ewhanson 😁 |
ha! you're right. thanks |
@taslangraham Hi Taslan, Thing is that for version 3.5 (main branch) - the submission list panel is being replaced with new UI, which is not using ListPanel anymore (#7495). At this addition can be considered once the new UI is more settled. Therefore the changes you introduced to submission list panel would work only for version 3.4 - but at this point we are not adding new functionality to 3.4 as we need to focus on finishing things off for 3.5. Sorry about that, this is a mistake on our part. |
* pkp/pkp-lib#6528 Bulk delete - Adjust permissions and the UI for improved accessibility * pkp/pkp-lib#6528 Hide disabled checkbox for non sr users * pkp/pkp-lib#6528 Improve accessibility to not announce the button icon * pkp/pkp-lib#6528 Disable the delete action instead of hiding it when no incomplete submission is listed * pkp/pkp-lib#6528 rename locale keys
@taslangraham Thanks, ui-library also merged. @Tribunal33 Would you mind do some QAing on this one? To summarise what we have intended to implement, feature is ability to delete incomplete submissions:
|
Taking a look now @jardakotesovec and @taslangraham and will write up some test cases for it. |
This looks good. @taslangraham can we add some scope creep? I am not seeing a convenient way to cancel the process once the "Delete Incomplete Submissions" button has been engaged. I have a solution. Treat it like a filter with incomplete stage as the option and have the filter be deletable like other filters? This would solve two problems. First one is for those journals with pages and pages of submissions with intersparsed incompletes submissions it would bring them all to the top of the list. Second, there is already a clear filter button that can be applied to remove the filter. Here is a mockup of what I'm talking about. Let me know if there are any questions. |
@Tribunal33 Or 'Cancel' button can show up next to Delete Incomplete Submissions, which was my suggestion. But I think its minor concern as its infrequent action - thats probably why @Devika008 kept it simple. But I will let her respond to it. |
…re Actions) buttons
After talking with @Devika008 and @taslangraham we will go with an additional Cancel button beside the Delete Incomplete Submissions button to reset this action. We will ignore the filtering idea as that breaks a PKP rule for filters. I believe Devika has upgrade the Figma Files to reflect this change : |
@Tribunal33 Oki, updated on main. Feel free to close this one if you don't see any other issue here. |
@taslangraham and @jardakotesovec I am sorry to do this to ya but there is one more issue. If you have incomplete submissions on multiple pages that have been selected and click on the delete incomplete submissions button it only deletes from the page that you initialially selected. To test this:
Expected outcome: both incomplete submissions should have been removed from the filter list |
Right.. from quick check the issue is not pagination. But the fact that our useFetch (which is using ofetch on background) is encoding array query param as So I think the behaviour is that it just deletes the last item on that list.. Will address it after holidays.. no need for additional ticket. |
Seems that they intend to address it in future versions by leveraging URLSearchParams unjs/ufo#185 @taslangraham Could you please try to find some workaround until this is resolved upstream? Ideally to address it somewhere within useFetch.js composable. |
@jardakotesovec I'll take a look |
@jardakotesovec I added a PR with the workaround here - pkp/ui-library#486. Please take a look Approach I took was to rename the array query params to include |
hmm, tests are failing. Looking into it |
fixed |
@taslangraham That looks great, thank you! Feel free to merge it. And than we can ping @Tribunal33 if he can still find something :-). |
Thanks for the review @jardakotesovec. Will update the submodules then @Tribunal33 can take a run at it again |
Submodules updated. @Tribunal33 you can you can do another round of tests now |
@taslangraham and @jardakotesovec this passes QA. To test the remaining bug I needed to create enough incomplete submissions to see them on multiple pages in the submission list views.
|
Describe the problem you would like to solve
We've received 2 requests from hosted clients to have a multi-select option to remove incomplete submissions.
Describe the solution you'd like
Currently, JMs need to delete incomplete submissions from authors and QuickSubmit plugin.
Who is asking for this feature?
Journal Editors, Journal Manager
The text was updated successfully, but these errors were encountered: