Skip to content

Fix cube filter export and query indentation#1954

Merged
shangyian merged 2 commits intoDataJunction:mainfrom
shangyian:dj-lint
Apr 4, 2026
Merged

Fix cube filter export and query indentation#1954
shangyian merged 2 commits intoDataJunction:mainfrom
shangyian:dj-lint

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

@shangyian shangyian commented Apr 4, 2026

Summary

  • Cube filters now get ${prefix} injection during namespace export. Previously, cube filters fields referencing namespace-qualified nodes were left as-is, producing invalid portable YAML on dj push.
  • Multiline queries with leading indentation no longer emit query: |4-. Since textwrap.dedent strips common leading whitespace before serialization, ruamel.yaml always emits the standard |- block scalar indicator.

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 Apr 4, 2026

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 4906235
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/69d069bebe575b0008112352

@shangyian shangyian changed the title Inject prefixes into cube filters and strip leading spaces from node … Fix cube filter export and query indentation Apr 4, 2026
@shangyian shangyian added the bug Something isn't working label Apr 4, 2026
@shangyian shangyian marked this pull request as ready for review April 4, 2026 01:53
@shangyian shangyian merged commit 0f2a361 into DataJunction:main Apr 4, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant