Skip to content

Notifications: improve copy on error messages #11062

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

Merged
merged 15 commits into from
Jan 26, 2024
Merged

Conversation

humitos
Copy link
Member

@humitos humitos commented Jan 24, 2024

This is not perfect and there is still more work to do here. However, this is another good iteration in the process.

Closes #10985

@humitos humitos requested a review from agjohnson January 24, 2024 13:37
@humitos humitos requested a review from a team as a code owner January 24, 2024 13:37
@humitos humitos requested a review from stsewd January 24, 2024 13:37
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

Thanks for going through these! I've tuned the copy more with additions. A few broad notes:

  • Some of the headers might still be tuned. For example, I noted some headers were Invalid configuration while the error noted missing values, and a more specific header could be used instead.
  • We have a fair amount of existing copy that interchangeable used config file and configuration file, I think the latter is preferred for clarity
  • There are some conflicts between the terms config and option. To me, option is a single key in a configuration file and configuration refers to the whole file.

@humitos
Copy link
Member Author

humitos commented Jan 25, 2024

@agjohnson thanks for the review! I took most of your suggestions 💯 . There are a few that aren't marked as resolved. Please, take a final look at them if you have time.

@humitos
Copy link
Member Author

humitos commented Jan 25, 2024

Getting the classname doesn't work on templates, tho:

TemplateSyntaxError: Variables and attributes may not begin with underscores: 'value.__class__'

🤔

```
In [4]: n.get_message().get_rendered_body()
Out[4]: '\n\n\nConfig validation error in <code></code>.\nExpected a list, got
type <code>int</code> (<code>422</code>).'
```
@humitos
Copy link
Member Author

humitos commented Jan 25, 2024

I create a simple template filter to be able to render the class name for now: 49c39b3 (#11062). I think it's pretty clear now 💯

@agjohnson
Copy link
Contributor

Yeah, I thought the same here as you. Annoying that underscore attributes are off limits, but I'm not surprised Django templates get in our way here.

@humitos humitos enabled auto-merge (squash) January 26, 2024 10:48
@humitos humitos merged commit 44e7368 into main Jan 26, 2024
@humitos humitos deleted the humitos/notifications-copy branch January 26, 2024 11:06
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.

Notifications: audit and tune notification body and subject copy
2 participants