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

Get current enrollment term #493

Open
ljoks opened this issue May 14, 2021 · 1 comment
Open

Get current enrollment term #493

ljoks opened this issue May 14, 2021 · 1 comment

Comments

@ljoks
Copy link
Contributor

ljoks commented May 14, 2021

see https://community.canvaslms.com/t5/Developers-Group/Get-the-current-term-id/td-p/438050 for reference

should be able to modify the current endpoint get_enrollment_terms to accept a current flag or something similar

@bennettscience
Copy link
Contributor

For us, we're an account with 8 subaccounts, each with their own active term, so the solution in that community post won't work. As far as I can tell in the docs, you can't even request terms for a subaccount - they all need to be requested through the account context and then filtered out in your logic somehow.

The closest fix would be to use the workflow_state[]=active querystring in the request, but even that is only marginally helpful because many institutions may not deactivate past terms for any number of reasons. Those results will all come back in and would then need to be sorted, etc.

Not saying it's impossible, it's just a bigger problem that it appears at first glance using the REST API endpoints.

I have never touched the GraphQL endpoint, but from playing with the graphiql explorer, it might be possible? It might be a good candidate endpoint for adding GraphQL support to an endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants