-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: restore PO-Revision-Date but with fixed value #140
feat: restore PO-Revision-Date but with fixed value #140
Conversation
Thanks for the pull request, @shadinaif! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
1fce5ae
to
2985a2c
Compare
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #140 +/- ##
==========================================
+ Coverage 99.77% 99.78% +0.01%
==========================================
Files 10 11 +1
Lines 439 461 +22
Branches 31 33 +2
==========================================
+ Hits 438 460 +22
Partials 1 1
☔ View full report in Codecov by Sentry. |
Ready for review @OmarIthawi @brian-smith-tcril |
32c0738
to
3e37cb3
Compare
Thanks @shadinaif!! Some tests are failing. Would you mind taking a look? Also I think it makes sense to have an integration test case which runs the following two commands on a sample repo test folder:
I think this will ensure that this error will not happen again, what do you think? |
3eb3afb
to
0acac84
Compare
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.
Thanks @shadinaif. Few more minor notes and it should be ready.
0acac84
to
36d6fda
Compare
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.
Thanks a lot @shadinaif! I've tested it with the following:
$ git clone [email protected]:Zeit-Labs/i18n-tools.git --branch=shadinaif/restore-revision-date
$ cd credentials
$ make requirements # credentials requirements
$ pip install -e ../i18n-tools
$ make extract_translations
Output seems to be working okay!
$ make validate_translations
.....
INFO:i18n.validate:No problems found in /home/omar/work/openedx/credentials/credentials/conf/locale/es_AR/LC_MESSAGES/django.po
INFO:i18n.execute:msgfmt -c -o /dev/null es_AR/LC_MESSAGES/djangojs.po
INFO:i18n.validate:No problems found in /home/omar/work/openedx/credentials/credentials/conf/locale/es_AR/LC_MESSAGES/djangojs.po
omar@antilop:credentials $
...
External packages are forcing validation on PO-Revision-Date. Therefore, we are restoring both POT-Creation-Date and PO-Revision-Date but setting a fixed value for them to avoid having a lot of false (git diff) lines. Note: (2023-06-13 is Palm release date)
36d6fda
to
f1ba793
Compare
@OmarIthawi any thing left in this PR ? waiting for new release to unblock credentials. |
Thanks for checking @awais786. We need someone to test it on the credentials repo, I couldn't get to this in a timely manner. Justin was going to test it, but please feel free to do so. If it's good, I can merge and cut a new release. |
@OmarIthawi openedx/credentials#2221 plz check this. Seems trans are working, |
now credentials failing with black issue. I have fixed black path in credential so all set good to go. black --check .
|
I wasn't able to get to this yesterday. I tried it out this morning and I was able to validate translations locally without any further issues. Thanks for the work on this! |
@OmarIthawi plz release new version. |
@awais786 That's interesting... Black shouldn't be trying to reformat the files of an external library. 🤔 Worst case maybe we just need to update Either way, that problem is definitely on the Credentials side and I'm sure we can figure out a way to work around it. |
I have already fixed openedx/credentials#2221 |
@shadinaif 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
@awais786 thanks for the review and the release cut. I was about to merge and cut the release, but you've beat me to it. Thanks again for the thorough report! It's making this tool much better :) |
@OmarIthawi Thanks for the quick fix. |
External packages are forcing validation on
PO-Revision-Date
. Therefore, we are restoring bothPOT-Creation-Date
andPO-Revision-Date
but setting a fixed value for them to avoid having a lot of false (git diff) lines. Note: (2023-06-13 is Palm release date)This is a fix for a defect reported in
credentials
repository: #131Reverts part of the work done here #129
This contribution is part of the FC-0012 project which is sparked by the Translation Infrastructure update OEP-58.