Please note --- this is for the 8.x-4.x branch

After the move to Gitlab, we needed to switch how we loaded project data. You can see this in 7.x-1.x here:

https://git.drupalcode.org/project/simplytest/blob/7.x-1.x/modules/simpl...

and

https://git.drupalcode.org/project/simplytest/blob/7.x-1.x/modules/simpl...

8.x-4.x has a new content entity for Projects: https://git.drupalcode.org/project/simplytest/blob/8.x-4.x/modules/simpl...

Most notably, this has a "versions" field. This should contain both the heads and tags from the resultant `git ls-remote` to the associating drupal.org project.

8.x-4.x also has a project fetcher to populate the version. This fetcher is using the old method and needs updated to use the `git ls-remote` logic. The old logic needs replaced with the new logic.

Once that is complete, there needs to be a new endpoint/controller that passes a version and can return the project's associated version. This will be consumed by the react application and should return JSON.

Ideally, the project versions can be cached for a given time interval (let's say 4 hours). After four hours, any request to the project fetcher for a specific project would reload it's version metadata.

Comments

nerdstein created an issue. See original summary.

sumitmadan’s picture

Version: 8.x-3.x-dev » 8.x-4.x-dev
Assigned: Unassigned » sumitmadan
sumitmadan’s picture

Assigned: sumitmadan » Unassigned
Status: Active » Needs review
StatusFileSize
new14.62 KB

The fetcher service has been updated and two endpoints have been created which can be used for autocomplete widgets or react application.

sumitmadan’s picture

Status: Needs review » Needs work
sumitmadan’s picture

Status: Needs work » Needs review
StatusFileSize
new15.06 KB
new2.12 KB
nerdstein’s picture

Status: Needs review » Reviewed & tested by the community

The patch looks awesome -- merging.

  • nerdstein committed c0c0a14 on 8.x-4.x authored by sumitmadan
    Issue #3063298 by sumitmadan, nerdstein: Update fetcher and make...
nerdstein’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.