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

Minor secrets refactor #2302

Merged
merged 7 commits into from
Apr 10, 2020
Merged

Minor secrets refactor #2302

merged 7 commits into from
Apr 10, 2020

Conversation

cicdw
Copy link
Member

@cicdw cicdw commented Apr 9, 2020

Thanks for contributing to Prefect!

Please describe your work and make sure your PR:

  • adds new tests (if appropriate)
  • updates CHANGELOG.md (if appropriate)
  • updates docstrings for any new functions or function arguments, including docs/outline.toml for API reference docs (if appropriate)

Note that your PR will not be reviewed unless all three boxes are checked.

What does this PR change?

This PR does a few things:

  • renames our secret tasks for clarity
  • allows for new secret names to be passed at runtime
  • removes env_var as a distinct option from EnvVarSecret

Why is this PR important?

This PR was originally motivated by our work on Results (additional PR for SecretResult incoming), and I went ahead and changed the names as well as this has been a common source of confusion.

@@ -29,7 +29,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/

### Breaking Changes

- None
- Remove `env_var` initialization from `EnvVarSecret` in favor of `name` - [#2302](https://github.com/PrefectHQ/prefect/pull/2302)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that I don't believe anyone is actually using this task, as it's more of a nice example than a truly useful thing.

@codecov
Copy link

codecov bot commented Apr 9, 2020

Codecov Report

Merging #2302 into master will decrease coverage by 0.00%.
The diff coverage is 95.45%.

@cicdw cicdw requested a review from joshmeek April 9, 2020 23:05
@cicdw cicdw mentioned this pull request Apr 10, 2020
3 tasks
@cicdw cicdw merged commit 22f1aa4 into master Apr 10, 2020
@cicdw cicdw deleted the minor-secrets-refactor branch April 10, 2020 15:53
zanieb added a commit that referenced this pull request Jul 19, 2022
Update flow and task calls to return results
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.

2 participants