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
There's no warning to the user to add or modify a permission when a publication is added or modified its slug, the permission is needed to check if a user is subscribed to the publication.
This way of checking is complicated to maintain, because to fix it, we have to modify the Publication save method or make triggers to handle the permissions involved with the addition or modification that was made.
We have to think another easier way to manage this subscriber permission related to a publication, a group related to the publication can be an option, this approach is already used someway in another thedaily model.
The text was updated successfully, but these errors were encountered:
status: doing
A post save action was implemented now in a branch that I did not pushed yet, to continue this task (and maybe complete it) I will need to implement this TODO: "when a publication slug is changed, the command update_article_urls should be executed, (try to alert this to the staff user that has made the change, somehow)."
this last "try to alert" is under development now, but it will not be an alert, it will be done directly using a background task with celery (I'm also changing the async task management from background tasks to celery that is more robust, popular and stable)
Note for the "permissions" approach: if we migrate it to the "plan_id" approach (that we use now in one of our private deployment), we need that the async task "on change" change the slugs inside the json content of "plan_id". A definitive solution can be to use the Subscription model, improving it to hold the same information that the "plan_id" has, but using a non slug-dependant way.
Related feature to also implement: A new "system check" to check that the default pub slug in settings "exists" (matches with one of the Publications in the DB).
There's no warning to the user to add or modify a permission when a publication is added or modified its slug, the permission is needed to check if a user is subscribed to the publication.
This way of checking is complicated to maintain, because to fix it, we have to modify the Publication save method or make triggers to handle the permissions involved with the addition or modification that was made.
We have to think another easier way to manage this subscriber permission related to a publication, a group related to the publication can be an option, this approach is already used someway in another thedaily model.
The text was updated successfully, but these errors were encountered: