fix(web): docs admin route 404 + catalog link on wrong apps (BUNYIP-390) #384
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-388-docs-admin-route-and-catalog-link"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bugs (BUNYIP-388 follow-up)
main.rs. Admin -> Applications -> Mokosh Server / Mokosh Web -> Manage documentation hit an unrouted path and rendered the 404 page.app_card, which renders only hosted launch-tile apps (is_hosted = true, e.g. Mokosh), so it appeared on the hosted web app that has no docs and was missing on the OCI/catalog apps that do (Mokosh Server / Web, rendered viadownload_only_card).Fix
main.rs: GET+POST/admin/applications/:id/docs, POST/admin/applications/:id/docs/:doc_id, POST/admin/applications/:id/docs/:doc_id/delete.app_cardtodownload_only_card, so it renders on the pulled/downloaded apps (Mokosh Server / Web) and not the hosted tile.Verified
Build + clippy + fmt green. Two files, +17/-4.