-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriptions for more events for the admins in API #60
Comments
Schema of CREATE TABLE logs (
id SERIAL PRIMARY KEY,
type TEXT NOT NULL,
value JSONB,
user_id INTEGER REFERENCES user (id),
created_at TIMESTAMP NOT NULL DEFAULT NOW()
); To logging events we can use one of two approaches:
API to retrieve logs Query parameter: To authorize access to the
|
@pyoner many thanks! To log events, I'd vote for:
To authorize access, I'd vote for retrieving the admin users and checking if the request issuer is among them, which is, apparently:
|
Probably |
@blokhin admin can use SSE for listening real-time events |
partially implemented in https://github.com/basf/metis-bff/blob/master/routes/%5Bversion%5D/logs.js |
The admin users should be able to claim their interest in the general events which do not concern their accounts.
metis-bff/db_seed.js
Lines 322 to 336 in 1dd1a04
Such general events are, mainly:
@pyoner has suggested to log such events and flush them to the user in the API.
@knopki we should provision this somewhere in the API client.
The text was updated successfully, but these errors were encountered: