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

WIP - Course copy changes #412

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

WIP - Course copy changes #412

wants to merge 6 commits into from

Conversation

mpetrowi
Copy link
Contributor

This is a work in progress of some changes to support course copy

mpetrowi and others added 6 commits December 28, 2020 14:17
- Move lti_launches to global schema
- Add lti_contexts and lti_platform_instances tables
For LTI 1.2 launches, we won't have a deployment_id, so add a unique
index by context_id with deployment_id null.
@@ -189,6 +189,10 @@ def set_lti_launch_values
@is_lti_launch = true
@canvas_url = current_application_instance.site.url
@app_name = current_application_instance.application.client_application_name
context_id = params[:context_id]
if current_user&.can_author?(context_id, current_application_instance)
@can_author = true
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like it may be AA specific that accidentally got merged in upstream? I can see the method exists on the user as well, which is kinda weird.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here it means the lti roles are teacher or admin, which I'm using to determine when the user can resolve a launch issue. There might be a better way to do this.

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