feat(ingest/powerbi): emit failed refreshes and the refresh schedule
BR
2d ago+1185+1185+0123456789012345678901234567890123456789-94-94-01234567890123456789
Summary
With extract_refresh_history (default false):
- The latest completed and the latest failed refresh in the last 60 entries each become an
Operation(customOperationType: REFRESH), stamped with the refresh's own end time; failures carryerrorCodeand a truncatederrorDescription. - A failed refresh never advances the dataset's last-updated time: with no completed refresh to anchor to, the Operation is emitted with an unknown last-updated time (0) and a
Dataset Last Updated Unknownwarning. - The configured schedule becomes
refreshSchedule.days/times/localTimeZoneId/enabledproperties. 404 means no schedule; 400 is classified as "not a model-based dataset" only with a known code and message, otherwise warned; 415 marks system models as not refreshable. - Counters are per dataset, not per table.
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