Commit Graph

314 Commits

Author SHA1 Message Date
Hexagon
425d93ba81 Remove osb related http endpoints and client 2021-12-15 13:18:53 -05:00
Adam
b3c4465e73 Move hiscore client to rl-client
Thie removes the http-service hiscore api, which we haven't used in
awhile and doesn't work in practice due to upstream rate limits, as well
as the xp tracker which also hasn't been used in a long time since there
are now multiple quality community run xptrackers.
2021-12-14 20:24:22 -05:00
Adam
1892adf6ca hiscore: add nex 2021-12-13 19:20:01 -05:00
Adam
a54b3d149f loot tracker: aggregate kills prior to inserting
In most cases this saves a number of queries since the loot tracker data
is submitted in 5 minute batches
2021-12-07 19:52:09 -05:00
Adam
9cd7060035 config service: avoid raising a json exception on non json input
The config service accepts in strings instead of json strings, however
this causes the normal control flow to throw a json parsing exception.
Since this happens so frequently it is using a measurable amount of CPU
time, so avoid it in the common case by testing if the string is json
first
2021-12-07 19:50:52 -05:00
Adam
642677d6e2 http-service: assign name to scheduler thread 2021-09-21 11:02:15 -04:00
Adam
df231d1ff9 xtea: skip unknown map regions
The client will include keys 0,0,0,0 for unknown map regions, which should just be skipped over instead of failing the entire request
2021-09-16 17:12:49 -04:00
Adam
719022c044 Update world types for seasonal deadman 2021-08-25 08:06:40 -04:00
Adam
c68bf31f6b redis pool: don't reuse broken jedis instances 2021-08-08 11:39:53 -04:00
Adam
912a68effa http service: add pets list length check
0 length lists cause a redis exception from sadd, which I think is not being handled correctly by jedis and leaking the error into further commands
2021-08-04 17:19:49 -04:00
Adam
21a7bf4906 chat commands: add pets command
Co-authored-by: Illya Myshakov <imyshako@uwaterloo.ca>
2021-07-17 10:15:10 -04:00
Jordan Atwood
1ea92b03ef Remove unused Slf4j annotations and imports 2021-07-12 00:49:16 -07:00
Adam
c1d61b37e6 http-service: fix hiscore test 2021-06-30 16:36:07 -04:00
Adam
478b833337 Revert "http-service: fix hiscore test"
This reverts commit 4041ad4a33.
2021-06-30 16:27:40 -04:00
Max Weber
4041ad4a33 http-service: fix hiscore test 2021-06-30 05:55:28 -06:00
Adam
86a79a1509 Remove examine api
The non-items examine info has been broken for years, and the wiki already has item examines anyway, so we can use those in the future if we need them.
2021-06-13 15:25:04 -04:00
Adam
4b05699d6e http-api: add tob hm hiscores 2021-06-03 08:57:11 -04:00
Adam
9e780d58c8 Use junit rule for mock webserver 2021-05-31 11:34:59 -04:00
Adam
29dbb949c9 http-api: add Tempoross hiscores 2021-03-24 06:16:27 -06:00
Hydrox6
33cdd85ee7 http-service: change pbs from int to double 2021-03-23 13:46:08 -04:00
Adam
ed978d31dd wiki price service: use v1 api 2021-03-14 22:26:40 -04:00
Adam
48352f11c9 item service: include wiki prices in price data 2021-03-09 16:40:23 -05:00
Adam
1284429130 item controller: add config for price cache time 2021-03-09 16:40:23 -05:00
Adam
ded38ec99e http service: add wiki price service 2021-03-09 16:40:23 -05:00
Adam
5ba3e510dc item service: correct scheduled delay for reloading tradable items 2021-03-07 23:24:16 -05:00
Adam
b3b7491680 http service: remove unused price endpoints
Also remove time from ItemPrice, which is no longer needed now that the endpoint for fetching historic price data is gone
2021-03-07 23:20:09 -05:00
Adam
12a84f4c61 http service: remove unused cache item image endpoint 2021-03-07 12:12:53 -05:00
Adam
15a8c6f3ab http service: remove unused sprite endpoint 2021-03-07 12:07:30 -05:00
Max Weber
06b8e1b798 http-api: encode json Instants as millis since epoch 2021-03-04 21:40:57 -05:00
Adam
266fee2067 config service: handle fromJson() returning null
Treat it the same as handling a json syntax exception
2021-01-09 17:12:05 -05:00
Adam
0f17ecdaea http-api: add soul wars hiscores 2021-01-06 15:27:07 -05:00
Adam
e3b75c8b7a ge: submit buy limit reset time 2020-12-25 19:58:22 -05:00
Adam
9a322c70d0 ge: add trade seq number
Occasionally the trades are delivered out of order, this allows us to reassemble them in the correct order
2020-12-25 19:19:41 -05:00
Adam
2c8984e380 ge: add user agent to trade message 2020-12-25 19:19:40 -05:00
Adam
f6a5463a57 Merge pull request #12834 from abextm/rsprofile-external
Per RuneScape-Profile configuration
2020-11-27 00:00:54 -05:00
Adam
0ca25d4f46 chat controller: return 404 if task is not found
This was returning a 200 with an empty body, causing the client to npe due to deserializing it as a Task with no task or location
2020-11-26 14:37:50 -05:00
Max Weber
e769ee0a7b http-api, http-service, rl-client: bulk upload configuration changes 2020-11-25 22:29:35 -07:00
Adam
4f3d57d739 Fix offline worlds showing population of 65535
The service has been updated to return -1 when worlds are offline, and then the UI updated to display OFF when the count is less than 0
2020-11-09 12:41:50 -05:00
Adam
9fc8f19c32 pluginhub controller: fix scheduled task delay
This was meant to be 30 minutes
2020-10-21 10:20:47 -04:00
Adam
7a6c4ecc51 Add pluginhub user count tracking 2020-10-17 11:50:53 -04:00
Adam
1799c9e593 loottracker: submit loot when not logged in
This is to aid the wiki drop log project. The data is not otherwise
stored.
2020-10-01 18:31:39 -04:00
Max Weber
431e09588b specify utf8 encoding
this should fix the following known bugs:
 - putting a U+2019 in the config causes it to become corrupted and
   ~double in size every launch
 - scripts become assembled incorrectly and the nbsp after your name in
   the chatbox becomes incorrect
 - the feed panel doesn't show emoji
2020-08-28 21:58:08 -04:00
Adam
9c81e9b509 http-service: increase loot tracker retention to 90 days 2020-08-22 11:09:07 -04:00
Adam
86713e66ee loot tracker service: use bigint for kill id 2020-08-15 18:48:57 -04:00
Adam
47c375cb03 client: use guice provided http client everywhere 2020-06-27 23:21:28 -04:00
Adam
a1122ba141 ge: fix computing bought/sold amount
Use the total spent price instead of the delta spent price, as it is
being divided by the total quantity
2020-06-06 10:35:20 -04:00
Adam
2dd6fa41e9 ge: include both delta qty and qty 2020-06-04 10:14:01 -04:00
Adam
a803ba567b ge: include slot id 2020-06-03 20:44:45 -04:00
Adam
c67378c09e ge plugin: include if trade is synced on login 2020-06-01 09:56:09 -04:00
Adam
83756e8722 ge: submit spent price instead of computed per-item price 2020-06-01 09:56:09 -04:00