GitHub user dosubot[bot] added a comment to the discussion: How to add the date 
to the email subject line

<!-- Answer -->
The code for the DATE_FORMAT_IN_EMAIL_SUBJECT feature, including the _name 
property, is present in Superset 4.1.2 in 
superset/reports/notifications/email.py, exactly as described: 

```python
@property
def _name(self) -> str:
    """Include date format in the name if feature flag is enabled"""
    return (
        self._parse_name(self._content.name)
        if is_feature_enabled("DATE_FORMAT_IN_EMAIL_SUBJECT")
        else self._content.name
    )
```

If you don't see this in your local or checked-out 4.1.2 code, it's likely a 
local codebase or deployment mismatch, not a change in Superset itself. 
Double-check that you're on the correct tag/branch and that your local files 
are up to date. The feature is behind a flag, so make sure 
DATE_FORMAT_IN_EMAIL_SUBJECT = True is set in your superset_config.py and that 
your Superset instance is using the updated config. You can see the relevant 
code here: [superset/reports/notifications/email.py 
(4.1.2)](https://github.com/apache/superset/blob/7b6885a020af6c55fd6661ca766ebc18399c9496/superset/reports/notifications/email.py).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/663215df-10d1-4ac4-a325-7026db6732b3?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sh
 are on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/33777)

GitHub link: 
https://github.com/apache/superset/discussions/33777#discussioncomment-13478361

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to