[FOLIO-2904] write loan cleanup script for bugfest Created: 08/Dec/20 Updated: 25/Jan/21 Resolved: 07/Jan/21 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | TBD |
| Reporter: | Zak Burke | Assignee: | Zak Burke |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue links: |
|
||||||||
| Sprint: | Prokopovych - Sprint 105 | ||||||||
| Story Points: | 5 | ||||||||
| Development Team: | Prokopovych | ||||||||
| Description |
|
Loan data in bugfest needs to be purged in order for the system to continue to be operational. Write a NodeJS script that performs the following operations:
It must take the following parameters in order to be configurable so it can be used to purge data in any environment:
Interested parties: Anton Emelianov, Holly Mistlebauer |
| Comments |
| Comment by Zak Burke [ 07/Jan/21 ] |
|
Holly Mistlebauer, Anton Emelianov, the script is complete but cannot delete closed fees/fines due to
How would you like me to proceed? Should I run this script now, should somebody else (who?), should we wait until
|
| Comment by Zak Burke [ 07/Jan/21 ] |
|
Actually, now that I think about this,
FYI, there is no harm in running the script multiple times, so we could run it now and it'll clean up everything it can until it dies during the last step. And if we update the module later, or change the permissions for the user the script runs as, it'll clean up everything (if new loans, requests, etc., have been created) and then clean up all the closed accounts too. Anyway, PR is merged, so I'm closing this as done. |
| Comment by Holly Mistlebauer [ 19/Jan/21 ] |
|
Zak Burke: I have asked Anton about the permission issue, but he needed to check with someone else. |
| Comment by Anton Emelianov (Inactive) [ 22/Jan/21 ] |
|
Zak Burke and Holly Mistlebauer I asked BugFest devops to help. They will create a copy of Honeysuckle environment and we should be able to tests scripts there. I'll let you know when it is ready for test execution and data verification. |
| Comment by Zak Burke [ 22/Jan/21 ] |
|
Anton Emelianov: possibly less effort than copying honeysuckle: attached is the script (mkitem This would let us create a bunch of loans in, say, folio-testing-core and folks can test there. |
| Comment by Holly Mistlebauer [ 25/Jan/21 ] |
|
Anton Emelianov: I am assuming you want to copy Honeysuckle and have us test there first so that we don't make a mess of the real data. That makes sense to me. |
| Comment by Anton Emelianov (Inactive) [ 25/Jan/21 ] |
|
my plan exactly |