-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add fuzzy field in statistics info. #6
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
Conversation
|
Hi @yyc12345. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's GuideThis pull request adds a 'fuzzy' field to MessageStats to accurately track fuzzy entries in PO files, updates statistics computation and table output to reflect the new and reclassified fields, and enhances documentation for MessageStats and its fields. The implementation involves changes to the MessageStats struct, its creation logic for TS and PO files, new methods for statistics computation, and updates to the statistics display in the CLI output. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We encountered an error and are unable to review this PR. We have been notified and are working to fix it.
You can try again by commenting this pull request with @sourcery-ai review, or contact us for help.
- add fuzzy field in MessageStats to handle PO file fuzzy entries properly. - add Rust document for MessageStats and its fields to tell the meaning of these fields for developer. - update MessageStats creation function for Ts and Po respectively. - add 3 functions in MessageStats to compute values showen in `statistics.rs`. * finished field are shown as "translated" * obsolete and vanished fields are shown as "vanished". * unfinished and fuzzy fields are shown as "unfinished". - update table columns and showcase in sub command statistics for hereinabove changes.
|
@sourcery-ai review |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, yyc12345 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @yyc12345 - I've reviewed your changes - here's some feedback:
- Consider renaming the 'fuzzy' field to clarify its purpose, as it may not be immediately clear to all users that it refers specifically to PO file fuzzy entries.
- Ensure that the updated statistics table output remains consistent with any external tools or scripts that may parse its columns, as the column order and names have changed.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| } | ||
|
|
||
| impl MessageStats { | ||
| pub fn new() -> Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Redundant Default and new constructors for MessageStats.
Since Default and new both zero-initialize all fields, use just one to avoid confusion and reduce maintenance.
statistics.rs.Summary by Sourcery
Introduce support for fuzzy translation entries in statistics, update reporting logic and documentation, and adjust tests accordingly.
New Features:
Enhancements:
Tests: