Graham
69a511a3c5
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
b98d045cfe
Add group source tracking
...
There are a few collisions in the production archive. I suspect these
are due to poorly modified caches, and tracking the source(s) of each
group will make it easier to determine which cache is probably
problematic.
This change also has the benefit of removing a lot of the hacky source
name/description merging logic.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4856f79152
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
853f2cff91
Add assignment operator support to HexLiteralTransformer
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
99b725dc8f
Rename clearBuffer to fillBuffer
...
Unfortunately the dummy argument removal strips away most of the
arguments.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
538f4d06c6
Refactor (mostly) font-related code
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4deabceb9e
Move container_id to the end of the groups index
...
I think this will speed up the collisions view.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d8fd55f5cc
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
0007a2917b
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
bb293d3e3f
Add missing ORDER BY to queries fetching the next container/key
...
I have no idea how I missed this!
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
995cdbd1b7
Add index to speed up the XTEA key brute force command
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ea63769fe9
Add container IDs to the collisions view for debugging
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
76dba3f404
Count indexes with a zero version/checksum as valid
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
2411a16bc2
Always show vertical scroll bar to improve horizontal alignment
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
5f5e7e9c1e
Add archive home page
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
6ac2a31e36
Add link to the /pub folder
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
b1ccd9371d
Defer container UPDATEs until we've finished the current statement
...
Postgres would otherwise deadlock forever. I'm not sure why this worked
when testing - perhaps we always had fewer than BATCH_SIZE rows?
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
42c3c4c120
Fix over-counting in the master_index_stats view
...
Unfortunately the size column can't be fixed in the same way, so I've
deleted it for now.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
94992601f6
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d665749481
Use a shorter name for caches downloaded directly from a JS5 server
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
5d7bf1d59b
Don't merge names/descriptions if they are equal to the existing ones
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
509d88b18f
Add support for storing multiple build numbers per master index
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
9a672153f9
Change the overwrite flag to only overwrite the name/description
...
We still want to merge the build and timestamp as caches can be
associated with multiple build numbers, and I always want us to use the
earliest number.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
55870e428e
Add navbar-expand class to the nav element
...
This ensures multiple nav items appear horizontally, not vertically.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f6a78247e1
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
715e8ec47b
Refactor integer power method
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
25ee52738d
Use minimum build number when merging master indexes
...
Some master indexes are used across multiple builds. It makes sense to
use the minimum build number, much like how we use the minimum
timestamp.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
c06417bed7
Add PRIMARY KEY to tmp_keys for sanity checking
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
3d09c4d90a
Make XteaKey a data class
...
It needs a hashCode/equals implementation as it's used in sets.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
df2aab7639
Fix position of 'Calculating...' text
...
It appeared after the line break, not before it.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
8a25d3d31a
Use CREATE EXTENSION IF NOT EXISTS in V1__init.sql
...
The user running the migration might not have superuser permissions.
Using IF NOT EXISTS allows a root user to install the extension
manually, and then the migration will succeed as an unprivileged user.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d0df60cc1c
Add archiving service config file
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
7fdbe5113f
Add address and port options to WebCommand
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
23bb1ef13c
Add refresh-views command
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
604ba00154
Update Gradle
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
a977f79409
Update dependencies
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
70644b5e06
Combine master_index_{archive,group}_stats
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
20988a70cc
Add size column to the master_index_group_stats view
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f20070d8c3
Fix indentation in V1__init.sql
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f8c44f1de4
Rename master_index_valid_{indexes,groups} to resolved_{indexes,groups}
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
29541b03a8
Remove collision TODO from V1__init.sql
...
It isn't solved yet, but once we've committed to v1 of the archiving
service we won't want to edit V1__init.sql ever again to avoid changing
its checksum (Flyway complains if the checksum changes).
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
4f0a37e13e
Format caches/index.html
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
3a067b8b9c
Add support for downloading keys from Polar's archive
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
b2ccbad031
Add contentType and charset extension properties to HttpResponse
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
326371312d
Use Set instead of List internally in JsonKeyReader
...
We might as well do this as we aren't generating the sequence lazily.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
03cb7701c5
Move migrations to a separate directory to speed up classpath scanning
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
cd874f4b2c
Add connection pooling to the archiving service
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
c5bd044574
Add CloseableInjector
...
I'm going to try to minimise use of this (as per
https://github.com/google/guice/wiki/Avoid-Injecting-Closable-Resources ).
For example, I'm going to inject a pooling DataSource rather than
Connection objects, as per the advice at the end of the page. However,
HikariCP's DataSource implementation is itself Closeable.
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
a0f7bf3922
Remove duplicate json dependency
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
e0d9f2f0a2
Fix module descriptions (Guava module -> Guice module)
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago