feat(FastAPI): add /pkgbase/{name}/merge (post)
With this implementation, we:
- Create a PackageRequest if none exist.
- Migrate comments, notifications and votes from PackageBaseName to MergeBaseName.
- Close all related PackageRequests as Accepted.
- Send notifications about the PackageRequests we made and updated.
Additionally:
-
via
is not required in FastAPI. We deduce the involved requests via their PackageBaseName / MergeBaseName columns and set them to Accepted when merged. - When erroneous input is given, the error is now presented on the merge page instead of sending the user to the pkgbase page.
We also log a message out about who merged the packages.
Edited by Kevin Morris