Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow env_var to be Used in More Contexts #10601

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

peterallenwebb
Copy link
Contributor

Resolves #10599

Problem

Solution

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@cla-bot cla-bot bot added the cla:yes label Aug 23, 2024
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

@peterallenwebb
Copy link
Contributor Author

@gshank Can you take a look at this proposed change? I found that this happens because a MacroManifest was showing up in the implementation of env_var(), when we were only expecting a Manifest. I improved the type annotations so that they better reflect reality, but that did require adding some assertions.

Do you think partial parsing will work correctly with these changes?

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 86.20%. Comparing base (3c55806) to head (566e294).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10601      +/-   ##
==========================================
- Coverage   88.90%   86.20%   -2.70%     
==========================================
  Files         180      180              
  Lines       22760    22764       +4     
==========================================
- Hits        20234    19623     -611     
- Misses       2526     3141     +615     
Flag Coverage Δ
integration 86.20% <85.71%> (+0.05%) ⬆️
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 86.20% <85.71%> (-2.70%) ⬇️
Integration Tests 86.20% <85.71%> (+0.05%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] The env_var Function Cannot Be Ued in the create_schema Macro
1 participant