Commit Graph

112 Commits

Author SHA1 Message Date
Michael McCaskill 02dc9842f8 Add mock ScheduledExecutorService 2016-10-11 13:02:27 -04:00
Michael McCaskill 9111e5570d [CBN-360] - Refresh every 12 hours 2016-10-10 23:05:05 -04:00
Michael McCaskill f3e28617ba [CBN-360] - Handle re-indexing if needed 2016-10-10 22:34:11 -04:00
Michael McCaskill bcf0eb6a09 Use GeneratedPluginData
Getting ready to use the createdAt to determine if reindexing should
happen.
2016-10-10 15:51:38 -04:00
Michael McCaskill cf4559405b Save file to target/ 2016-10-05 19:40:36 -04:00
Michael McCaskill c30a74707d Implement ConfigurationService
Extracts getting plugin data into a separate service so it can be mocked
in tests and it's just generally good practice.
2016-10-05 19:35:44 -04:00
Michael McCaskill 57e9419645 [CBN-360] - Download data rather then bundle it. 2016-10-05 16:11:33 -04:00
Michael McCaskill 19c15ad99d Add javadoc 2016-09-25 08:48:36 -04:00
Michael McCaskill 5b0c9452df Remove 'junk' category 2016-09-24 10:38:37 -04:00
Michael McCaskill 81417a1513 New data generation 2016-09-24 10:38:17 -04:00
Michael McCaskill 00976fcc23 Fix empty results return 2016-09-24 10:36:48 -04:00
Michael McCaskill 0236f2c88e Generate new data 2016-09-19 08:55:38 -04:00
Michael McCaskill efd68d4c47 Add categories, labels and requiredCore to search 2016-08-30 14:08:32 -04:00
Michael McCaskill 68a175229a Wrap bool shoulds in bool must
Since minimum_should_match is deprecated. This basically means that at
least one of the search criteria must be a positive match.
2016-08-30 13:58:54 -04:00
Michael McCaskill 1d2d3da30c Fix test 2016-08-25 16:29:40 -04:00
Michael McCaskill 6abc879e23 Change SortBy.INSTALLS to INSTALLED 2016-08-25 13:47:05 -04:00
Michael McCaskill d9cba6b3c4 Matching excerpt is a should
Per Daniel Beck this is optional. One specific case is for 'mock' wasn't
picking up the Mock Security Realm plugin. Apparently it doesn't mention
'mock' in the excerpt.
2016-08-24 18:21:22 -04:00
Michael McCaskill abca120aed Add maintainers.id to filter and query 2016-08-24 18:14:02 -04:00
Michael McCaskill d4dd16fd19 Authors to maintainers 2016-08-24 18:11:32 -04:00
Michael McCaskill b9ff47002a Consistent usage of maintainers
Switch developers/authors to maintainers, developerId to id
2016-08-24 17:29:06 -04:00
Michael McCaskill 3dfd2aae2f Use developerId vs name 2016-08-24 16:59:40 -04:00
Michael McCaskill 2949244be2 Populate developer.developerId
If no developerId is given, use name. If no name is given use email.
2016-08-24 14:49:19 -04:00
Michael McCaskill 4adac8c078 Add developers.name to query 2016-08-23 12:54:29 -04:00
Michael McCaskill e8d4cae40c Rename stats.lifetime to stats.currentInstalls
I thought the last entry in the stats.installations represented a
'lifetime' count of the number of installs, which therefore never went
down. This is incorrect as it represents the current number of installs.
2016-08-23 10:38:59 -04:00
Michael McCaskill 5df68a661e Add /versions endpoint 2016-08-23 10:15:14 -04:00
Michael McCaskill e10a37dfd0 Clean up imports 2016-08-22 21:32:32 -04:00
Michael McCaskill 2bf361b4fe Add /plugins/trend 2016-08-22 21:31:10 -04:00
Michael McCaskill f5b0bc67cf Prefix hash tags with original url 2016-08-19 09:49:42 -04:00
Michael McCaskill 7d61e219b1 Use Guava Cache for wiki content
While Elasticsearch supports TTL, it's deprecated as of 2.0 and it's
only on a document and not fields.
2016-08-19 09:12:55 -04:00
Michael McCaskill 8bf04df1b0 Import clean up 2016-08-18 14:41:41 -04:00
Michael McCaskill 85a94d9556 Rename method 2016-08-18 10:00:02 -04:00
gusreiber 6f7a2e5b62 [CBN-291] cleaning up installed isntead of download 2016-08-17 21:18:56 -07:00
Michael McCaskill b1fc1941eb Store wiki content
Storing as actual HTML without indexing for two reasons:
1. The front end needs the actual markup, not plain text. Otherwise
what's the point in scrapping the wiki content
2. If we add HTML content for search we wouldn't use the markup anyway
2016-08-16 16:07:24 -04:00
Michael McCaskill 69d6376269 Enable CORS
I think it's better to use a container agostic approach.
2016-08-10 17:20:59 -04:00
Michael McCaskill 486d3b39a6 Add tests for WikiService, refactor getWikiContent 2016-08-05 16:35:22 -04:00
Michael McCaskill 9299530647 Remove confluence installation charts table 2016-08-05 09:59:24 -04:00
Michael McCaskill b36358ba4a Add WikiService 2016-08-05 09:52:27 -04:00
Michael McCaskill 0b50345e9c Rename DatastoreException to ServiceException 2016-08-05 09:21:32 -04:00
Michael McCaskill 595f477560 Rename it since it's really an integration test 2016-08-05 09:19:49 -04:00
Michael McCaskill 70bfdf9db1 Create services package 2016-08-05 09:17:23 -04:00
Michael McCaskill 41632e0161 Add wiki content to /plugins call 2016-08-04 15:07:18 -04:00
Michael McCaskill d614bf83a1 Generate plugin data using data model
It's a good way to ensure that if model changes then the generation
process of the data is changed.
2016-08-04 14:41:32 -04:00
Michael McCaskill 6c8e1efaed Fix sort by updated 2016-08-03 17:14:23 -04:00
Michael McCaskill b370938901 Add gzip compression/decompression of plugin data 2016-08-03 17:03:25 -04:00
Michael McCaskill 9e0d8053a9 Add SortBy.TITLE 2016-08-03 13:22:54 -04:00
Michael McCaskill 4fb1175491 Fix labels bug 2016-08-03 13:14:11 -04:00
Michael McCaskill b65d213bd3 Refactor search filtering
Per Gus each filter is OR'd within itself but AND with other criteria.
Also support comma delimited authors, categories and labels.
2016-08-03 10:46:46 -04:00
Michael McCaskill 1010aa21b8 Fix duplicate categories bug 2016-08-02 21:46:26 -04:00
Michael McCaskill ea0e2369ca Fix sort by name 2016-08-02 15:03:34 -04:00
Michael McCaskill a1500ffcef More size to limit 2016-08-02 15:02:05 -04:00