feat(ingest/powerbi): emit model properties, RLS roles and partitions from TMDL

BR
10d ago
+1358-129

Summary

Behind extract_model_properties (default false, requires workspace_apis or enrich_from_item_definitions, plus extract_dataset_schema):

  • Schema fields: isKey → isPartOfKey, explicit isNullable → nullable, and formatString, displayFolder, dataCategory, sortByColumn, summarizeBy (non-default), isHidden, hasKpi in jsonProps (one frozen FieldModelProperties dataclass).
  • Per table: storageMode, partitionCount, incremental-refresh policy, row-level-security roles with their DAX filters (rlsRoles, rlsRoleCount), and dataset parameters (parameter.<name>, secret-looking names masked, values capped at 1000 chars).
  • Role members are never parsed or emitted. RLS filter text is the DAX as authored and can contain hard-coded user names; the docs say so.
  • Malformed role files and filters on unknown tables are warnings with counters (tmdl_roles_failed, rls_filters_unresolved), never failures.

Stack

Part of a stack built on #20842 (Power BI metadata_api_mode: workspace_apis). Merge order:
#20876 → #20877 → #20878 → #20879 → #20880 → #20881 → #20882 → #20883 → #20884 → #20885.
Review this PR's own diff against its base branch; each layer is self-contained and tested on its own.

Checklist

  • PR title follows the Conventional Commits format
  • Tests added/updated (unit and integration goldens)
  • Docs updated (metadata-ingestion/docs/sources/powerbi/)
  • No breaking change (opt-in flag, default off)

🤖 Generated with Claude Code