Closed niclash closed 11 months ago
Currently it works in a way that project name
and subsystem name
are passed in url, eg:
/a/sensetif-app?tab=edit_datapoint&project=l2w-test-app&subsystem=room3&datapoint=battery
We have an endpoint get_datapoint
which takes project_name
and subsystem_name
.
In order to render title of project and subsystem I would need to either:
get_datapoint
endpoint so it also returns that data (project/subsystem title)You can also reach that view with steps:
Are both scenarios required? If so, do you have a preferable way of implementing #1 scenario?
@niclash
Isn't project and subsystem info already cached on the client (most of the time, one navigates through the Project and Subsystem to get to this page)? If not, perhaps introduce that. And I wish cache expires in 15 minutes or so.
If caching is too hard to do, then simply make additional calls, since we don't have 1000 concurrent users.
Closing this for now. I am entering a TODO in the source code for changes when Caching is done (maybe never).
In Datapoint, the Project and Subsystem names are used. Change to use "Title"