Statistics
Closes #33 (closed)
Significant notes
- Added a new DTO class
ReportCriteria
holding a topic title and two time constraints. - Because the needs of the statistics page are too specific, I had to add two DTO classes
TopReport
andTopUser
. - There is a way to select topics based on their title, as this is a unique index. So I have added a method to the
TopicGateway
that retrieves a list of all topic titles. @maderp this could be interesting for your moving reports. - Tests are completely missing, I know. Will come later. Prefer to have something working :)
- It was necessary to adjust the DB views a bit and add yet another. Therefore the script is updated. This should however not affect anyone of you.
- We should discuss about using
OffsetDateTime
by default as this is compatible with Postgres JDBC. - There is a nice way for SQL statements including filtering propsed by @mexis
- Finally, this MR shows that
@ViewScoped
and PrettyFaces work perfectly well together.
Preview
In order to give feedback on the GUI without having to checkout the branch and starting the server, below a screenshot of the current state of this page:
Template Improvement
- Most importantly for you: Dialogs!! Simply define them (arbitrarily many) with class
dialog
in a new areadialogs
as shown in $6. - Aligned template with prototype from requirements.
- Fixed profile menu. Logout is still to do.
- Added search bar to top.
- Implemented language change.
See the screenshot above for an impression.
Edited by X kirschstei