Bulk approve broken from data restoration
Summary
When data from UAT was backed up and restored to the v1.1.0 release, the bulk draft approval stopped working for in-progress drafts.
Steps to reproduce
- Goto UAT instance: https://gfpvan-uat.productcatalog.io
- Alternatively download this uat dataset
- gunzip it:
gunzip pcmt.sql.gz
- load it in with
docker exec -i pcmt_fpm_1 sh -c
exec mysql -uroot -p"root" akeneo_pim' < pcmt.sql` - clear cache with
docker exec -t pcmt_fpm_1 cache:clear --env=prod
- Login with admin/Admin123
- Go to Activity -> Drafts
- Click the bulk checkbox next to two or more in-progress drafts.
- Click the Bulk Approve button at the bottom
What is the current bug behavior?
The user sees a spinning progress wheel on the screen indefinitely. The network inspection shows an http 500 status error on the operation PUT /rest/draft/approval/bulk
.
What is the expected correct behavior?
That the job is launched in the background, the user is given the green popup in the lower-left that the job has started, and later the job completes with the drafts approved.
Relevant logs and/or screenshots
- fpm's prod.log
- uat's pcmt.sql.gz
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Josh Zamor