nebari-dev / jupyterlab-gallery

A JupyterLab gallery for presenting and downloading examples
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

[ENH] - Better progress bar when pulling new changes from a repository #21

Open krassowski opened 2 months ago

krassowski commented 2 months ago

Feature description

Currently we have a very accurate progress bar for cloning a repository; however, when pulling the new changes the progress bar is just a mediocre heuristic. We should investigate how to make it better; to make the changes self-contained we may want to upstream some API extension to GitPuller (so that we can override a single relevant method).

Value and/or benefit

Better UX when syncing repositories.

Anything else?

For reference, for cloning we are using git-python's parser:

https://github.com/nebari-dev/jupyterlab-gallery/blob/cab9b5d196ca8371ecc33026254033ecd5c34eca/jupyterlab_gallery/gitpuller.py#L29-L61

for pulling, there is more steps because nbgitpuller may need to rebase user's changes so it is not as straightforward.