luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
812 stars 207 forks source link

Show users location #626

Closed TheMaaarc closed 7 years ago

TheMaaarc commented 9 years ago

Is it possible to show the users "location" in the "Users online" screen?

nadar commented 8 years ago

This issue is open for a long time, so i made a quick review:

When a request to any API happens, the UserOnline model is updatet with the path of the request, so when luya is loading a few different requests are made:

-> api-admin-storage -> api-admin-common -> api-admin-menu etc.

which are not "real" locations you can display to the user, its just a call to an api which let the system know the last route requested and refresh its user-online state (request made 1min ago).

In order to store "usable" location informations we would need to differ from "interesting" and "not interesting" request.

The implementation of such a feature should also include the "lock state" of the requested url to other users (when an ngrest item is edited, other users can't edit, when a cms page is in edit mode, other user's can not edit too).