Commit Graph
84 Commits
Author SHA1 Message Date
Adam 80ebf7c184 Merge pull request #666 from HexRealm/updatecheckservice-fix
Use the address returned by the worldlist api instead of building our own
2018-02-24 11:07:16 -05:00
Adam c57987131c xtea service:try to fix query again 2018-02-23 17:49:01 -05:00
Adam a5c326e220 Revert "xtea service: fix get() query to join on id"
This reverts commit e7a1c59cdb10e6e5ab403f4c4557eeb5f1a62200.
2018-02-22 23:26:31 -05:00
Adam 65f3bae155 xtea service: fix get() query to join on id 2018-02-22 23:02:43 -05:00
Hexagon 4d4930abd2 Use the address returned by the worldlist api instead of building our own 2018-02-22 18:05:15 -03:00
Adam 1b960bf056 item service: change search to only search database
Add fulltext index to item.name and use in searches
2018-02-19 20:42:03 -05:00
Adam 77a3f48627 item service: always use last known price, and queue price updates instead 2018-02-16 23:28:37 -05:00
Adam 4bcfdc5360 item controller: cache empty price lookups 2018-02-16 23:28:37 -05:00
Adam 2125a02678 http-service: split itemservice into service and controller 2018-02-16 22:55:48 -05:00
Lotto aab82c53ff Change copyright header for UniquePassive to Lotto 2018-02-16 19:14:28 +01:00
Adam 98b8a3b76f http-service: try to release okhttp resources on shutdown 2018-02-12 18:59:30 -05:00
Adam d5f56f695e http service: change cache datasource to runelite-cache2 2018-02-03 19:24:37 -05:00
Adam cda04b7acd Split out cache updater into own project 2018-02-03 19:24:35 -05:00
Adam 8c678f69eb cache service: split up into cache controller and service 2018-02-03 19:24:33 -05:00
Adam b25c237e94 cache service: fix duplicating index to archive associations
It is unclear whether archives in an index can change without the index
crc or revision changing, so always create new indexes for each cache.
This is much simplier with not much more overhead.
2018-02-03 19:24:32 -05:00
Adam 3577d58679 xp tracker: don't add duplicate entries if nothing changes 2018-01-29 17:33:02 -05:00
Adam ff1c56812a cache service: fix findArchive to select distinct 2018-01-27 17:59:03 -05:00
UniquePassive 741d42ab49 http-service: fix exception on empty config setKey request body 2018-01-22 01:21:58 +01:00
Adam 7d5e0ff389 http-service: add beginning of xp tracker 2018-01-20 19:48:07 -05:00
Adam 4d2c02e81c http-service: split hiscore service from controller 2018-01-20 19:11:28 -05:00
Adam b7d8b75647 item service: set cache-control: public too 2018-01-19 19:39:24 -05:00
Adam 9aded64e04 cache service: remove unused import 2018-01-19 15:06:59 -05:00
Adam 8eb37bb3db Revert "cache service: move database updating to happen during download"
This reverts commit 018843f3a34f343c32c59db259aae317193f9fc8.
2018-01-19 14:13:02 -05:00
Adam 1eeab55b01 Revert "cache service: don't skip already up to date archives"
This reverts commit cb90940b54dc07dd2221d3169e569b08876a3265.
2018-01-19 14:12:50 -05:00
Adam 057327463e Revert "cache service: use an identity hashmap as equals checks archive contents"
This reverts commit 1b46911dea9e8362c16de89952c5c4becfdc4e43.
2018-01-19 14:12:40 -05:00
Adam 00480e6030 cache service: use an identity hashmap as equals checks archive contents 2018-01-19 11:10:35 -05:00
Adam 244cce506c cache service: don't skip already up to date archives 2018-01-19 10:31:53 -05:00
Adam 36acbebd1b cache service: move database updating to happen during download 2018-01-19 09:45:36 -05:00
Adam fff5f51077 cache service: skip loading filedata as it is not necessary for cache updater 2018-01-19 09:42:47 -05:00
Adam e1a6fb13a2 cache service: lazily load store 2018-01-18 17:08:18 -05:00
Adam c774784c4e http-service: change item price cache to 30 minutes 2018-01-10 17:23:41 -05:00
Adam 9021b9a600 http-service: add cache control to item price 2018-01-10 15:47:54 -05:00
Adam 0fda835422 http-service: disable default cache control provided by spring-security 2018-01-10 15:45:41 -05:00
Adam ad8b2e82d1 http-service: fix item price cache to use fetched time instead of price time
Reduce cache duration to 30 minutes
2018-01-10 11:44:56 -05:00
Adam 05dc2eb39e Consistently capitalize RuneLite 2018-01-07 17:25:48 -05:00
UniquePassive 5cf24a8f83 Add world types 2018-01-06 19:54:25 -05:00
Adam 82d277a8a5 cache: split cache client and server into their own projects
Split handshake and update protocol also into their own projects
2017-12-28 21:15:01 -05:00
Tomas Slusny 4660bb3739 Fix OkHttp connection leaks on connection error
When request fails, entire response needs to be wrapped in try with
resources in order to close the connection properly and not only
response body.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2017-12-22 02:05:28 +01:00
Adam 033cf3bb01 cache: split loading archive files from archive loading
Also no longer store archive contents in memory and instead read it from
storage on demand.
2017-12-17 18:36:05 -05:00
Adam 7b66528694 cache dao: fix findMostRecent() to sort by revision properly 2017-11-10 11:28:39 -05:00
Unknown 09f7cebedb http-service: Fix capturing the whole of dot-delimited keys 2017-10-15 00:04:33 +02:00
Adam 3414e27bd6 account service: use common gson 2017-09-28 22:59:49 -04:00
Adam 58b34d0fc0 xtea: validate submitted keys and make them not unique per revision 2017-09-28 19:28:42 -04:00
Adam f1bc016cf9 cache: use the most recent cache instead of the archive with the highest revision, which isn't always reliable 2017-09-28 19:22:56 -04:00
Adam 16aff43607 http-service: disable csrf protection which got enabled from the cache security manager 2017-09-28 19:22:08 -04:00
Adam 7ce893af7b cache: store index and archive crcs, and check them for updates too
Switch archive storage to CAS as sometimes archives change content without changing revision
2017-09-24 15:44:16 -04:00
Adam 714547e1bf cachedao: use prepared statement for finding files in archive 2017-09-21 18:00:21 -04:00
Adam 76b2d36704 cache: netty-ize client and server 2017-09-17 13:34:54 -04:00
Julian Nowaczek b12bd04764 Hiscore feature expansion (#152)
* Add remaining Hiscore parameters to HiscoreSkill

* Add remaining Hiscore parameters to HiscoreResult

* Add remaining Hiscore parameters to HiscoreResultBuilder

* Add new Hiscore panel icons (from offical Hiscore website, so they don't match very well) and subpanel for Clue Scrolls, Bounty Hunter - Hunter, Bounty Hunter - Rogue, and Last Man Standing

* Add logic to catch unranked hiscores and display them properly. Not currently checking for combat level calculations, but other cases should be covered.

* Make HiscoreService and HiscoreClient aware of different hiscore endpoints

* Add Spring Editor to convert path variable String to enum, add pretty versions of HiscoreEndpoint names, add new icons for endpoint selection

* Fix HiscoreEndpoint.valueof failing silently and preventing lookup, update HiscoreService tests, add Hiscore endpoint selection buttons to HiscorePanel

* Replace HiscorePanel skill icons with smaller versions from the official hiscore website

* Fix details listing rank instead of experience

* Fix details listing rank instead of experience, fix skill panels not being cleared when selecting a different hiscore category, make HiscoreService respond 404  when a Hiscore entry is not found instead of 500.

* Fix skill panels not being cleared when selecting a different hiscore category, make HiscoreService respond 404  when a Hiscore entry is not found instead of 500.

* Revert changing RuneliteAPI base URL, those changes should not have been committed (local testing only)

* Add ClueScrollAll and ClueScrollMaster to HiscoreService tests.

* Style cleanup and relocate NotFoundException to http-service package

* Use relative path for small skill icons

* Move Jagex Hiscore urls from HiscoreService to HiscoreEndpoint

* Create new util package in http-service for common exceptions and Spring converters, clean up HiscoreService by streamlining error handling and removing methods for old unit test

* Change HiscoreService unit test to use new HiscoreTestService subclass which handles setting the test URL

* Change HiscoreEndpoint hiscoreUrls to HttpUrl instead of String

* Cleanup formatting, remove unused http-service exception

* http-api: cleanup HiscoreEndpoint
2017-09-16 16:41:11 -04:00
Adam 744f912d1a http-service: update cache storage 2017-09-11 17:08:43 -04:00