Show ex-app image pull and register/update progress in the UI and the occ command
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- PHP
- Stars
- 202
- Forks
- 30
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/app_api
-
bug docker
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
deploy discussion
Difficulty 5/5 Over a week Newbie friendliness 20/100
nextcloud/app_api#1236 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug deploy docker
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 62/100
nextcloud/app_api#1212 · 1 comment ·
Maintainers usually reply within 1 day
All issues in nextcloud/app_api
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
mcallegari/qlcplus-docs#147 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Adyen/adyen-magento2#3453 ·
Maintainers usually reply within 8 days
-
component/media domain/discovery
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
simplesamlphp/simplesamlphp#2695 ·