Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo JSON Performance Improvements #310

Merged
merged 6 commits into from
Oct 22, 2020
Merged

Repo JSON Performance Improvements #310

merged 6 commits into from
Oct 22, 2020

Conversation

giggsey
Copy link
Contributor

@giggsey giggsey commented Oct 19, 2020

  • Fix Composer v2 package provider 404
  • Cache repo endpoints
  • Add available-packages for Composer v2

Closes #308

> Any requested package which does not exist MUST return a 404 status code, which will indicate to Composer that this package does not exist in your repository. Make sure the 404 response is fast to avoid blocking Composer. Avoid redirects to alternative 404 pages.
It needs to return the last modified date from the providers to use in the HTTP Response.
Also fix minor performance improvement with array_merge
This contains the full list of packages available on the repo. This stops Composer attempting to access the metadata-url for 'public' packages.
The mock wasn't updated to reflect the change in function. However, the tests weren't actually checking the scan was working.
@codecov
Copy link

codecov bot commented Oct 19, 2020

Codecov Report

Merging #310 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #310   +/-   ##
=========================================
  Coverage     99.50%   99.50%           
  Complexity     1838     1838           
=========================================
  Files           295      295           
  Lines          5802     5802           
=========================================
  Hits           5773     5773           
  Misses           29       29           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62d7b9d...ace759e. Read the comment docs.

Copy link
Member

@akondas akondas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@akondas
Copy link
Member

akondas commented Oct 22, 2020

Thanks again @giggsey for your work 🎖️ 🍻.

@akondas akondas merged commit ffe5080 into repman-io:master Oct 22, 2020
@giggsey giggsey deleted the repo-caching branch October 22, 2020 11:50
@akondas
Copy link
Member

akondas commented Oct 22, 2020

I would also like to congratulate you on your commit descriptions. They are first-rate 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add providers to organisation repo
2 participants