-
Notifications
You must be signed in to change notification settings - Fork 26
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
Find apps suggestions in the service #1125
Conversation
@@ -2,6 +2,7 @@ module.exports = function(api) { | |||
api.cache(true) | |||
|
|||
return { | |||
sourceType: 'unambiguous', |
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.
Link to doc : https://babeljs.io/docs/en/options#sourcetype
sourceType
Type: "script" | "module" | "unambiguous"
Default: "module"
"script" - Parse the file using the ECMAScript Script grammar. No import/export statements allowed, and files are not in strict mode.
"module" - Parse the file using the ECMAScript Module grammar. Files are automatically strict, and import/export statements are allowed.
"unambiguous" - Consider the file a "module" if import/export statements are present, or else consider it a "script".
On avait quoi comme problème ?
return this.queryAll({ slug }).then(head) | ||
} | ||
|
||
static linkTransaction(suggestion, transaction) { |
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 know why but it seems weird to have link
here where the original suggestion is not modified.
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.
My remarks are not blocking. LGTM
ea8b923
to
c8cd1d7
Compare
It will be used by service to fetch transactions for which we have to find apps suggestions
We need it in services because we have mixed ES Modules and CommonJS modules. See https://babeljs.io/docs/en/options#sourcetype
When using `bulkSave`, we have "The database could not be created, the file already exists" errors
This way Document from cozy-doctypes automatically add cozyMetadata.createdByApp
8b3fab7
to
23e8091
Compare
This add a new step to the onOperationOrBillCreate service. In this step, we look for available connectors that the user didn't installed but that can be useful for him, based on his banking transactions.
We create one
io.cozy.apps.suggestions
document for each connector we want to suggest. Each of these documents have relationships to the transactions that made us think this connector could be useful for the user.You can find more on the
io.cozy.apps.suggestions
documentation.