-
Notifications
You must be signed in to change notification settings - Fork 969
feat: install atlas in edx_django_service
#6967
Conversation
f7c87f2
to
0effe51
Compare
Thanks for the pull request, @OmarIthawi! 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. |
77f526c
to
3d3e86d
Compare
@brian-smith-tcril now this is tested and I think it's worth merging unless we need additional reviewers' 👍🏼 |
I think we should wait until we implement openedx/openedx-atlas#34 and use pip here |
edx_django_service
@brian-smith-tcril I've updated it to install from npm with detailed testing steps. |
3d3e86d
to
584cda8
Compare
Have you tested running atlas after running one of the makefile shell commands? If so, could we simplify the testing instructions to use |
@brian-smith-tcril I've done the testing and it works with devstack's Please note that LMS isn't included in this build because it doesn't use the LMS
|
584cda8
to
3de18af
Compare
@@ -164,6 +164,19 @@ | |||
- install:system-requirements | |||
when: edx_django_service_npm_version is defined and not edx_django_service_enable_experimental_docker_shim | |||
|
|||
|
|||
- name: install Open edX Atlas translation tool |
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.
Would it be possible to do this as a part of "install production requirements" or "install extra requirements" instead? It seems that's likely the more common pattern.
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.
@brian-smith-tcril So we have two options:
- Go to each service like credentials, ecommerce and others and add
openedx-atlas
to itsbase.in
requirements file, or - Add the requirement in
configuration
(this PR)
I realize now that this is a questionable approach to add it here, but I'm open to hear from you and other reviewers.
I'm realizing we should close this pull request and install atlas in individual repos instead.
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.
Go to each service like credentials, ecommerce and others and add openedx-atlas to its base.in requirements file
I think I like this idea best, but I'm very open to any other thoughts/opinions on the matter.
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! I've became hesitant after completing this PR, so I close it and move on adding atlas to each repo individually.
It'll take more time to add to each individual service, but honestly it's the least surprising place to specify a requirement.
I'll close this PR and start working on the individual repos.
Download the openedx-atlas executable for all edx_django_service to be used in `make pull_translations` This installs `atlas` on all Ansible build targets such as Native Installation and Devstack. This contribution is part of the [FC-0012 project](https://openedx.atlassian.net/l/cp/XGS0iCcQ) which is sparked by the [Translation Infrastructure update OEP-58](https://open-edx-proposals.readthedocs.io/en/latest/architectural-decisions/oep-0058-arch-translations-management.html#specification).
3de18af
to
fcfdc5d
Compare
@OmarIthawi Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
Download the openedx-atlas executable for all edx_django_service to be used in
make pull_translations
This installs
atlas
on all Ansible build targets such as Native Installation and Devstack.Once merged it will make the
atlas
CLI executable available on all edx_django_service Dockerfiles and native installation such as LMS, Studio, Discovery and others. It will make the following command possible:atlas pull
which replacestransifex pull
as part of the Translation Infrastructure update OEP-58 project.Testing
atlas pull
Testing instructions:
To reset your local image:
Test results on my machine
build, check and pull logs
Build credentials image:Test the help command:
Check the version and pip status:
Test the pull command:
Configuration Pull Request
Make sure that the following steps are done before merging:
References
This contribution is part of the FC-0012 project which is sparked by the Translation Infrastructure update OEP-58.
Up-to-date project overview and details are available in the Approach Memo and Technical Discovery: Translations Infrastructure Implementation document.
Join the conversation on Open edX Slack #translations-project-fc-0012.
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: