Skip to content

Commit

Permalink
doc: Update TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
nstCactus committed Dec 7, 2021
1 parent 68792c5 commit 33782a3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# TODO

## IndexableXXXQuery

Create IndexableXXXQuery classes (based on Craft ElementQueries) to get rid of
the following methods:
- `getIndexableElementModels()`
Expand All @@ -16,3 +17,30 @@ They should have:
- a static `find()` method that return a new instance of the XXXQuery class
with prepopulated parameters (blacklisted sections, status, non-empty URL…)
- `one()` & `all()` instance methods to get `IndexableElementModel` instances


## Add the following CP settings

- `isEntryIndexingEnabled`: defaults to `true`, allows to disable the indexing
of entries
- `isAssetsIndexingEnabled`: defaults to `true`, allows to disable the
indexing of assets
- `isProductsIndexingEnabled`: defaults to `true`, allows to disable the
indexing of products
- `isDigitalProductsIndexingEnabled`: defaults to `true`, allows disabling the
indexation of digital products
- `blacklistedProductTypes`: defaults to `[]`, allows disabling indexation of
the product types
- `blacklistedDigitalProductTypes`: defaults to `[]`, allows disabling
indexation of the given digital product types


## Refactor the following settings

- `blacklistedEntryTypes`: must include the handle of the section
(e.g. `section:entryType`) as entry type handles are only unique in a given
section
- `contentExtractorCallback`: Use an event instead
- `elementContentCallback`: Use an event instead
- `resultFormatterCallback`: Use an event instead
- `extraFields`: Use an event instead

0 comments on commit 33782a3

Please sign in to comment.