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

diff -o json-lines: Add feature count estimate #543

Merged
merged 7 commits into from
Jan 25, 2022
Merged

Conversation

craigds
Copy link
Member

@craigds craigds commented Jan 16, 2022

Description

With new --add-feature-count-estimate=<accuracy> option, adds a line
to the output stating the number of features expected to be in
the diff. This should be useful for showing a progress bar when the diff is
large.

For small diffs it may never appear, as the estimate can easily take
longer to calculate than the whole diff anyway.

Related links:

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

kart/json_diff_writers.py Outdated Show resolved Hide resolved
Copy link

@UberMouse UberMouse left a comment

Choose a reason for hiding this comment

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

Assuming it works as advertised (the feature count message appears in stream) this looks like it will give me the info I need 👍

@craigds
Copy link
Member Author

craigds commented Jan 25, 2022

needs adding to the changelog but I see 0.11.0 RCs have been minted so perhaps we can just hold off merging this until 0.11.0 is released and then add it in after that

With new `--add-feature-count-estimate=<accuracy>` option, adds a line
to the output stating the number of features expected to be in
the diff. This should be useful for showing a progress bar when the diff is
large.

For small diffs it may never appear, as the estimate can easily take
longer to calculate than the whole diff anyway.
Remove 'daemon' thread, as it can apparently be dangerous
@craigds craigds merged commit b92b71a into master Jan 25, 2022
@craigds craigds deleted the jsonl-diff-estimate branch January 25, 2022 23:19
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