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

Aberta
#267 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
powershell
Domínio
api

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
PowerShell
Estrelas
289
Forks
83
Merge médio
1min
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PowerShell/PowerShellGallery

Todas as issues de PowerShell/PowerShellGallery

Issues semelhantes

Mais issues de Backend & API Design

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.