Skip to content

River notifications on create may be trigged before post is actaully created in db #39

Description

@skogsmaskin

River-notifications are sent :after_create, however the writing in the database is done as a transaction. In some circumstances this result in a notification which might be put out on the river and read by consumers before the post is actually readable by the API.

We may consider not to use the ActiveRecord observer, but manually trigger the notification at the end of the transaction that produce new posts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions