Commit Graph
506 Commits
Author SHA1 Message Date
Adam b50b3fc07b config service: return an empty config if no config is found
Returning an empty body breaks the client as it deserializes the
response to null.
2019-03-21 21:27:07 -04:00
Runelite auto updater 7af89342b4 [maven-release-plugin] prepare for next development iteration 2019-03-21 12:40:20 +00:00
Runelite auto updater 9979cf6818 [maven-release-plugin] prepare release runelite-parent-1.5.17 2019-03-21 12:40:14 +00:00
Adam 4ccefd23a4 config service: convert backing database to use mongodb
This is a much more natural fit for the config service which is really a
key value store, and has been abusing SQL. This will let us expand the
config stuff later to support profiles and per-account config values.

I have left in the SQL code for now so config changes are still being
sent there in the event of catastrophic mongodb failure.
2019-03-20 18:45:31 -04:00
Nathaniel Ngo 84009901cb Log whole HTTP response instead of just message (#8126)
Response message is usually either empty or not useful.

Closes #8042
2019-03-19 01:58:46 +01:00
Adam 11993150b3 news service: load news over https
https was not supported before, but it seems to be working now.
2019-03-17 15:33:51 -04:00
Adam b98b7aebb9 travis: add openjdk11
Fix build for Java 11
2019-03-15 22:05:31 -04:00
Adam 5ba8f71b48 Merge pull request #7847 from deathbeam/swagger-static
Add Swagger static document generation
2019-03-14 16:07:17 -04:00
Runelite auto updater a9a63ca732 [maven-release-plugin] prepare for next development iteration 2019-03-14 12:14:08 +00:00
Runelite auto updater c9acdb177f [maven-release-plugin] prepare release runelite-parent-1.5.16 2019-03-14 12:14:00 +00:00
Runelite auto updater ffe9f46021 [maven-release-plugin] prepare for next development iteration 2019-03-07 14:05:24 +00:00
Runelite auto updater 353797561e [maven-release-plugin] prepare release runelite-parent-1.5.15 2019-03-07 14:05:18 +00:00
Lotto 046bdcc3e3 http-service: fix twitter feed links not working with newer theme
When using Twitter's new theme, https://twitter.com/statuses/[tweet_id] style links don't redirect to the tweet in question.

Urls before this change:
https://twitter.com/statuses/1102962117509087234

After this change:
https://twitter.com/OldSchoolRS/status/1102962117509087234
2019-03-05 18:59:04 +01:00
chivesrs 2427f61f37 Enable checkstyle on test sources 2019-03-04 14:56:46 -05:00
Tomas Slusny f91412b33e Migrate Spring unit tests to spring profiles
Instead of replacing configuration with test configuration on classpath,
create test profile and use that.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-04 19:25:54 +01:00
Tomas Slusny 52a862c43b Migrate SpringBootWebApplicationTest to spring profiles
- Instead of replacing configuration with dev configuration on classpath,
create dev profile and use that
- Move common properties to application.yaml

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-04 19:25:23 +01:00
Tomas Slusny 9838ae7e0f Fix SpringBootWebApplication auto-configuration annotation
The exclude is supposed to be on SpringBootApplication annotation,
otherwise IntelliJ Spring plugin errors, and also SpringBootApplication
already contains EnableAutoConfiguration.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-03-04 16:13:39 +00:00
Tomas Slusny 29da9ecdc9 Merge pull request #8027 from deathbeam/redir-https
Change logged-in redir to redirect to HTTPS
2019-03-01 07:03:28 +00:00
Runelite auto updater ce2fcd42d4 [maven-release-plugin] prepare for next development iteration 2019-02-28 12:48:07 +00:00
Runelite auto updater bb31c2e556 [maven-release-plugin] prepare release runelite-parent-1.5.14 2019-02-28 12:47:56 +00:00
Tomas Slusny 4a63f50abc Change logged-in redir to redirect to HTTPS
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-27 20:06:29 +01:00
Tomas Slusny d92f1ccab8 Fix RequestMapping annotations in http-service
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-26 16:22:08 +01:00
Tomas Slusny dc3b89a807 Add Swagger static document generation
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-26 16:21:25 +01:00
Hydrox6 d92db797c3 Add account prompt to the OAuth URL 2019-02-26 15:04:13 +00:00
Adam b86061dc80 http service: remove ws service
This has been unused now for a few releases
2019-02-25 17:38:01 -05:00
Adam e4250c5d3b xptracker service: only update last_updated after hiscores are saved 2019-02-24 17:44:30 -05:00
Adam 3c1da4bb1e http service: disable spring jmx
Multiple api deployments is causing Spring to try to register the
datasources multiple times and is erroring
2019-02-21 08:51:39 -05:00
Runelite auto updater 18167a7782 [maven-release-plugin] prepare for next development iteration 2019-02-21 12:11:57 +00:00
Runelite auto updater ccaa955572 [maven-release-plugin] prepare release runelite-parent-1.5.13 2019-02-21 12:11:50 +00:00
Adam 6186314dbc http service: fix overwriting all default message converters
The previous change to try and force GSON for serialization broke
default message converters such as text/plain. Change to use
extendMessageConverters and remove the Jackson converter instead.
2019-02-18 16:39:34 -05:00
Adam f62e7e3f14 config controller: add test 2019-02-18 16:39:01 -05:00
Adam aa5789b843 config service: split into service and controller 2019-02-18 16:38:36 -05:00
Adam c379e631d5 Merge branch 'spring-datasource' 2019-02-17 18:01:27 -05:00
Adam 38cdbfcb6b http service: use http-api gson instance 2019-02-17 17:59:54 -05:00
Adam c55491cc11 http service: add loottracker controller test 2019-02-17 17:59:54 -05:00
Adam 2a41d88c29 http service: use spring datasource configuration 2019-02-17 17:59:53 -05:00
Tomas Slusny a3d461c516 Merge pull request #7876 from deathbeam/twitter-service-no-not-throw
Log only exception message on feed lookup failures
2019-02-17 03:11:29 +00:00
Adam fe2eba06a7 http service: use gson instead of jackson for json serialization
This fixes deserailization of the loot timestamps for the loot tracker,
and maybe other things. Note this does not use the same Gson instance as
http-api as Spring creates its own Gson, however they are both default
Gson instances.
2019-02-16 21:14:17 -05:00
Adam b855371d8b xptracker: treat players with rank -1 as unranked 2019-02-16 19:02:50 -05:00
Adam 5a6485326a Merge pull request #7886 from Adam-/xptracker-limit
xptracker: limit how often the same players are looked up
2019-02-16 17:51:33 -05:00
Tomas Slusny e8019d0517 Null-check cache when getting items in http service
It is not very useful exception and cache entry is null-checked
everywhere else. Replace the exception with simple warning in logs.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-16 05:52:04 +01:00
Tomas Slusny 60e17c2ac1 Log only exception message on feed lookup failures
Seeing same exceptions over and over again is not very useful, mainly
when their stacktraces are not useful too.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-16 04:43:03 +01:00
Adam bc0ec093dc xptracker: limit how often the same players are looked up
Use player rank to set how often the same player is allowed to be looked
up. Replace the ConcurrentLinkedDeque with a synchronized ArrayDeque
which has a constant time size().
2019-02-15 21:04:42 -05:00
Runelite auto updater 1b50e24738 [maven-release-plugin] prepare for next development iteration 2019-02-14 11:54:18 +00:00
Runelite auto updater c012db502e [maven-release-plugin] prepare release runelite-parent-1.5.12 2019-02-14 11:54:12 +00:00
Tomas Slusny 0529d5d144 loottracker service: include time in loot record
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-13 23:51:36 +01:00
Adam b008cf33a6 Merge pull request #7834 from deathbeam/add-loot-tracker-offset
Add offset to loot tracker API
2019-02-12 18:01:14 -05:00
Adam b8866c01d8 Merge pull request #7773 from Adam-/ge2
Add GE history tracker
2019-02-12 18:00:44 -05:00
Adam da67381ba7 Add GE history tracker
Add http service to log completed trades, and submit trades when
completed.
2019-02-12 17:51:59 -05:00
Tomas Slusny d2713c2138 Add offset to loot tracker API
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2019-02-12 22:49:01 +01:00