Commit Graph

4473 Commits

Author SHA1 Message Date
Risto Lahtela
4932142db2 Added tests for ActivityIndex 2021-01-30 19:30:31 +02:00
Risto Lahtela
1c71922b04 Solved some new code smells
- Return empty set instead of null FilterQuery#getSetParameters
- DateRangeFilter constructor is protected
- String constant JSONFileStorage
- String constant VersionChecker
- String constants FLOOR(, MIN(, MAX( TPSQueries
2021-01-30 19:17:59 +02:00
Risto Lahtela
76dc1a98a7 Updated locale
- Login & Register pages now translate
- Query page now translates
- Version information modal now translated
- Some things had gone on multiple lines and as the result were not
  translating, that was fixed.
- Updated locale files
2021-01-30 13:38:41 +02:00
Risto Lahtela
22fb9c4a06 Show query path with 0 results 2021-01-30 11:08:29 +02:00
Risto Lahtela
db71ad005f Made it more difficult to click "Perform Query" by accident 2021-01-30 10:19:01 +02:00
Risto Lahtela
61841966f5 Fixed sidebar toggle in Query Results
The element was replaced so the click event listener
was destroyed in the process.

- Added onclick inside the rendered html
- Additional refactoring inside this commit
2021-01-30 10:16:01 +02:00
Risto Lahtela
6c13691a52 Fixed adding filter jumping to top of the page 2021-01-29 12:38:39 +02:00
Risto Lahtela
f24abe797e Fixed time formatter 2021-01-29 12:35:09 +02:00
Risto Lahtela
4b4aa2d7d9 Added a players online graph to Query page to help selecting view 2021-01-29 11:58:06 +02:00
Risto Lahtela
b8b9af828b Updated repository links in query.html 2021-01-29 11:14:41 +02:00
Risto Lahtela
88e2b936f5 Added missing language (needs testing later) 2021-01-29 11:05:03 +02:00
Risto Lahtela
e00de54879 Small optimizations 2021-01-29 11:05:03 +02:00
Risto Lahtela
1e897a09bf Added a 'Make a query' button to server, network and players pages 2021-01-29 11:04:59 +02:00
Risto Lahtela
54a698136e Fixed date formatting of the date fields 2021-01-29 11:04:45 +02:00
Risto Lahtela
e8e7258443 Fixed an error related to query on query page 2021-01-29 11:04:45 +02:00
Risto Lahtela
2c06819bc4 Added a filter removal button to all filters
# Conflicts:
#	Plan/common/src/main/resources/assets/plan/web/css/style.css
2021-01-29 11:04:39 +02:00
Risto Lahtela
da7cf84cf4 Error displayed properly 2021-01-29 11:02:56 +02:00
Risto Lahtela
9144256752 Prevent invalid form entries from being submitted to query 2021-01-29 11:02:55 +02:00
Risto Lahtela
97137cf660 Fixed error in PluginGroupsFilter Query 2021-01-29 11:02:54 +02:00
Risto Lahtela
ceacb112c4 Fixed view dates being flipped 2021-01-29 11:02:52 +02:00
Risto Lahtela
bb5195e26d Changed all player tables to show active playtime
Previously the tables showed playtime (with afk time)

- Query result table
- Server players table
- Players page table

Affects issues:
- #1235
2021-01-29 11:02:51 +02:00
Risto Lahtela
c5bfdb6ff3 Added extension data support to query results 2021-01-29 11:02:50 +02:00
Risto Lahtela
525a78b956 Added support for plugin group filters 2021-01-29 11:02:49 +02:00
Risto Lahtela
c0e253d56d Added session aggregates to query results 2021-01-29 11:02:48 +02:00
Risto Lahtela
8ee28e07dd Added geolocations to query results 2021-01-29 11:02:47 +02:00
Risto Lahtela
19dc55ad26 Removed scroll to top button from query.html 2021-01-29 11:02:45 +02:00
Risto Lahtela
a3c16b4b21 Added activity graphs to query results 2021-01-29 11:02:45 +02:00
Risto Lahtela
c1d53c27d3 Fixed element insertion on query page 2021-01-29 11:02:44 +02:00
Risto Lahtela
7baf1d7556 Made it possible to share query results via url 2021-01-29 11:02:43 +02:00
Risto Lahtela
c7ed844c76 View options added to the query 2021-01-29 11:02:42 +02:00
Risto Lahtela
5c102458ae Added a player table as a result to the query
Rewrote PlayersTableJSONCreator to not use String format anymore
2021-01-29 11:02:40 +02:00
Risto Lahtela
80e5d797b5 Added view fields to the query 2021-01-29 11:02:39 +02:00
Risto Lahtela
47b3921204 Refactored some odd decisions in the new code 2021-01-29 11:02:38 +02:00
Risto Lahtela
fd673dee2b Query now functions "properly" 2021-01-29 11:02:37 +02:00
Risto Lahtela
1108f6f2e0 Refactored query.js to have Filter classes instead 2021-01-29 11:02:36 +02:00
Risto Lahtela
908d1c6203 Random tiny changes to code quality 2021-01-29 11:02:35 +02:00
Risto Lahtela
9648deb853 Form validation for timestamps
Validates and corrects dates and times on all date input in query form
2021-01-29 11:02:34 +02:00
Risto Lahtela
6ff2d68b99 Added a /query page
What currently works:
- Adding filters dynamically
2021-01-29 11:02:33 +02:00
Risto Lahtela
8f5db846af /v1/filters entry point
Fetches the list of Filters that can be applied in a query
2021-01-29 11:02:32 +02:00
Risto Lahtela
a14d7d4769 /v1/query endpoint
- Requires 'q' parameter which is URI encoded JSON array
- The array contains FilterQuery objects
- Right now the list of UUIDs and path is returned

Up next /v1/filters endpoint that returns list of filter kinds and what their default options.
2021-01-29 11:02:31 +02:00
Risto Lahtela
aac7bdc632 Begun work on Filters:
- Filter interface
- Wrote 5 filters
- Wrote QueryFilters that manages different Filters

Plan is to link the QueryFilters to Resolvers:
- One that returns all filters and their options as json
- One that users the query parameters (eg ?q={json}) and gets the filters
  - FilterQuery has a static method to parse the json
2021-01-29 11:02:31 +02:00
Risto Lahtela
b479753fc9 Fixed server preference pie for network page
- Flipped the dates in the query (ugh)
- Proper names for the servers in the pie

Affects issues:
- Fixed #1728
2021-01-29 11:01:08 +02:00
Risto Lahtela
60f6278352 Updated ViaVersion Extension
- Don't try to register the extension on Velocity
  (Velocity has no way to register listeners to Plan)

Affects issues:
- Close #1726
2021-01-29 10:27:37 +02:00
Risto Lahtela
5e7bced24b Fixed in-game links in Czech locale
Affects issues:
- Fixed #1725
2021-01-29 10:15:06 +02:00
Risto Lahtela
41c1a8dfc6 Update notification now says "Update: " 2021-01-29 10:10:31 +02:00
Risto Lahtela
76fe304dbd Replaced old links to repository with new one 2021-01-29 09:51:44 +02:00
Risto Lahtela
021360e586 Contributors now displayed in 3 columns
The modal was getting really long so it was widened
and contributors now use 3 columns instead of 1

Contributors were also alphabetically sorted
2021-01-29 09:51:43 +02:00
dependabot-preview[bot]
4d82a1a8ae Bump org.sonarqube from 3.1 to 3.1.1 in /Plan
Bumps org.sonarqube from 3.1 to 3.1.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-26 05:27:33 +00:00
dependabot-preview[bot]
d73d16b609 Bump HikariCP from 4.0.0 to 4.0.1 in /Plan
Bumps [HikariCP](https://github.com/brettwooldridge/HikariCP) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/brettwooldridge/HikariCP/releases)
- [Changelog](https://github.com/brettwooldridge/HikariCP/blob/dev/CHANGES)
- [Commits](https://github.com/brettwooldridge/HikariCP/compare/HikariCP-4.0.0...HikariCP-4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-26 05:27:21 +00:00
dependabot-preview[bot]
1e0f875897
Bump bstatsVersion from 1.8 to 2.1.0 in /Plan (#1720)
* Bump bstatsVersion from 1.8 to 2.1.0 in /Plan

Bumps `bstatsVersion` from 1.8 to 2.1.0.

Updates `bstats-bukkit` from 1.8 to 2.1.0
- [Release notes](https://github.com/Bastian/bStats-Metrics/releases)
- [Commits](https://github.com/Bastian/bStats-Metrics/commits/v2.1.0)

Updates `bstats-sponge` from 1.8 to 2.1.0
- [Release notes](https://github.com/Bastian/bStats-Metrics/releases)
- [Commits](https://github.com/Bastian/bStats-Metrics/commits/v2.1.0)

Updates `bstats-bungeecord` from 1.8 to 2.1.0
- [Release notes](https://github.com/Bastian/bStats-Metrics/releases)
- [Commits](https://github.com/Bastian/bStats-Metrics/commits/v2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Updated metrics imports

* Relocate Sponge bstats metrics

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com>
2021-01-25 12:09:36 +02:00