-
Notifications
You must be signed in to change notification settings - Fork 253
Conversation
cd4b343
to
6ddbaea
Compare
2ac68b3
to
6b4c938
Compare
4a78c78
to
ea08e15
Compare
8654ee0
to
380115d
Compare
380115d
to
1ee62a3
Compare
729fb49
to
cfad331
Compare
515a98e
to
ba7b3d4
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.
Some small suggestions, otherwise looking good.
@@ -40,5 +40,5 @@ def process_view(self, request, view_func, view_args, view_kwargs): # pylint: d | |||
# If the user does not already have an LMS user id, add it | |||
called_from = u'middleware with request path: {request}, referrer: {referrer}'.format( | |||
request=request.get_full_path(), | |||
referrer=request.META.get('HTTP_REFERER')) | |||
referrer=request.headers.get('referer')) |
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.
We can skip this change for now as both are supported with Django 42
@@ -2,9 +2,9 @@ name: CI | |||
|
|||
on: | |||
push: | |||
branches: [master] | |||
branches: ['*'] |
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.
Is this change intentional? If yes, we can instead use only the headers to achieve the same purpose so following will work as well for all branches
on:
push:
pull_request:
@@ -5,7 +5,7 @@ on: | |||
pull_request: | |||
push: | |||
branches: |
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.
Similarly this can also be changed to only following:
on:
push:
@@ -34,7 +34,7 @@ class StripeWebhooksView(APIView): | |||
@csrf_exempt | |||
def post(self, request): | |||
payload = request.body | |||
sig_header = request.META['HTTP_STRIPE_SIGNATURE'] | |||
sig_header = request.headers['stripe-signature'] |
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.
We can skip this change for Django 42 support as well.
sig_header = request.headers['stripe-signature'] | |
sig_header = request.META['HTTP_STRIPE_SIGNATURE'] |
@@ -31,7 +31,7 @@ class Command(BaseCommand): | |||
help = 'Compile and collect assets' | |||
|
|||
# NOTE (CCB): This allows us to compile static assets in Docker containers without database access. | |||
requires_system_checks = False | |||
requires_system_checks = [] |
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.
Is this change intentional?
enterprise_views.EnterpriseCustomerCatalogsViewSet.as_view({'get': 'get'}), | ||
name='enterprise_customer_catalogs' | ||
), | ||
url( | ||
r'^customer_catalogs/(?P<enterprise_catalog_uuid>[^/]+)$', | ||
path( |
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.
path( | |
re_path( |
url( | ||
r'^customer_catalogs/(?P<enterprise_catalog_uuid>[^/]+)$', | ||
path( | ||
'customer_catalogs/<str:enterprise_catalog_uuid>', |
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.
'customer_catalogs/<str:enterprise_catalog_uuid>', | |
r'^customer_catalogs/(?P<enterprise_catalog_uuid>[^/]+)$', |
⛔️ MAIN BRANCH WARNING! 2U EMPLOYEES must make branches against the 2u/main BRANCH
⛔️ DEPRECATION WARNING
This repository is deprecated and in maintainence-only operation while we work on a replacement, please see this announcement for more information.
Although we have stopped integrating new contributions, we always appreciate security disclosures and patches sent to security@edx.org
Anyone internally merging to this repository is expected to release and monitor their changes; if you are not able to do this DO NOT MERGE, please coordinate with someone who can to ensure that the changes are released.
Required Testing
(^ We can remove that manual check once REV-2624 is done and the corresponding e2e test runs again)
Description
Describe what this pull request changes, and why these changes were made. How will these changes affect other people, installations of edx, etc.?
Please include links to any relevant ADRs, design artifacts, and decision documents. Make sure to document the rationale behind significant changes in the repo, per OEP-19, and can be
linked here.
Useful information to include:
Supporting information
Link to other information about the change, such as Jira issues, GitHub issues, or Discourse discussions.
Be sure to check they are publicly readable, or if not, repeat the information here.
Testing instructions
Please provide detailed step-by-step instructions for testing this change; how did YOU test this change?
Other information
Include anything else that will help reviewers and consumers understand the change.