-
Notifications
You must be signed in to change notification settings - Fork 1
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: Implement Search API for cozy-dataproxy-api #1279
Conversation
f3aeba5
to
f50d62d
Compare
f50d62d
to
11582fc
Compare
7a324ba
to
1322de5
Compare
package.json
Outdated
@@ -70,6 +72,7 @@ | |||
"cozy-realtime": "^5.6.2", | |||
"date-fns": "2.29.3", | |||
"events": "^3.3.0", | |||
"flexsearch": "^0.7.43", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think flexsearch and comlink are necessary here? There are both dependencies from cozy-dataproxy-lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, I don't remember why I added them, fixed here
Love how simple this looks 😄 |
"cozy-client": "^52.0.0", | ||
"cozy-clisk": "^0.38.1", | ||
"cozy-dataproxy-lib": "^2.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be 2.4.0 I assume? To get cozy/cozy-libs#2697
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not needed, 2.4.0 only impacts the DataProxyProvider that is hosted in web cozy-apps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, my bad
11582fc
to
77c1030
Compare
For some reasons, the ReactNative API fails to resolve `cozy-dataproxy-lib/api` path so we must use `/dist` version instead On the opposite, Jest will fail to resolve the `/dist` version so we cannot mock cozy-dataproxy-lib To fix this, we wrap the imports in a local file so we can mock this local file in Jest
In cozy/cozy-libs#2697 we enabled cozy-apps to use the Flagship app as a DataProxy provider
This PR is responsible to implement DataProxy features in the Flagship app and to declare that it those features are available