-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Approach
A value identifying the origin app will be passed from the frontend as part of the school payload, if this value is present and matches ExCS then the value should be stored against the school record.
Steps
- Create a migration adding an enum to the
schoolstable- should default to code editor for education
- should allow an identifier for experience cs
- Add a field to the .permit list in the school controller
- Update the
/lib/concepts/school/operationscreate and update endpoints - Ensure value is returned in the views
/app/views/schools/
Expected tests...
- Against the model:
models/school_spec.rb - Ensuring the field is returned by the api:
features/school/showing_a_school_spec.rb - Ensuring the field is updated by the api:
features/school/creating_a_school_spec.rb - Ensuring the field is created by the api:
features/school/creating_a_school_spec.rb - Any others that may be relevant...