Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Pull more than 1000 results for box files:versions when using --json

Aperta
#220 3 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@sujaygarlanka ci sta già lavorando.

Dal 15/11/2020.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug dontstale question
  • I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
  • I have checked that the [API documentation][api-docs] doesn't solve my issue.
  • I have searched the [Box Developer Forums][dev-forums] and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
  • I have searched [Issues in this repo][github-repo] and my issue isn't already reported.
Description of the Issue

I'm trying to find out how to deal with a file that has more than 1000 versions when using --json. When running a box files:versions --json command, it only returns 1000 total, even if the file itself has more than that. We have some files with as many as 13000+ versions, and I'd like to figure out how to access them via powershell (mainly so I can delete them).

I don't know if there is a way to offset or paginate the returned array. If this is not possible, is there a way to access properties like foreach ($v in $version) {$v.created_at} without doing the --json | convertfrom-json thing?

image

Steps to Reproduce

$version = box files:versions FILEIDHEREWITHMORETHAN1KVERSIONS --json | ConvertFrom-Json
$version.count always equals 1000 (when --json is not used, it returns the correct amount)

Versions Used

Box CLI: 2.7.0
Operating System: Windows 10

Lingua principale
JavaScript
Stelle
285
Fork
67
Merge medio
5h 27m
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

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 box/boxcli

Tutte le issue di box/boxcli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.