Refactor statistics - #1
Conversation
CalamityC
commented
Aug 5, 2026
- Add a statistics plugin for RDMO.
- Provide project, user, and catalog statistics with Chart.js.
- Integrate via a permission-protected view and theme navigation.
- Support both RDMO 2.5.x and RDMO 3.x.
| 'key': 'project', | ||
| 'type': 'time', | ||
| 'model': 'projects.Project', | ||
| 'filters': { |
There was a problem hiding this comment.
please leave the model and the filters in the view, in the big chain of the queryset and explicitly one query for Project and one for User. Same for Catalog but it is already like that ;)
There was a problem hiding this comment.
No, you don't see what I'm up to.
I'd like to make the charts fully configurable. So if you have a requirement for a new chart, all you have to do is add a config entry.
So no, in that setup it does not belong to the view.
There was a problem hiding this comment.
Yes, it is nice to make everything hyper-configurable but a Plugin and it's code is also configurable by itself. What other use cases besides these do we have for which it would be relevant?
Also, the Project and User objects are sensitive data and it should be clear as to what happens with that data.
There was a problem hiding this comment.
It is very time consuming to fill that all into the code. It is one configuration entry per chart, that makes it much easier to maintain. And we should know about how to use that.
I do not understand your rejection.
Maybe we can discuss this in person.