Packages project and group API will return processing NuGet packages
Summary
The Packages API will return NuGet packages that are currently being processed. These packages are only in this state temporarily and therefore should not be visible via the API.
Steps to reproduce
- Create and upload a NuGet package following the documentation.
- After uploading the package, use the API to request a list of packages.
You should see a NuGet.Temporary.Package
in the returned results (as long as you invoked the request quick enough for it to still be processing).
What is the current bug behavior?
Temporary NuGet packages are displayed in the results from the API request.
What is the expected correct behavior?
You should not see NuGet packages until they have been fully processed.
Relevant logs and/or screenshots
Result from the API | Result as displayed in the UI |
---|---|
![]() |
![]() |
Output of checks
This bug happens on GitLab.com
Possible fixes
- Add
.processed
topackages_finder.rb
- Add
.processed
togroup_packages_finder.rb
- Add new tests to confirm these work
- Possibly change the
details
andfiles
API requests to return404
for temporary packages
Edited by Nick Kipling