You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent non-super admins from unlocking the slug #360
It's used in the app in certain places. For example, for quick meditations there are slugs that define their durations, i.e.
"slug": "quick-meditation--10-min", and inside it there are "morningMeditation", "afternoonMeditation" и "eveningMeditation"
This is the only reliable way to serve to the users the exact meditation editors have set in the CMS, as duration can vary, for example sometimes it is 7 min for a 5 min slot.
So non-super admins shouldn't be able to unlock the slug field.
@antontcymbal Using the slug to filter the timings is an anti-pattern.
I agree that we should block non-admins from unlocking slugs, but the reason you've raised this ticket raises a deeper issue. Instead of relying on the slug value, you should be querying https://cloud.sydevelopers.com/api/user-choices?type=duration&sort=order, and then display those results as buttons using the title and icon provided by the server.
This will result in your having localized text and an easily configurable number of quick meditation filters, and you will already have the relevant meditation references loaded.
Currently it sounds like you are hard coding the quick meditation buttons and then relying on these slugs to query for the result.
Activity
Ardnived commentedon May 8, 2026
@antontcymbal Using the slug to filter the timings is an anti-pattern.
I agree that we should block non-admins from unlocking slugs, but the reason you've raised this ticket raises a deeper issue. Instead of relying on the slug value, you should be querying
https://cloud.sydevelopers.com/api/user-choices?type=duration&sort=order, and then display those results as buttons using the title and icon provided by the server.This will result in your having localized text and an easily configurable number of quick meditation filters, and you will already have the relevant meditation references loaded.
Currently it sounds like you are hard coding the quick meditation buttons and then relying on these slugs to query for the result.
feat(slugField): prevent non-admins from changing slugs after creation (
feat(atlas): groom legacy event listings and group shared venues befo…