-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: prioritize current site setting for org value #189
fix: prioritize current site setting for org value #189
Conversation
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.
👍
- I tested this: Verified that the changes here are same as in the internal PR refactor: prioritize current site setting for org value open-craft/eox-tenant#3
- I read through the code
- I checked for accessibility issues
- Includes documentation
- I made sure any change in configuration variables is reflected in the corresponding client's
configuration-secure
repository.
@navinkarkera Could you please add our internal ticket number here too as private ref, for easy reference. |
Hello @navinkarkera and @kaustavb12, I hope you are doing well. We thank you for contributing to this project and apologize for the delay in reviewing it due to some urgent matters. The solution seems logical. However, before moving forward, I would like to test it to gain a more comprehensive understanding of the expected behavior and the match with all the use cases. I followed the steps in the referenced PR open-craft#3, but it didn't work for me. In order to be more specific, here are the steps I followed:
This is what I receive when I try to see the link when These are my tenant configs with the settings you told in open-craft#3 and there are shown the domains I use too To test this PR I mounted a new environment in Perhaps, if you have tested this PR using Tutor, could you please guide us a little through the process you followed? I will be closely monitoring your response to continue with my review or provide any more information if needed. Thank you so much ✨ |
96a5abd
to
0b43889
Compare
Hello @bra-i-am, I just rebased the branch with master and followed the steps mentioned in open-craft#3 to test in master devstack. It worked for me and I did not do anything special. Please make sure that you are using |
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.
@navinkarkera, thank you so much for your answer. I could not reproduce the behavior before because of some config mistakes I made with my routes, but I finally got to solve them.
The change introduced in this PR makes all the sense to me and according to some tests I ran, there are no conflicts with other test cases. I'll announce this to my teammates to continue with the merge.
Thanks a lot for your contribution ✨
Evidence
=====================================
FYI
- I ran the PR using Tutor in dev mode changing the variable
CMS_HOST
same asLMS_HOST
in theconfig.yml
file (e.g.CMS_HOST: local.overhang.io
) - I created the routes
tenant-a.local.overhang.io
andtenant-b.local.overhang.io
- I created the Tenant Configs according to the shown here but I changed the URL to the one of the route that is being configured. For example the
lms_configs
for the Tenant A:
{
"EDNX_USE_SIGNAL": true,
"LMS_BASE": "tenant-a.local.overhang.io:8000",
"LMS_ROOT_URL": "http://tenant-a.local.overhang.io:8000",
"SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT": "http://tenant-a.local.overhang.io:8000",
"course_org_filter": [
"edX"
]
}
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.
Looks good to me. I will change the commit to fix because we are changing the previous behavior.
@navinkarkera, can you sign your commit, please? |
0b43889
to
2e5f574
Compare
If multiple tenant configs are enabled for a given org, fetching value from site config for the organization should return current site config value if the org is included in the org_filter.
2e5f574
to
baef168
Compare
@MaferMazu Done. |
Description
If multiple tenant configs are enabled for a given org, fetching value from site config for the organization should return current site config value if the org is included in the org_filter.
Private-ref
: BB-7927Testing instructions
See open-craft#3
Checklist for Merge