Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to increase total count on most progress bars, fixes incorrect output in load stage #2100

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

sh-rp
Copy link
Collaborator

@sh-rp sh-rp commented Nov 27, 2024

Description

Adds support for increasing total on progress bars.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 1f5787e
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/674708b11afb81000846ffe3

@@ -333,19 +383,28 @@ def update(
bar = alive_bar(total=total, title=desc, **self.alive_kwargs)
self._bars_contexts[key] = bar
bar = self._bars[key] = bar.__enter__()
self._bars_counts[key] = 0
else:
# TODO: implement once total change is supported
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alive bars don't seem to support updating the total, you can create a new one and remember the old settings, but then a new bar appears in the ui, and the old half files one stays..

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alive is just for fun. so OK :)

Copy link
Collaborator

@rudolfix rudolfix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -333,19 +383,28 @@ def update(
bar = alive_bar(total=total, title=desc, **self.alive_kwargs)
self._bars_contexts[key] = bar
bar = self._bars[key] = bar.__enter__()
self._bars_counts[key] = 0
else:
# TODO: implement once total change is supported
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alive is just for fun. so OK :)

@sh-rp sh-rp marked this pull request as ready for review November 28, 2024 08:47
@sh-rp sh-rp merged commit da87edf into devel Nov 28, 2024
58 of 59 checks passed
@rudolfix rudolfix deleted the fix/2064-fix-progress-bars branch December 19, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants