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

add favor-state flag #5017

Closed
wants to merge 2 commits into from
Closed

Conversation

daniel-murray
Copy link

@daniel-murray daniel-murray commented Apr 8, 2022

Co-authored-by: josephberni joseph.berni@gousto.co.uk

resolves #5016

Description

Add --favor-state option which enables --defer to favor using --state node even if node exists in current target.

This optionally removes the below second --defer criterion when using the --favor-state flag.

Does the reference node exist as a database object in the current environment?

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have added information about my change to be included in the CHANGELOG.

Currently in the process of signing the CLA.

@daniel-murray daniel-murray requested a review from a team April 8, 2022 15:54
@daniel-murray daniel-murray requested review from a team as code owners April 8, 2022 15:54
@cla-bot
Copy link

cla-bot bot commented Apr 8, 2022

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin.

CLA has not been signed by users: @daniel-murray

1 similar comment
@cla-bot
Copy link

cla-bot bot commented Apr 8, 2022

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin.

CLA has not been signed by users: @daniel-murray

@ChenyuLInx
Copy link
Contributor

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Apr 22, 2022

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin.

CLA has not been signed by users: @daniel-murray

@cla-bot
Copy link

cla-bot bot commented Apr 22, 2022

The cla-bot has been summoned, and re-checked this pull request!

@NiallRees
Copy link
Contributor

Just adding a big plus one to getting this in! Any update @daniel-murray ? (Sorry for double post on issue too!)

@@ -86,6 +86,7 @@ def env_set_path(key: str) -> Optional[Path]:

MACRO_DEBUGGING = env_set_truthy("DBT_MACRO_DEBUGGING")
DEFER_MODE = env_set_truthy("DBT_DEFER_TO_STATE")
favor_state_MODE = env_set_truthy("DBT_favor_state_STATE")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably should be all upper case to match existing standard

@gshank
Copy link
Contributor

gshank commented Aug 11, 2022

@daniel-murray: Is this something that you'd like to move forward?

@josephberni
Copy link
Contributor

CLA has been signed off, so hoping we can get this merged soonish! Let me know if you need anything else from me.

@gshank gshank closed this Aug 12, 2022
@gshank gshank reopened this Aug 12, 2022
@gshank
Copy link
Contributor

gshank commented Aug 12, 2022

The first thing to do is to merge the current state of main, resolve the differences, and update.

josephberni and others added 2 commits August 17, 2022 15:38
Co-authored-by: josephberni <joseph.berni@gousto.co.uk>
@cla-bot
Copy link

cla-bot bot commented Aug 17, 2022

Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA.

In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, don't hesitate to ping @drewbanin.

CLA has not been signed by users: @daniel-murray

@ChenyuLInx ChenyuLInx closed this Aug 17, 2022
@ChenyuLInx ChenyuLInx reopened this Aug 17, 2022
@ChenyuLInx
Copy link
Contributor

@josephberni I think we might need @daniel-murray to sign the CLA to get this merged

@NiallRees
Copy link
Contributor

I still want this real bad :D - any movement here @josephberni ?

@josephberni josephberni mentioned this pull request Sep 16, 2022
6 tasks
@josephberni
Copy link
Contributor

josephberni commented Sep 16, 2022

I've created a new branch for this change where I am now the owner #5859

Let me know if there is anything else you need from me & sorry @NiallRees it took so long!

@jtcohen6
Copy link
Contributor

closing in favor of #5859

@jtcohen6 jtcohen6 closed this Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-470] [Feature] Add option for --defer to favor using --state node even if node exists in current target
6 participants