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

[AIRFLOW-3537] Add task_definition as templated parameter in AWS ECS Operator #4341

Closed
wants to merge 1 commit into from

Conversation

tomoyat
Copy link

@tomoyat tomoyat commented Dec 18, 2018

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

Description

  • Here are some details about my PR, including screenshots of any UI changes:

When using the AWS ECS Operator, I'd like to pass the task_definition as a template. Because I decide the task_definition dynamically by another operator, and get the task_definition from XCom.

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

Updated existing test case to check for new field.

Commits

  • My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.
    • All the public functions and the classes in the PR contain docstrings that explain what it does

Code Quality

  • Passes flake8

@stale
Copy link

stale bot commented Nov 20, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Nov 20, 2019
@stale stale bot closed this Nov 27, 2019
@FridayPush
Copy link

Wish this had been merged. A pain point for us that's one field name added to a tuple.

@potiuk
Copy link
Member

potiuk commented Apr 16, 2022

Wish this had been merged. A pain point for us that's one field name added to a tuple.

Feel free to contribute it as a PR. This is an open-source project with more than 2000 contributors - you are absolutely welcome to contribute such change @FridayPush

@FridayPush
Copy link

I appreciate the invitation @potiuk, generally this PR is what I would produce to make the change. I would likely have removed the template_fields test as it is a value check. Additionally the BaseOperator already has tests that validate the behavior of changes to the template_fields

Per the original PR review the only template rendering test I can find in other AWS Operators is the 'batch' operator.

If I was to submit a new PR with the changes to the template_fields how should tests be handled? Would you lean towards removing the test or adding the per field test referenced by mik-laj?

@potiuk
Copy link
Member

potiuk commented Apr 16, 2022

Just add the field. It's enough.

@potiuk
Copy link
Member

potiuk commented Apr 16, 2022

You take a look at other PRs people added with template fields. You will find a number of those If you search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider:amazon-aws AWS/Amazon - related issues stale Stale PRs per the .github/workflows/stale.yml policy file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants