Commit Graph

2535 Commits

Author SHA1 Message Date
Risto Lahtela
06cb1f9cba
[#825] Create prepareTestEnv.sh
Script will install chromedriver
2018-12-25 10:58:29 +02:00
Rsl1122
3bdb85312c Test & fix for FileWatcher
- Test for modification listening
- Fix for Path resolution when calling a WatchedFile
2018-12-24 22:44:01 +02:00
Rsl1122
88f8653cb8 Removed remnants of the old '/network' server box requests
- Removed /info/cachenetworkpagecontentrequest end-point
- Removed CacheNetworkPageContentRequest
- Removed NetworkPageContent
2018-12-24 22:44:01 +02:00
Rsl1122
6c72592120 [#839] Network page now displays "No Servers" again
- Fixes a bug where tabs are out of place on /network page if
  no servers are connected to the proxy Plan server.
2018-12-24 22:44:01 +02:00
dependabot[bot]
862439000a
Bump nucleus-api from 1.7.0-S7.1 to 1.8.0-S7.1 in /PlanPluginBridge (#858) 2018-12-24 12:25:52 +00:00
Rsl1122
187e4b8ce1 Tests for SettingsTable
- Fixed ConfigNode equals method
- Fixed SettingsTable SQL
2018-12-24 13:26:08 +02:00
Rsl1122
c68c95a608 Removed NetworkSettings and ServerSpecificSettings 2018-12-24 12:01:41 +02:00
Rsl1122
5c6442fdb2 Fixed regression issues from new code:
- Fixed StackOverFlow from ConfigNode equals using parent
- Fixed enable fail due to call to ServerInfo#getServerUUID in constructor
2018-12-24 11:45:23 +02:00
Rsl1122
b827e83dd5 Added SettingsManagers to ConfigSystems 2018-12-24 11:31:26 +02:00
Rsl1122
4791657439 [#777] Added ServerSettingsManager
- This manager updates config if database has changes, and updates the
  config in database if the file is modified.
- equals and hashcode to ConfigNode
2018-12-24 11:25:17 +02:00
Rsl1122
0acf54eed5 [#777] Added NetworkSettingManager
- This manager updates config in database if a server config file is
  updated on proxy server, and updates the config in database if the
  file is modified.
- Added a setting for the update check delay
2018-12-23 22:52:26 +02:00
Rsl1122
cfc7f25a07 Config operations 2018-12-23 22:10:54 +02:00
Rsl1122
60b771e005 Settings table store and read methods 2018-12-23 21:59:50 +02:00
Rsl1122
bf5cc170e5 Added a 'plan_settings' table
Columns:
- id (primary key int)
- server_uuid (varchar(39))
- updated (long)
- content (TEXT 65535 characters)

- Added SettingsTable
2018-12-23 21:36:53 +02:00
Rsl1122
940c414f7d Removed 'plan_transfer' table from the database
- Removed TransferTable
- Added a TransferTableRemovalPatch
- Removed TransferOperations (and Database#transfer)
- Removed SQLTransferOps
- Removed UnsupportedTransferDatabaseException
- Removed uses in NetworkSettings and related tests
2018-12-23 15:20:42 +02:00
Rsl1122
f4db11f2fa Deprecated PlanAPI#fetchFromPlanDB:
- Added a PlayerContainer wrapper and a fetchPlayerContainer method
- Added a ServerContainer wrapper and a fetchServerContainer method
- Added a fetchServerUUIDs method
2018-12-22 22:26:06 +02:00
dependabot[bot]
5234ff46fd
Bump dagger-compiler from 2.19 to 2.20 in /Plan (#855) 2018-12-21 13:49:37 +00:00
dependabot[bot]
3e2b64f57e
Bump dagger from 2.19 to 2.20 in /Plan (#854) 2018-12-21 13:40:29 +00:00
Rsl1122
a64336803f Bunch of things:
- IntelliJ Inspection fixes.
- Removed some unused code
- Added ConfigNode#getStringMap
- Removed usages of ConfigNode#getChildren
2018-12-20 13:50:40 +02:00
Rsl1122
f39e1cd95c Removed Serializer 2018-12-20 13:24:36 +02:00
Rsl1122
c985a9536f Added IntelliJ IDEA annotation configuration plugin to gradle 2018-12-20 12:47:30 +02:00
Rsl1122
a990b846fe Added Gradle directories to travis cache 2018-12-19 19:36:26 +02:00
Rsl1122
57d45940ca Updated sonarqube plugin 2018-12-19 19:30:47 +02:00
Rsl1122
4c27343868 Attempt to fix sonar plugin 2018-12-19 19:29:43 +02:00
Rsl1122
36ee6e00db SonarCloud add-on to gradle 2018-12-19 19:24:33 +02:00
Rsl1122
4c7636b0c2 Removed Maven configurations (poms) 2018-12-19 19:14:06 +02:00
Risto Lahtela
1da29faed1
[#831] Finished gradle setup (#847) 2018-12-19 19:10:12 +02:00
Rsl1122
51eb37c382 Fixed gradle shadow issues
Now relocation works, the relocated items were not being depended on
2018-12-19 19:08:07 +02:00
Rsl1122
8e2df1de9b Fixed Gradle build failing, shadow problems remain.
Shadow does not relocate classes in the final jar for some reason, and the final jar is bigger than what is produced by maven
2018-12-18 23:06:47 +02:00
Risto Lahtela
486819cd2e
Update runTests.sh 2018-12-18 21:15:50 +02:00
MicleBrick
65221b1ba9 Add WIP gradle build scripts (#833) by Miclebrick
> Not actually fully functional, but it's a start
2018-12-18 21:13:05 +02:00
Rsl1122
8d199bcdc3 [#845] Added an event that is called when Plan enables.
This includes, but might not be limited to:
- First time the plugin enables successfully
- Plan is reloaded
- Bukkit-BungeeCord setup updates settings
- Plan is enabled after it was disabled

Following events are available:
Bukkit: PlanBukkitEnableEvent
Sponge: PlanSpongeEnableEvent
BungeeCord: PlanBungeeEnableEvent
Velocity: PlanVelocityEnableEvent
2018-12-18 18:01:58 +02:00
Rsl1122
30bce4e365 Made it possible to run tests in parallel by class 2018-12-18 17:16:33 +02:00
Rsl1122
e1e5d526c7 Tests for list write 2018-12-18 16:55:35 +02:00
Rsl1122
3305b46da2 Fixed ConfigReader not reading in UTF-8 2018-12-18 13:11:50 +02:00
Rsl1122
2a950e5ea7 Fixed ConfigReader and ConfigWriter 2018-12-18 12:50:12 +02:00
Rsl1122
81218c968f Fixed to ConfigNode
- Removed some deprecated code usages
- Removed deprecated code from ConfigNode
- Fixed ConfigNode#addNode
- ConfigNode#addNode and #addChild now returns the added node
- If ConfigNode is root #remove now throws exception
- Fixed ConfigNode#moveChild not copying values
- Added ConfigNode#copyAll
- Fixed ConfigNode#getKey(true) returning null.actual.key
- ConfigNode#set(ConfigNode) now overrides values of the node being set.
- Added ConfigNode#isLeafNode for when the node is a leaf node
- Lots and lots of tests for ConfigNode

Still broken because ConfigReader has a bug in it.
2018-12-17 23:05:42 +02:00
dependabot[bot]
9879d9a499 Bump maven-jar-plugin from 3.1.0 to 3.1.1 in /Plan (#846)
Bumps [maven-jar-plugin](https://github.com/apache/maven-jar-plugin) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/apache/maven-jar-plugin/releases)
- [Commits](https://github.com/apache/maven-jar-plugin/compare/maven-jar-plugin-3.1.0...maven-jar-plugin-3.1.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-17 15:25:27 +02:00
Rsl1122
224003029f (BROKEN) Swapped PlanConfig to use the new Config 2018-12-16 19:25:16 +02:00
Rsl1122
2fcb9590e5 New Config code (Untested) 2018-12-16 18:09:21 +02:00
Rsl1122
557fa83177 Sorted system.settings.config package
- Moved ConfigSystem classes to system.settings
- Moved WorldAliasSettings to system.settings.config
- Moved ServerSpecificSettings to system.settings.network
2018-12-16 14:53:12 +02:00
Rsl1122
3629a62fcf Removed @since labels
These labels have not been kept up to date and some might contain
out of date information (Packages have changed etc.)
It is better to not include them than include bad information.
2018-12-16 14:49:43 +02:00
Rsl1122
5dcdd0b9b1 Setting#toString now throws an exception
Setting#toString used to return the String value of the setting, and
since that implementation is no longer present this method should not
be called.
2018-12-16 14:42:48 +02:00
Rsl1122
715111b433 Removed uses of PlanConfig#getString 2018-12-16 14:37:38 +02:00
Rsl1122
bacfa2c181 Removed uses of PlanConfig#getNumber 2018-12-16 14:34:06 +02:00
Rsl1122
f3d201a0b0 Added tests that reveal why some other tests are failing 2018-12-16 11:08:25 +02:00
Rsl1122
4e83fb6f25 Fixed a typo on debug page 2018-12-16 10:34:25 +02:00
Rsl1122
d34c5954b9 [#844] Quoted String no longer double quoted
- 'Something' no longer changed to "'Something'" on config update.
- Added failing tests for rest of the problems.
2018-12-16 00:11:35 +02:00
Rsl1122
114e4f5fb6 Fixed config updater leaving behind old settings
Changed order of the options that were being left behind in the first
update
2018-12-15 17:06:04 +02:00
Rsl1122
7030e86496 Test for default config value validity 2018-12-15 13:14:51 +02:00