Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Move SearchEngine to cozy-dataproxy library #10

Merged
merged 6 commits into from
Nov 6, 2024

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Nov 5, 2024

In cozy/cozy-libs#2603 we introduced a new cozy-dataproxy library where the SearchEngine has been moved

This commit is responsible to remove all Search related code from this project and instead call the new cozy-dataproxy library's API

Related PR:

Ldoppea added a commit to cozy/cozy-home that referenced this pull request Nov 5, 2024
In cozy/cozy-libs#2603 we renamed some of the API's attributes for
better readability

This commit adapt to those changes and handle retrocompatibility until
the change is deployed in cozy-web-data-proxy

Related PR: cozy/cozy-libs#2603
Related PR: cozy/cozy-web-data-proxy#10
@@ -33,6 +39,8 @@ const dataProxy: DataProxyWorker = {
doctypes: [FILES_DOCTYPE, CONTACTS_DOCTYPE, APPS_DOCTYPE],
initialSync: true,
periodicSync: false,
syncDebounceDelayInMs: REPLICATION_DEBOUNCE,
syncDebounceMaxDelayInMs: REPLICATION_DEBOUNCE_MAX_DELAY,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cozy/cozy-client#1553 must be merged first and new version included in this commit

Ldoppea added a commit to cozy/cozy-home that referenced this pull request Nov 6, 2024
In cozy/cozy-libs#2603 we renamed some of the API's attributes for
better readability

This commit adapt to those changes and handle retrocompatibility until
the change is deployed in cozy-web-data-proxy

Related PR: cozy/cozy-libs#2603
Related PR: cozy/cozy-web-data-proxy#10
In cozy/cozy-libs#2603 we introduced a new cozy-dataproxy library where
the SearchEngine has been moved

This commit is responsible to install the new library, the code
migration will be done in the following commit

Related PR: cozy/cozy-libs#2603
In cozy/cozy-libs#2603 we introduced a new cozy-dataproxy library where
the SearchEngine has been moved

This commit is responsible to remove all Search related code from this
project and instead call the new cozy-dataproxy library's API

Related PR: cozy/cozy-libs#2603
In cozy/cozy-client#1553 we introduced a new
`startReplicationWithDebounce()` method that will be used by the
SearchEngine from cozy-dataproxy

We want to fine tune this method's behavior by configuring its debounce
timings

By doing so, all realtime events on searched doctypes will trigger a
replication with a 30s debounce and in the case of many multiple
realtime events, the maximum debounce would be of 10min

Related PR: cozy/cozy-client#1553
`yarn test` requires at least one test to pass but we removed all tests
that were related to Search
`cozy-pouch-link` has been upgraded to `50.3.1` in order to retrieve
`startReplicationWithDebounce()` method implementation

`cozy-client` has been upgraded to `50.3.1` in order to retrieve some
typing fixes

Related PR: cozy/cozy-client#1553
Related PR: cozy/cozy-client#1556
@Ldoppea Ldoppea merged commit 8dd23b3 into main Nov 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants