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

Add endpoint to get all materials for a user #1644

Merged
merged 6 commits into from
Oct 25, 2016

Conversation

jrjohnson
Copy link
Member

@jrjohnson jrjohnson commented Oct 20, 2016

/usermaterials/${id} returns a list of all the learning materials a user
is connected to as a learner.

Fixes #1635

  • Needs first offering date
  • Add beta tag to docks for this endpoint as it is volatile
  • test the data returned not just the ids

stopfstedt
stopfstedt previously approved these changes Oct 20, 2016
Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

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

yes, ok.

@jrjohnson jrjohnson force-pushed the 1635-userlms branch 3 times, most recently from becba2e to 141aa6b Compare October 20, 2016 23:19
@jrjohnson jrjohnson changed the title Add route to get all materials for a user Add endpoint to get all materials for a user Oct 20, 2016
@jrjohnson
Copy link
Member Author

Tests are blocked on #1646

/usermaterials/${id} returns a list of all the learning materials a user
is connected to as a learner.
This is likely to be volatile for a while until we figure out exactly
what belongs here.
Calculates the first offering for a materials based on the students
association via IlmSession or Offering.
Data fixtures were modified for testing usermaterials endpoint and these
tests needed some touchups.
@stopfstedt
Copy link
Member

@jrjohnson i don't see anything in the repo query function that pertains to checking the owning session/course for publication status. not sure if this an issue or not, but it may be. thoughts?

@jrjohnson
Copy link
Member Author

@stopfstedt good catch.

@jrjohnson jrjohnson assigned jrjohnson and unassigned stopfstedt Oct 24, 2016
LMs connected to items in draft or scheduled state should not be
displayed for learners attached to those courses / sessions.
@jrjohnson
Copy link
Member Author

@stopfstedt ready for review again.

@jrjohnson jrjohnson assigned stopfstedt and unassigned jrjohnson Oct 24, 2016
@stopfstedt stopfstedt merged commit 5bff16d into ilios:master Oct 25, 2016
@jrjohnson jrjohnson deleted the 1635-userlms branch October 25, 2016 04:11
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.

None yet

2 participants