Skip to content

Merge develop into staging#214

Merged
chapmanhk merged 136 commits into
stagingfrom
develop
Mar 11, 2026
Merged

Merge develop into staging#214
chapmanhk merged 136 commits into
stagingfrom
develop

Conversation

@vishpillai123

Copy link
Copy Markdown
Collaborator

No description provided.

chapmanhk and others added 20 commits February 27, 2026 09:43
Replace 'Edvise schema' with 'Edvise Schema (ES)' in docstrings,
comments, and user-facing error messages so the schema type is
distinguished from the Edvise product (ES convention).

Made-with: Cursor
- Fetch institution before filename inference; set allowed_schemas to UNKNOWN when
  inference fails for legacy (non-legacy still get 422 for non-descriptive names)
- Refactor validation_helper into helpers under 50 lines; add full docstrings,
  early empty-filename and invalid inst_id validation, log before 404
- Add unit tests for _infer_allowed_schemas_from_filename and _ext_models_set
- Add integration tests: empty filename 422, invalid inst_id 404, edvise
  non-descriptive filename 422, duplicate validate idempotent
- Fix mypy and ruff/black in data.py and data_test.py
- Add PR_DESCRIPTION.md for feature branch

Made-with: Cursor
- Use converter_func_cohort by default for PDP cohort validation (filters DE/DS/SE)
- Add optional pdp_cohort_converter_func and pdp_course_converter_func to
  validate_file_reader and validate_dataset for school-specific overrides
- Course validation tries custom converter first, then default handling_duplicates
- Validate converter args are callable; convert converter/read failures to
  HardValidationError so API returns 400 with context
- Add PDPConverterFunc type; extract helpers to meet 50-line and error-handling rules

Made-with: Cursor
- Add unreachable return after with block in _validate_pdp_with_edvise_read
- Use cast(Any, ...) in tests that pass non-callables to converter params

Made-with: Cursor
…pload

feat: use PDP cohort converter and support custom converters
@vishpillai123

Copy link
Copy Markdown
Collaborator Author

Looks okay to me, but need someone else's approval to merge.

mrmaloof and others added 3 commits March 6, 2026 16:46
feat: legacy school type with any-format uploads, PII check, and Edvise Schema (ES) naming
…lassifier

Revert "feat: legacy school type with any-format uploads, PII check, and Edvise Schema (ES) naming"

@chapmanhk chapmanhk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like we're ready to go. Just noting that before we actually merge, I'll need to run the database scripts to get edvise added into the tables (laid out here #196). So give me a heads up before we click merge and I can get that done.

@vishpillai123

Copy link
Copy Markdown
Collaborator Author

Looks like we're ready to go. Just noting that before we actually merge, I'll need to run the database scripts to get edvise added into the tables (laid out here #196). So give me a heads up before we click merge and I can get that done.

Yeah we're ready to merge! Go ahead and work on the database update and we'll come back here and merge.

@chapmanhk chapmanhk merged commit 048566b into staging Mar 11, 2026
11 checks passed
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.

4 participants