Skip to content

Relax patch requirements for lmsConfig to allow piecemeal creation - #704

Merged
kurtnordstrom merged 1 commit into
mainfrom
illdev-474-relax-lmsconfig-patch
Aug 12, 2026
Merged

Relax patch requirements for lmsConfig to allow piecemeal creation#704
kurtnordstrom merged 1 commit into
mainfrom
illdev-474-relax-lmsconfig-patch

Conversation

@kurtnordstrom

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Relaxes the Directory service PATCH /entries behavior so an lmsConfig can be created incrementally (without requiring address and fromAgency at creation time), aligning with piecemeal configuration workflows.

Changes:

  • Removes the 400 Bad Request validation that previously blocked creation of a new lmsConfig unless address and fromAgency were provided.
  • Updates the API test case to expect 204 No Content and validates the refetched entry state for an incomplete lmsConfig patch.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
directory/api/entries.go Allows lmsConfig upsert to proceed when no existing row is present, only treating non-ErrNoRows query errors as fatal.
directory/test/entries_test.go Adjusts the incomplete lmsConfig PATCH test to expect success and adds a refetch assertion fixture.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kurtnordstrom
kurtnordstrom marked this pull request as ready for review August 11, 2026 21:14
@kurtnordstrom
kurtnordstrom merged commit be4c435 into main Aug 12, 2026
10 checks passed
@kurtnordstrom
kurtnordstrom deleted the illdev-474-relax-lmsconfig-patch branch August 12, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants