Skip to content

Call node events globally #4153

@Leon-JavaScript

Description

@Leon-JavaScript

Description

Currently the following events are only emitted on the server the change occured on:

In a network setup this causes the following scenarios:

  • When adding/removing a node to a user through the backend server the events will only be emitted on the backend server.
  • When a node expires the events are called on the backend servers and the proxy.

This makes it extremely difficult to run a piece of code only once in a global context if one of these events happens.

Proposed Behaviour

The events should be called globally, so if you add a node to a user via the backend server, the proxy should also emit a NodeMutateEvent (and also the other Node events if they fit into the change)

Extra Details

An example for what this change can be useful: A group history tracking with timestamps can be made only on the proxy, currently this is not possible and the fact that an expiring node calls the event on all servers makes it extremely difficult to track if a change has already been processed or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: suggestionThe issue is suggesting a new feature or enhancement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions