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

Add document:upsert #56

Merged
merged 6 commits into from
Jan 5, 2021
Merged

Add document:upsert #56

merged 6 commits into from
Jan 5, 2021

Conversation

Yoann-Abbes
Copy link

What does this PR do?

Add document:upsert API action #55

@@ -445,7 +447,8 @@ class DocumentController extends KuzzleController {
index: index,
collection: collection,
uid: id,
body: body,
body: changes,
Copy link

Choose a reason for hiding this comment

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

The body contains both changes and defaults

@@ -200,7 +203,9 @@ class KuzzleRequest {
if (source != null) {
map['source'] = source;
}

if (defaults != null) {
map['defaults'] = defaults;
Copy link

Choose a reason for hiding this comment

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

I'm not sure to understand what this is suppose to do but defaults is part of the body and it looks like you put it in the arguments

@Yoann-Abbes Yoann-Abbes requested a review from Aschen December 30, 2020 10:56
doc/2/controllers/document/upsert/index.md Show resolved Hide resolved
| `_source` | <pre>Map<String, dynamic></pre> | Updated document (if `source` option set to true) |
| `_id` | <pre>String</pre> | ID of the udated document |
| `_version` | <pre>int</pre> | Version of the document in the persistent data storage |
| `created` | <pre>bool</pre>
Copy link

Choose a reason for hiding this comment

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

Missing description for created

lib/src/controllers/document.dart Outdated Show resolved Hide resolved
@Yoann-Abbes Yoann-Abbes requested a review from Aschen December 30, 2020 13:38
@Aschen Aschen merged commit 0fa1e18 into 2-dev Jan 5, 2021
@Aschen Aschen deleted the document-upsert branch January 5, 2021 08:39
@Yoann-Abbes Yoann-Abbes mentioned this pull request Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants