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

[1259] Expose provider in courses #245

Merged
merged 3 commits into from Apr 5, 2019
Merged

Conversation

heidar
Copy link
Contributor

@heidar heidar commented Apr 4, 2019

Context

We need to expose provider and accrediting_provider on the course endpoint.

Changes proposed in this pull request

Rather than hard coding the course endpoint to return site_statuses and sites, we now rely on the include parameter.

Added a bunch of tests for the serializer to make sure we can render out everything we need.

Guidance to review

I originally included a request spec in this that brings in provider and accredited_provider, but decided it was overkill in the end.

@heidar heidar force-pushed the 1217-expose-provider-in-courses branch from c44454e to 00e283d Compare April 4, 2019 15:35
@heidar
Copy link
Contributor Author

heidar commented Apr 4, 2019

Let's not merge this until I've updated the vacancies controller on the frontend to explicitly request site statuses and sites from the backend, as this changes them to no longer be included by default.

@heidar heidar changed the title [1217] Expose provider in courses [1259] Expose provider in courses Apr 5, 2019
@heidar heidar force-pushed the 1217-expose-provider-in-courses branch from 00e283d to 992865a Compare April 5, 2019 10:08
heidar pushed a commit to DFE-Digital/publish-teacher-training-2022 that referenced this pull request Apr 5, 2019
This is needed to match up with changes on the backend: DFE-Digital/publish-teacher-training#245

These changes cause the API request to ask for site statuses and sites
to be included in the course.
heidar pushed a commit to DFE-Digital/publish-teacher-training-2022 that referenced this pull request Apr 5, 2019
This is needed to match up with changes on the backend: DFE-Digital/publish-teacher-training#245

These changes cause the API request to ask for site statuses and sites
to be included in the course.
@heidar heidar merged commit df48daf into master Apr 5, 2019
@heidar heidar deleted the 1217-expose-provider-in-courses branch April 5, 2019 11:06
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