Skip to content

RG config client — CRUD, models and versioned generate methods#38

Draft
carlosfunk wants to merge 1 commit into
mainfrom
dm-3731-rg-config
Draft

RG config client — CRUD, models and versioned generate methods#38
carlosfunk wants to merge 1 commit into
mainfrom
dm-3731-rg-config

Conversation

@carlosfunk

@carlosfunk carlosfunk commented Jul 19, 2026

Copy link
Copy Markdown
Member

Adds client support for DataMasque ruleset-generation configs: server-side masks-per-label configs consumed by the versioned generate APIs.

Commits

  • feat(client): add RG config CRUD and versioned generate methods

What's in it

  • RGConfig pydantic model + RGConfigClient mixin: list/get/create/update/delete + get_default_rg_config_yaml() against rg/configs/
  • Versioned generate methods mirroring the discovery *_from_config split: generate_ruleset_with_rg_config (v3), generate_file_ruleset_with_rg_config (v2), start_async_ruleset_generation_with_rg_config (v2), start_async_ruleset_generation_from_csv_with_rg_config (v2). Old methods keep the old endpoints (server default RG config).
  • Old generate request models reject rg_config and point callers at the new methods.
  • CSV/multipart note: rg_config=None is sent as an empty form field; DRF coerces '' to null on relational fields (verified end-to-end against a live server).

…958)

- add RGConfig pydantic model and RGConfigClient mixin: list/get/create/update/delete + defaults yaml
- add generate_ruleset_with_rg_config (v3) and file/async/csv variants (v2), mirroring the discovery from_config split
- old generate request models reject rg_config and point callers at the new methods
- document dependent-RGC behaviour on ruleset library delete/usage APIs
@carlosfunk
carlosfunk marked this pull request as draft July 19, 2026 23:01
@carlosfunk carlosfunk changed the title DM-3731: RG config client — CRUD, models and versioned generate methods (DM-3958) RG config client — CRUD, models and versioned generate methods Jul 20, 2026
@carlosfunk carlosfunk self-assigned this Jul 20, 2026
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