Closed lumburovskalina closed 1 year ago
Front-end planning:
Admin messages page:
Extend users page:
Check if something is running
Implement messages in the platform
Testing: 2h PR comments: 2h - 3h
Implementation: 15h - 16h Testing: 2h PR: 4h - 5h SUM: 21h - 23h
PRS: Gateway https://github.com/code-kern-ai/refinery-gateway/pull/116 Model submodule https://github.com/code-kern-ai/refinery-submodule-model/pull/36 Admin dashboard: https://github.com/code-kern-ai/admin-dashboard/pull/62
Backend Planning
Admin messages Concept 1h Implementing Model/BO/Controller/Api 2 h Testing and Fixing 1 h
Active User Concept 1h Implementing Model/BO/Controller/Api 1 h Testing and Fixing 1 h
Check what is Running Concept 1h Writing SQL 1-2 h Implementing Model/BO/Controller/Api 1 h Testing and Fixing 1 h
Round about 12 hours in total
Description admin messages: Can be created and archived. Active messages can be read by all users, all messages (incl. archived) can be read by kern admins. We want to have a strict history of our messages, that's why we don't allow update of the text. We want to store the id if someone manually archived a message. Messages get checked on read if they should get archived. Frontend gets notified by WebSocket if a message was archived or created.
Description last active: We store the information when a user last interacted with the app by writing in into the database on check of permissions. This is throttled on one minute. We can then see when a user was last active and query for an range of minutes which users interacted with the app e.g. last 5 minutes.
Description what is running: Most certainly one big fat SQL statement to query all entities with running state, so it is about UploadTask, TokenizationTask, WeakSupervisionTask and InformationSourcePayload. This would be interesting to see for the user, too, I think!
Acceptance Tests:
Admin Message:
Last Active:
Running:
Is your feature request related to a problem? Please describe. Adding new page for admin messages for notifying users, adding last interaction for users and check if something is running (ex. heuristics..).
Describe the solution you'd like Admin dashboard: Admin messages page: create new page, where the user can create new admin messages, archive them manually with an archive reason, and see the data for those messages (who and when created the message, who and when archived the messages, type of the message and if the message is still active or not). Add the automatically archiving of the messages. Extending users page: add field in the users page that is displaying the last interaction of the user. Add filter than can display the active users in the last X minutes (or/and a button for showing all active users). Check if something is running page: add new page that shows which processes are still running (ex heuristics...) and show more data about those. Platform: Implement websocket notifications on refinery, workflow and gates and add the active messages on the platform. The messages should be removed once the archive date is not valid.