Closed (fixed)
Project:
Project Browser
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2022 at 14:19 UTC
Updated:
24 Jun 2022 at 12:14 UTC
Jump to comment: Most recent
Releases endpoint and information is not really used anywhere in the frontend. We should simplify the backend and the plugins as there is a lot of logic that can go into managing and querying this.
It might still be needed for the mock and for generating fixtures, but there is definitely some code that can and should go away.
Releases endpoint is never queried by the front end.
Clean up unused code related to releases.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
chrisfromredfinInstructions for regenerating the fixture can be found in the _hacky_fixture function in the .install file.
Comment #4
fjgarlin commentedComment #6
bnjmnmBecause so much is being removed, I tried to find anywhere there might be issue, but manual tests, running fixture updates and (obviously) automated tests all seem to work fine. I did some grepping to see if anything else could be removed but didn't find anything additional.
I started remembering how this endpoint was used from my week on Project Browser in 2021. It added a ton of additional requests to every Project Browser load. If we start incorporating release data into our queries again hopefully there's a way to minimize the number of additional requests, either via optimizations in the Project Browser module or via the capabilities of the new D.O. endpoint.
Anyway, looks like a good cleanup!
Comment #7
bnjmnmComment #8
chrisfromredfinGood cleanup! Manually tested again just to try and spot regressions. Shipping it!