-
Notifications
You must be signed in to change notification settings - Fork 253
feat: add atlas pull support - FC-0012 #4051
feat: add atlas pull support - FC-0012 #4051
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. |
40d12bc
to
1428ebd
Compare
bce186c
to
d2783e7
Compare
please review @OmarIthawi , @brian-smith-tcril |
@shadinaif looks like the CI failed |
91a68c9
to
5dfa5ed
Compare
Fixed. Please run tests again @OmarIthawi , @brian-smith-tcril |
@colinbrash you are listed as "review required from" on the spreadsheet for this repo. I'm hoping to get this merged soon, thanks! |
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.
@shadinaif I've tested it locally and it worked except for the compilemssage step
Do you mind checking the error bellow?
$ docker build -t temp-ecommerce .
$ docker run -it docker.io/library/temp-ecommerce bash
# atlas --version
v0.5.0
# make OPENEDX_ATLAS_PULL=yes pull_translations
Error:
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/core/management/__init__.py", line 363, in execute
settings.INSTALLED_APPS
File "/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/edx/app/ecommerce/venvs/ecommerce/lib/python3.8/site-packages/django/conf/__init__.py", line 170, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/edx/app/ecommerce/ecommerce/ecommerce/settings/devstack.py", line 6, in <module>
from ecommerce.settings.production import *
File "/edx/app/ecommerce/ecommerce/ecommerce/settings/production.py", line 60, in <module>
with codecs.open(CONFIG_FILE, encoding='utf-8') as f:
File "/usr/lib/python3.8/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/edx/etc/ecommerce.yml'
make: *** [Makefile:134: pull_translations] Error 1
Thank you for the tests 😃 @OmarIthawi It's running fine after copying the file from |
I'll test again and let you know. |
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.
It works on devstack. Thanks @shadinaif!!
5dfa5ed
to
7e34de8
Compare
Hi @brian-smith-tcril , I've rebased on |
Refs: FC-0012 OEP-58
7e34de8
to
85b3fab
Compare
rebased again |
e5b4f29
into
openedx-unsupported:master
@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. |
feat: resloved reserved keywords conflict feat: add data mmigration to make basket_lineattribute value json compatible docs: updated readme for 2u/release contributions (#3927) docs: add decision record for master branch split feat: add atlas pull support (#4051) Refs: FC-0012 OEP-58 feat: added refund functionality
Add atlas pull support. (atlas pull) will be performed only if
OPENEDX_ATLAS_PULL
environment variable is setmake extract_translation
is still running fine with latesti18-tools==1.3.0
OPENEDX_ATLAS_PULL=yes make pull_translation
is working fineOPENEDX_ATLAS_PULL=yes make pull_translation
is deleting old translations and pulling the latest translationsReferences
This pull request is part of the FC-0012 project which is sparked by the Translation Infrastructure update OEP-58.
Check the links above for full information about the overall project.
Internalization is being rearchitected in Open edX Python, XBlock, Micro-frontend, and other projects. There are a number of immediately visible changes:
.json
,.po
or.mo
files will be committed into the repos.make extract_translations
in all repositoriesBreaking Changes
One of the primary goals of the project is to avoid breaking changes. If you noticed any suspicious code, please raise your concern. But before that, please know the strategy we're following to avoid breaking changes
For XBlocks:
conf/locale
. Therefore, we are creating a link fromconf/locale
totranslations
so Atlas can find the path without disrupting the current way of having translations locally within the XBlocks