API - Get with `$select=Owners` returns "an error has occurred"

Aperta
#267 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 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 by reproducing the issue with the provided OData URL that selects Id, Version, and Owners, then compare it with the URL selecting only Id and Version. The issue does not identify the API implementation files or tests, so trace the Packages endpoint and its handling of $select and Owners. Done means the request returns Owners without an error; the issue has had no comment for 839 days.

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

To reduce load on PSGallery and increase speed I'd like to use $select to only request the properties I need.

This works for properties like Id, Version and Authors. But not for Owners for some reason.

URL with all properties:

URL with Id and Version (works):

URL with Id, Version and Owners (does not work):

Expected behavior
All properties should be possible to $select
Actual behavior
$select=Owners does not work
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.