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

operation logs: improve dump_operation_logs CLI #2154

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

rerowep
Copy link
Contributor

@rerowep rerowep commented Jul 13, 2021

Co-Authored-by: Peter Weber [email protected]

Why are you opening this PR?

  • Which task/US does it implement?
  • Which issue does it fix?

Dependencies

My PR depends on the following rero-ils-ui's PR(s):

  • rero/rero-ils-ui#

How to test?

  • What command should I have to run to test your PR?
  • What should I test through the UI?

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@rerowep rerowep self-assigned this Jul 13, 2021
@github-actions github-actions bot added the f: activity-logs Everything around logging user or system activities label Jul 13, 2021
@iGormilhit iGormilhit changed the title operation logs: improve dump_operation_logs cli operation logs: improve dump_operation_logs CLI Jul 19, 2021
@@ -87,7 +87,7 @@ def dump_operation_logs(outfile_name, year):

index_count = 0
outfile = JsonWriter(outfile_name)
with click.progressbar(search.scan()) as bar:
with click.progressbar(search.scan(), length=search.count()) as bar:

Choose a reason for hiding this comment

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

Could the commit message be more precise? Add the search count to the progress bar or something?

@iGormilhit iGormilhit added this to the v1.4.4 milestone Jul 19, 2021
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message title proposition: operation logs: add progress bar to dump_operation_logs CLI

* Adds length to progress bar for display of remaining time.

Co-Authored-by: Peter Weber <[email protected]>
@rerowep rerowep force-pushed the wep-operationlogs-cli branch from 3464d60 to 35a79bc Compare July 19, 2021 12:49
@rerowep rerowep requested a review from iGormilhit July 19, 2021 12:49
@iGormilhit iGormilhit merged commit da3f319 into rero:dev Jul 19, 2021
@rerowep rerowep deleted the wep-operationlogs-cli branch July 19, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: activity-logs Everything around logging user or system activities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants