Skip to content

Update last activity at/by immediately when updating project #610

@maxceem

Description

@maxceem

When we update project using PATCH/PUT endpoint we update updatedAt/updatedBy fields. But we don't update lastActivityAt/lastActivityBy fields immediately, they are only updated using Kafka event in a few seconds.

As a result, the response of PATCH/PUT endpoint contains outdated values for lastActivityAt/lastActivityBy which leads to the next small issue:

  • when we update project first time, these values are not updated
  • and only after the second update we get the values form the previous update

See demo video https://monosnap.com/file/pslk3R8TSFYO6MCOVKzLX5G1kazqZl

TODO:

  • update lastActivityAt/lastActivityBy fields immediately inside PATCH/PUT endpoint
  • remove updating these field on project update Kafka event
  • this field should still get updated on other Kafka events when some other related objects are updated, delay in such cases is inevitable and fine

FYI @RishiRajSahu

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