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

Find apps suggestions in the service #1125

Merged
merged 12 commits into from
Apr 5, 2019
Merged

Find apps suggestions in the service #1125

merged 12 commits into from
Apr 5, 2019

Conversation

drazik
Copy link
Contributor

@drazik drazik commented Apr 2, 2019

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.

@drazik drazik requested review from kosssi and ptbrowne as code owners April 2, 2019 12:14
@@ -2,6 +2,7 @@ module.exports = function(api) {
api.cache(true)

return {
sourceType: 'unambiguous',
Copy link
Contributor

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) {
Copy link
Contributor

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.

@ptbrowne ptbrowne self-requested a review April 5, 2019 07:21
Copy link
Contributor

@ptbrowne ptbrowne left a 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

@ptbrowne ptbrowne force-pushed the konnectors-candidates branch from ea8b923 to c8cd1d7 Compare April 5, 2019 08:54
@ptbrowne ptbrowne force-pushed the konnectors-candidates branch from 8b3fab7 to 23e8091 Compare April 5, 2019 09:20
@ptbrowne ptbrowne merged commit 8fb1d06 into master Apr 5, 2019
@ptbrowne ptbrowne deleted the konnectors-candidates branch April 5, 2019 09:32
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