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

🐛 Fixed default recipients setting not showing label filters #20480

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

sagzy
Copy link
Contributor

@sagzy sagzy commented Jun 27, 2024

fixes https://linear.app/tryghost/issue/SLO-171

  • problem: when the Default Recipient setting is set to "Specific people" and is filtered by a label, we were not able to render the label correctly
  • cause: during the rendering, we look for labels by id, but they're stored by slug in the database setting editor_default_email_recipients_filter
  • solution: allow to look by the relevant key, by introducing a programmatic key to search for

Before the fix:
https://github.com/TryGhost/Ghost/assets/6225080/aed5fc31-6409-4986-aafe-557073c7f355

After the fix:
https://github.com/TryGhost/Ghost/assets/6225080/f35b2607-5f22-42be-b1bb-92f35ccc9ab7

@github-actions github-actions bot added the affects:admin Anything relating to Ghost Admin label Jun 27, 2024
@sagzy sagzy force-pushed the fix/SLO-171 branch 2 times, most recently from c5c91e5 to 4055edc Compare June 27, 2024 14:21
fixes https://linear.app/tryghost/issue/SLO-171

- when default recipients are filtered by a label, we store the filtered label in the `label:slug` format
- however, when loading existing label filters, we were fetching labels by ID, instead of slug
- with this change, we allow fetching by the relevant key
@sagzy sagzy merged commit 5dfee47 into main Jun 27, 2024
19 checks passed
@sagzy sagzy deleted the fix/SLO-171 branch June 27, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:admin Anything relating to Ghost Admin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant