Skip to content

Add compatibility layer between legacy units and new units#2165

Open
shangyian wants to merge 6 commits into
DataJunction:mainfrom
shangyian:units-compat
Open

Add compatibility layer between legacy units and new units#2165
shangyian wants to merge 6 commits into
DataJunction:mainfrom
shangyian:units-compat

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

@shangyian shangyian commented May 22, 2026

Summary

This change bridges the structured new unit field on columns (added in #2149) with the legacy metric metadata unit enum so that input + output surfaces and storage writes stay consistent. Users should not need to migrate any YAML, and API consumers reading the legacy field can continue to do so.

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 9dd02d0
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a1383eda73f36000892725a

@shangyian shangyian force-pushed the units-compat branch 2 times, most recently from 44d2169 to fea68d1 Compare May 24, 2026 04:10
@shangyian shangyian marked this pull request as ready for review May 24, 2026 05:04
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