37 Commits

Author SHA1 Message Date
Haroen Viaene
dbe03b6cfd chore: fix lint 2019-10-21 11:53:42 +02:00
Haroen Viaene
a834da1367
feat(settings): allow disabling overriding (#118)
* feat(settings): allow disabling overriding

* test(settings): add new _fancy_ tests

* docs(settings): document "false" behaviour

* test: five normal thingie

* fix(tests): correct default value

* test: try thawing the value

* fix: don't use default value unless 'nil'

I don't see how to test this

* Update options.md

* Update configurator.rb

* Update indexer.rb

* update tests

* Update configurator_spec.rb

* test me travis?

* Update lib/jekyll/algolia/indexer.rb
2019-10-21 10:58:13 +02:00
Sylvain UTARD
85909b55e9 Fixed rubocop 2019-09-15 08:46:08 -07:00
Pixelastic
44701ef764 style(rubucop): Fixing styling for latest Rubocop
Apparently, new lines are requires after guard clauses now. I like it.
2018-12-07 17:34:01 +01:00
Pixelastic
d844281e39 test(fix): Fix failing tests and watch script 2018-04-26 18:38:33 +02:00
Pixelastic
e5b2588f45 fix(object_id): Actually check for index .empty? instead of exist 2018-04-26 17:16:18 +02:00
Pixelastic
f0e120b264 fix(index): Supports deleting indices through the Dashboard
An index deleted through the Dashboard was not previously correctly
re-created if the object_id index existed.
2018-04-26 16:59:25 +02:00
Pixelastic
16298a0c64 feat(shrinker): Try to shrink records to fit under the 10Kb limit 2018-04-26 16:20:20 +02:00
Pixelastic
66f084fe2b test(indexer): Add integration tests for the dedicated index 2018-04-04 13:44:21 +02:00
Pixelastic
40c113d587 test(indexer): Adding tests for the dedicated index 2018-04-03 19:12:48 +02:00
Pixelastic
f8c656a802 fix(progressbar): Disable progressbar in verbose mode 2018-03-15 18:44:15 +01:00
Pixelastic
95f772d7f6 feat(progressbars): Adding render/extract/push progress bars 2018-03-15 16:13:01 +01:00
Pixelastic
4793b54aeb feat(settings): Add a way to force the update of index settings 2018-03-15 14:38:35 +01:00
Pixelastic
f6c69e49fb test(indexer): Fix leaking double 2018-03-12 14:08:35 +01:00
Pixelastic
7783b79e73 feature(settings): Detect when features are changed from outside 2018-03-08 16:00:12 +01:00
Pixelastic
0d725689a1 fix(batch): Delete records before adding new ones in batches 2018-02-28 18:47:55 +01:00
Pixelastic
d6696049af test(run): Fixing test 2018-01-30 18:06:17 +01:00
Pixelastic
184bf1e0ca style(test): Remove focused test 2018-01-30 18:03:48 +01:00
Pixelastic
92985627b2 feature(settings): Do not overwrite user settings if not needed 2018-01-30 17:58:39 +01:00
Pixelastic
f691bac7fc refactor(indexer): Split update_records and run 2018-01-30 16:30:00 +01:00
Pixelastic
531c90777b Make diff batches the default indexing mode 2018-01-30 16:30:00 +01:00
Pixelastic
6d0b567e7c fix(copy): Do not copy the index if source does not exist 2018-01-30 16:29:27 +01:00
Pixelastic
c95eb99574 feat(indexing): Making atomic mode consume less operations 2018-01-30 16:29:27 +01:00
Pixelastic
16a0102d60 fix(date): Make sure collections have a nil date if none defined 2017-12-22 12:04:57 +01:00
Pixelastic
86e1e59956 fix(extractor): Update record objectID when updated from hook 2017-12-19 12:40:54 +01:00
Pixelastic
f27733490d fix(error): Catch errors when pushing to non-existing app in atomic 2017-11-29 17:45:29 +01:00
Pixelastic
3422ffa69f feat(log): Adding "nothing to index" message in diff mode 2017-11-29 17:17:44 +01:00
Pixelastic
1f8ee17433 feat(log): Do not delete an empty list of records 2017-11-29 17:09:39 +01:00
Pixelastic
04713474e8 chore(rubocop): Auto-fix Rubocop errors for Ruby 2.3
Original idea coming from https://github.com/algolia/jekyll-algolia/pull/18
2017-11-28 14:44:36 +01:00
Pixelastic
231c17148a Correctly applying the _all hook only once on all records 2017-11-17 20:33:01 +01:00
Pixelastic
9240118fe8 Display an error if no records can be indexed 2017-11-17 18:55:23 +01:00
Pixelastic
17f456c463 Add custom User-Agent 2017-11-15 13:47:48 +01:00
Pixelastic
7812be9cb4 Adding verbose tests 2017-11-15 12:11:57 +01:00
Pixelastic
7a33daa677 Add dry_run mode 2017-11-15 11:21:27 +01:00
Pixelastic
7112f10c5c Add tests for the atomic indexing mode 2017-11-14 18:44:28 +01:00
Pixelastic
8595bda487 Add check for indexing_mode 2017-11-14 17:05:49 +01:00
Pixelastic
02adfc3fc1 Adding diff indexing mode + tests 2017-11-14 16:47:26 +01:00