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

Fixes for program, user and learningmaterial endpoints #1042

Merged
merged 4 commits into from
Oct 6, 2015

Conversation

jrjohnson
Copy link
Member

ProgramYearSteward was missing from school, department, and program year APIs and is needed.

Modify api relationship between users and learner groups
Replace the difficult to understand instructedUserGroups with
instructedLearnerGroups on the users endpoint

Remove the deprecated instructors column from the group table

Replace instructorUsers with instructors on the learner groups endpoint.

In order to get a path we need access to the symphony router which is not available in the learning material entity. So the controller has to instead use a factory to decorate each entity as it is returned and processed. The allows the factory to be a service which receives the Router as a dependancy.

Also removed token and relativePath from the learning material API as these are internal implementation items and not needed for public consumption.

Fixes #1040

Replace the difficult to understand instructedUserGroups with
instructedLearnerGroups on the users endpoint

Remove the deprecated instructors column from the group table

Replace instructorUsers with instructors on the learner groups endpoint.
ProgramYearSteward was missing from these APIs and is needed.
@stopfstedt stopfstedt self-assigned this Oct 5, 2015
@@ -225,19 +225,19 @@ public function testSetLearnerGroups()
}

/**
* @covers Ilios\CoreBundle\Entity\User::addInstructorUserGroup
* @covers Ilios\CoreBundle\Entity\User::addInstructedLearnerGroups
Copy link
Member

Choose a reason for hiding this comment

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

should be
@covers Ilios\CoreBundle\Entity\User::addInstructedLearnerGroup

@jrjohnson
Copy link
Member Author

@ctam - take note of this change please. We're modifying the API for the way you would list the instructors fora learner group.

@jrjohnson
Copy link
Member Author

I'm going to add the changes from #1040 to this as well

@jrjohnson jrjohnson changed the title Fixes for program and user endpoints Fixes for program, user and learningmaterial endpoints Oct 6, 2015
In order to get a path we need access to the symphony router which is
not available in the learning material entity.  So the controller has
to instead use a factory to decorate each entity as it is returned and
processed.  The allows the factory to be a service which receives the
Router as a dependancy.

Also removed token and relativePath from the learning material API as
these are internal implementation items and not needed for public
consumption.
@stopfstedt
Copy link
Member

LGTM 👍

dartajax added a commit that referenced this pull request Oct 6, 2015
Fixes for program, user and learningmaterial endpoints
@dartajax dartajax merged commit 8081c34 into ilios:master Oct 6, 2015
@jrjohnson jrjohnson deleted the api-changes branch October 6, 2015 22:42
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

3 participants