Fix backward compatibility for pre-FOCUS 1.2 cost exports in Costs_transform_v1_2() #1906
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🛠️ Description
Pre-FOCUS 1.2 exports store values in legacy
x_columns (x_PricingCurrency,x_SkuMeterName,x_SkuDetails). When ingested into v1.2 hubs, root-level fields remained null.Changes:
Added coalesce fallbacks in
Costs_transform_v1_2()project clause:Files modified:
src/templates/finops-hub/.../IngestionSetup_v1_2.kql- Added fallback mappings (3 lines)docs-mslearn/toolkit/changelog.md- Documented fix📷 Screenshots
N/A
📋 Checklist
🔬 How did you test this change?
🙋♀️ Do any of the following that apply?
📑 Did you update
docs/changelog.md?📖 Did you update documentation?
Original prompt
Costs_transform_v1_2()does not correctly support ingesting Cost Management exports that predate FOCUS 1.2. #1905💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.