Skip to content

SlackAPIFileOperator filename is not templatable but is documented as is #18465

Description

@mcheale-parkit

Apache Airflow Provider(s)

slack

Versions of Apache Airflow Providers

apache-airflow-providers-slack==3.0.0

Apache Airflow version

2.1.4 (latest released)

Operating System

Debian GNU/Linux 11 (bullseye)

Deployment

Other Docker-based deployment

Deployment details

No response

What happened

Using a template string for SlackAPIFileOperator.filename doesn't apply the templating.

What you expected to happen

SlackAPIFileOperator.filrname should work with a template string.

How to reproduce

Use a template string when using SlackAPIFileOperator.

Anything else

Re: PR: https://github.com/apache/airflow/pull/17400/files
In commit: bbd11de

filename was removed from template_fields. I believe this was because filename was removed as a parameter in favour of file. In a later commit file was renamed to filename but the template_fields was not put back. The documentation still states that it's a templated field.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions