Skip to content

Conversation

@fisx
Copy link
Contributor

@fisx fisx commented Dec 2, 2025

https://wearezeta.atlassian.net/browse/WPB-21817 (part I)

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Dec 2, 2025
@fisx fisx marked this pull request as ready for review December 15, 2025 16:36
@fisx fisx requested a review from a team as a code owner December 15, 2025 16:36
blackheaven
blackheaven previously approved these changes Dec 19, 2025
@fisx fisx dismissed blackheaven’s stale review December 19, 2025 13:01

not done yet! :-)

@fisx fisx marked this pull request as draft December 19, 2025 13:03
@fisx fisx force-pushed the WPB-21817-patch-scim-groups branch 6 times, most recently from c09f086 to 5e85dd5 Compare December 23, 2025 14:04
@fisx fisx force-pushed the WPB-21817-patch-scim-groups branch from 5e85dd5 to 17ba26f Compare January 2, 2026 13:03
@fisx fisx force-pushed the WPB-21817-patch-scim-groups branch from 17ba26f to b30491b Compare January 2, 2026 14:56
fisx added 3 commits January 5, 2026 15:17
The old class `Patchable` mixes concerns of validation and patch
application. We take this apart into
- validate schemas based on aeson-schema
- compile patch into aeson-diff syntax and apply that instead of
  implementing our own code for that

Also Patchable is restricted to `User`, and the new code allows for
patching Users, Groups, extension schemas, and potentially other
stuff.

In detail, the following changes are made in this commit:
- `PatchOp` makes more illegal states unrepresentable with `PatchOp`
  instead of `Operation`;
- `Web.Scim.Filter` is used, not re-invented;
- replace `Patchable` class with `SupportsSchemas`;
- re-implement `applyPatch` based on these changes;
- more haddocs.
- smoothen use of `jsonLower`;
- new scim patch type, with an applyPatch implementation in terms of
  aeson-diff and aeson-schema;
@fisx fisx force-pushed the WPB-21817-patch-scim-groups branch 2 times, most recently from 219749f to 0835db4 Compare January 6, 2026 06:51
@fisx fisx force-pushed the WPB-21817-patch-scim-groups branch from 0835db4 to df012ca Compare January 6, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants