Skip to content

Update Tahoe Juniper (main) with Hawthorn changes from develop - #795

Merged
OmarIthawi merged 33 commits into
mainfrom
appsembler/tahoe/develop
Mar 15, 2021
Merged

Update Tahoe Juniper (main) with Hawthorn changes from develop#795
OmarIthawi merged 33 commits into
mainfrom
appsembler/tahoe/develop

Conversation

@github-actions

Copy link
Copy Markdown

This is an automated pull request from branch appsembler/tahoe/develop (Hawthorn) into main (Juniper).
This is meant for making sure all of our Hawthorn changes gets merge into Juniper otherwise Juniper would stall.
If tests passes merge this pull request.
If there are merge conflicts, it needs to be resolved manually in a seperate pull request.

Return the first instead to keep from failing outside of Tahoe SaaS
when we may have more than one Organization per Site
Use FEATURE setting to enable Honor mode auto-certs
Committing Omar's suggestions
Co-authored-by: Omar Al-Ithawi <i@omardo.com>

Fix settings imports for Tahoe certs signals changes for Honor auto-certs, related tests.

Add related default FEATURE setting in appsembler.settings
…rts-for-honor

Allow auto-generation of certs (e.g., on passing grade) for Honor mode
OmarIthawi and others added 3 commits December 29, 2020 17:28
…-multiple-site-orgs

UNIFICATION: get_current_organization don't assume single Organization


class OrganizationByRequestTestCase(TestCase):
def setUp(self):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bryanlandia Is it intended that two orgs map to one site and one site is not supposed to have any orgs? If so, it would be really helpful to document what the expectations are for these tests, especially given the state of "M:M sites and orgs yes or no conversation and practice. cc @OmarIthawi @melvinsoft

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnbaldwin the original pull request that made this change is #785. We have another related pull request appsembler/edx-organizations#11 . Please add your feedback there.

As for this pull request it'll get whatever there's in appsembler/tahoe/develop let it merged into main.

PyCharm notified me about this despite we never got this in production.
RedirectMiddleware: redirect function variable unshadow
lms organization middleware to make tiers expiration work in lms
bump django-tiers to v0.2.3 for trial expiration fixes
@thraxil
thraxil removed their request for review January 25, 2021 14:07
thraxil and others added 2 commits February 2, 2021 16:25
this seems like an important part of our code to be able to inspect
more easily in production.
add honeycomb tracing and context on registration API
 - added tests
 - added order_by parameter
 - refactored `_get_active_tiers_uuids` to isolate the Tiers import
get_active_sites() to return QuerySet
OmarIthawi and others added 11 commits February 4, 2021 19:25
beeline: fix unhashable type: 'dict'
Use the django_sites_extensions RedirectMiddleware, but
if TAHOE_ENABLE_DOMAIN_REDIRECT_MIDDLEWARE enabled (default ON), then
insert related middleware classes before that standard redirect class.
committing Omar's suggestion

Co-authored-by: Omar Al-Ithawi <i@omardo.com>
…are-to-settings-plugins

Move RedirectMiddleware to appsembler.settings plugin
Rework get_lms_link_from_course_key using get_site_for_course

@OmarIthawi suggestion

Co-authored-by: Omar Al-Ithawi <i@omardo.com>

Fix import issue in get_lms_link_for_course_key
…urse-org

get_lms_link_from_course_key fallback to LMS base if no Site found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants