Skip to content

Add flag to identify school as linked to ExCS #543

@danhalson

Description

@danhalson

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 schools table
    • 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/operations create 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...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions