Skip to content

feat: remove custom institution type; align create/edit with API school-type rules#258

Open
chapmanhk wants to merge 3 commits intodevelopfrom
feat/remove-custom-institutions
Open

feat: remove custom institution type; align create/edit with API school-type rules#258
chapmanhk wants to merge 3 commits intodevelopfrom
feat/remove-custom-institutions

Conversation

@chapmanhk
Copy link
Copy Markdown
Contributor

@chapmanhk chapmanhk commented Apr 10, 2026

changes

  • Create / edit institution flows
    • Remove Custom as an institution type in the UI.
    • Align forms with API rules: exactly one of PDP / Edvise (ES) / Legacy; conditional fields (e.g. pdp_id only when PDP); schema / allowed-email handling consistent with the hardened API (Avoid client-driven allowed_schemas that mixed custom behavior with UNKNOWN; school type + API schema groups are the source of truth

context

The backend is dropping custom institutions; the admin UI must not offer Custom and must send payloads the API accepts. This pairs with the edvise-api PR - datakind/edvise-api#228

https://app.asana.com/1/6325821815997/project/1208486153653829/task/1213791624909790?focus=true

testing

Tested deployed feature branch on dev with its associated edvise-api feature branch: confirmed that custom is removed and that school creation is working as intended.

questions

  • None

- Require exactly one of PDP, Edvise, or Legacy on create
- Drop allowed_schemas/UNKNOWN from payloads; label fieldset Institution type

Made-with: Cursor
- CreateInst: send pdp_id only when PDP is selected; fix allowed_emails empty check
- EditInst: require exactly one of PDP, Edvise, or Legacy before submit

Made-with: Cursor
Keep only custom-removal edits on the edit page (no Custom option, no UNKNOWN allowed_schemas, Institution type label). Drop the exactly-one-type client check added for API parity; edit flow is out of scope for this PR.

Made-with: Cursor
@chapmanhk chapmanhk requested a review from mrmaloof April 10, 2026 15:53
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.

1 participant