Show ex-app image pull and register/update progress in the UI and the occ command

Aperta
#1,235 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, php
Ambito
backend, cli, frontend

Direzione di ricerca

Start by reading the AppAPIService.php section linked in the issue and the referenced server pull request to understand how the update command and UI progress reporting interact. Then trace the Docker image pull response and the occ command steps; the issue gives app_api issue 1233 and context_chat’s Wipe.php as examples. Done means the UI and CLI both expose useful deployment progress while UI updates continue during the command.

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

Descrizione

deploy docker enhancement
Describe why it is important and where it will be useful

It would be nice in the UI and the occ command to see the progress of the deployment, with image pulls and the other steps.

For the UI updates, this change has also stopped the progress from being updated since before this change, app_api did not wait for the command to finish to move on to other parts to report the progress. Now the request from the frontend/appstore is waiting on the finish of the update command launched by app_api internally to get the status.
https://github.com/nextcloud/app_api/blob/634729d75dbca75a76dada69962e5bf99154a149/lib/Service/AppAPIService.php#L508-L522

Would be nice to maybe early return in this case, or do it some other way so the UI gets progress updates.
Also ref: https://github.com/nextcloud/server/pull/66565

Describe your proposed solution

The json lines streamed in the response of the docker pull request can be used to show the progress in the UI for example: https://github.com/nextcloud/app_api/issues/1233
And also in the CLI, but in the CLI it's also possible to show the current running step so the admin user has more insight in the process. Something like: https://github.com/nextcloud/context_chat/blob/0d526d1690fe162dfccaf0ed37fa8a1b260bb192/lib/Command/Wipe.php#L104-L106
It prints the lines:

Pausing the hand-out of queued files to context_chat_backend...
Checking for background jobs still queueing documents...
Checking for documents context_chat_backend is still indexing...
Removing the crawl jobs, clearing the files indexing queue and the file system events, resetting the indexing statistics...
Deleting the documents of files__default from the vector DB...
Resuming the hand-out of queued files...
Deleted all the indexed documents of files__default and cleared the queues.
Describe alternatives you've considered, if relevant

No response

Additional context

No response

Lingua principale
PHP
Stelle
202
Fork
30
Merge medio
3g 20h
PR unite (30g)
24

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 nextcloud/app_api

Tutte le issue di nextcloud/app_api

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.