Remove unused issuable json endpoints
What does this MR do and why?
Removes the issues and MR JSON endpoints.
Also removes setting of instance variables that we do not use anywhere
I checked the logs and there are only 49 hits in the last 7 days: https://log.gprd.gitlab.net/app/r/s/uaou8. I think these are just users manually appending .json to the URL, with some of these made by me for testing.
It is very unlikely that anyone would depend on this endpoint because it returns data in a weird format. It's actually rendering the HTML view then returning it as JSON string.
How to set up and validate locally
- Visit a project's issue / MR list and append
.json
to the URL - It should now return 404
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Heinrich Lee Yu