Skip to content
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

TLT-4135 (feat) add setting to exclude views #49

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

elliottyates
Copy link
Contributor

This should help clean up logs for our apps using django-auth-lti:

  • paths matching entries in the new Django setting will not be processed as part of LTI sessions
  • update to tox to support recent versions of django and python
  • github actions workflow to run tests against different versions of django and python

To stop logging "Could not find LTI launch for resource_link_id None" for /w/ping, for example, you can add this to your Django settings:

DJANGO_AUTH_LTI_EXCLUDE_PATHS = [
    '/w/ping/',
]

For more info please see the README.

- paths matching entries in the new Django setting will not be processed as part of LTI sessions
- update to tox to support recent versions of django and python
- github actions workflow to run tests against different versions of django and python
Copy link

@PatrickMTonne PatrickMTonne left a comment

Choose a reason for hiding this comment

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

👍 Looks good!

LICENSE Outdated
@@ -1,4 +1,4 @@
Copyright 2016 The President and Fellows of Harvard College
Copyright 2021 The President and Fellows of Harvard College

Choose a reason for hiding this comment

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

Just curious: should this be 2022?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, good point. TBH I'm not sure when, exactly, we need to update the copyright, and some libraries/resources I've seen don't even include a date/year.

Seems we've had discussions of this in the past and don't always bump it -- there's some set of criteria that are used, that I'm not aware of/can't remember. Maybe @cmurtaugh has some insight?

I'll update to 2022 for now.

# importing here will ensure that django.urls.reverse is patched
# for other libraries and parts of django, e.g. `url` template tag,
# when the middleware is loaded
import django_auth_lti.patch_reverse

Choose a reason for hiding this comment

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

Thanks for highlighting this. I wouldn't have given a second thought to the change in import order had this not been there.

@elliottyates elliottyates merged commit 0b10470 into master Apr 13, 2022
@elliottyates elliottyates deleted the elliottyates/TLT-4135/exclude_views branch April 13, 2022 14:49
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.

2 participants