Commit Graph

134 Commits

Author SHA1 Message Date
Rsl1122 43a43b604c api 0.0.6: Query API
Affects issues:
- #1117
2019-07-28 11:22:32 +03:00
Rsl1122 45da64e88f 'showInPlayerTable' parameter for Providers
for BooleanProvider, DoubleProvider, PercentageProvider, NumberProvider,
StringProvider annotations.
When the parameter is set to 'true' the value from the Provider is shown
on a table alongside players.

Capability DATA_EXTENSION_SHOW_IN_PLAYER_TABLE added
2019-05-12 11:13:39 +03:00
Rsl1122 6d788ba61a Added NotReadyException to DataExtension API (0.0.5) 2019-05-10 14:21:52 +03:00
dependabot[bot] 40b531b3da Bump com.jfrog.bintray from 1.8.1 to 1.8.4 in /Plan (#1024)
Bumps com.jfrog.bintray from 1.8.1 to 1.8.4.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-01 10:59:16 +03:00
Rsl1122 71250c3d65 JSON parser for player table data 2019-04-30 18:36:50 +03:00
Risto Lahtela 1dcae30d67
[Merge][#638] Plan API 0.0.4, Tables for DataExtensions (#1010) 2019-04-14 10:31:30 +03:00
Rsl1122 e18bf38637 Added a CapabilityService to api module 2019-04-07 13:45:44 +03:00
Rsl1122 9b29edd16e Fix some code smells 2019-03-31 14:20:10 +03:00
Rsl1122 bb2be54604 More flexible definition of calling Extension methods 2019-03-31 12:12:59 +03:00
Rsl1122 ffce4c9e32 Removed update booleans from PluginInfo 2019-03-31 11:42:27 +03:00
Rsl1122 001b5a6cc7 Fixing some new code smells:
Critical:
- String literal duplication fixed in a few places
- Cognitive complexity reduced in BooleanProviderValueGatherer

Major:
- Called Optional#isPresent before accessing value
  16 instances in ProviderTransactions
- private constructor to Extension tables
- Missing deprecated tags to deprecated plugin tab stuff
- Unused class variable removal
- Throw dedicated exceptions in ServerServerInfo
- Unused method removal

Minor:
- Renamed 'API' field to 'service' in ExtensionService
- Unused variable removal
2019-03-27 14:30:53 +02:00
Rsl1122 47a6a9b2aa Transaction for removing unsatisfied Conditional data:
This is one of the most complex queries I have made.

- Select all fulfilled conditions for all players (conditionName when
  true and not_conditionName when false)
- Left join with player value & provider tables when uuids match, and
  when condition matches a condition in the query above.
- Filter the join query for values where the condition did not match
  any provided condition in the join (Is null)
- Delete all player values with IDs that are returned by the left join
  query after filtering

In addition:
- Added test for the transaction
- Added extension data removal to RemoveEverythingTransaction
- Added unregister method to ExtensionService
2019-03-26 12:22:57 +02:00
Rsl1122 f73cef8587 Bump extension API to 0.0.2 2019-03-24 15:53:20 +02:00
Rsl1122 0be153d03e Added booleans to PluginInfo for controlling method calls. 2019-03-24 15:52:32 +02:00
Rsl1122 600e90873e Added Conditional#negated 2019-03-24 15:34:58 +02:00
Rsl1122 2b620f97f1 Added BooleanProvider#hidden 2019-03-24 15:34:45 +02:00
Rsl1122 099330ebd7 DataExtension API player page plugin tab generation 2019-03-24 12:28:13 +02:00
Rsl1122 a514e29e78 getByName to Extension enums 2019-03-23 13:06:31 +02:00
Rsl1122 e8da008538 Added 'extensions' module:
- Module is in charge of registering built in DataExtensions
- This is done via ExtensionRegister
2019-03-20 13:37:56 +02:00
Rsl1122 48e65a60c8 ExtensionService implementation 2019-03-18 15:04:53 +02:00
Rsl1122 dead33f78c Interface for registering DataExtensions 2019-03-18 14:52:23 +02:00
Rsl1122 c5b28fe3f9 Storage of plugin info, icon and tabs of DataExtension 2019-03-17 11:56:33 +02:00
Rsl1122 b52d113e2e Provider Extraction + priority to Providers:
Implemented methods for extracting each kind of Provider annotation
related method information to a DataProvider.

DataProviders required some duplicate code due to type erasure of the
parameter class.

----

Added Display-priority to Providers, highest value is placed top most.

InvalidateMethod annotations are now extracted.
2019-03-14 16:53:05 +02:00
Rsl1122 a52954dbb8 Method names used as provider identifiers 2019-03-13 10:50:54 +02:00
Rsl1122 245c083237 Refactored ExtensionExtractor, Added Group parameter 2019-03-11 12:30:21 +02:00
Rsl1122 aa8fe70e1f Validation class for annotations 2019-03-06 17:56:47 +02:00
Rsl1122 98847a5b71 Retention and Target to Providers 2019-03-06 16:54:41 +02:00
Rsl1122 b396602135 Added StringProvider 2019-03-06 16:40:55 +02:00
Rsl1122 605f28f12c Added PercentageProvider 2019-03-06 16:36:40 +02:00
Rsl1122 1fb62cc1cc Added DoubleProvider 2019-03-06 16:32:34 +02:00
Rsl1122 c6f3d7b59b Added NumberProvider 2019-03-06 16:30:12 +02:00
Rsl1122 53216a4e1c Added BooleanProvider annotation 2019-03-06 16:22:10 +02:00
Rsl1122 5f2e097ac3 Information annotations for DataExtension API 2019-03-03 21:21:04 +02:00
Rsl1122 b4a3feddf5 Plan api module 2019-03-03 21:21:04 +02:00