API - Some packages are not returned if `semverlevel=2.0.0`, but are returned if `semverlevel=1.0.0`

Aperta
#268 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell
Ambito
api

Direzione di ricerca

Start at the PowerShell Gallery API handling for FindPackagesById() and trace how the semVerLevel parameter interacts with the IsLatestVersion and IsPrerelease filters. Reproduce the reported queries for PoshRSJob and PolicyFileEditor, comparing semVerLevel=1.0.0 and 2.0.0. Done means the filtered query returns the expected package results at both levels.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Steps to reproduce

Found two modules that the PowerShell Gallery API won't return if semverlevel=2.0.0, but does return if semverlevel=1.0.0.

  • PoshRSJob
  • PolicyFileEditor

Query that works:

Query that doesn't:

Observation: If you don't filter IsLatestVersion and not IsPrerelease, semverlevel=2.0.0 seems to work just fine:

Also if you only filter IsLatestVersion (but this returns preview versions if that's the newest one available. Which might be another issue, shouldn't only IsAbsoluteLatestVersion trigger that?):

Expected behavior
SemVerLevel shouldn't affect whether the package was found.
Actual behavior
SemVerLevel affects whether the package was found.
Error details

No response

Environment data
Not relevant, API.
Version

Not relevant, API.

Visuals

No response

Lingua principale
PowerShell
Stelle
289
Fork
83
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PowerShellGallery

Tutte le issue di PowerShell/PowerShellGallery

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.