Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 4, 2022. It is now read-only.

Conversation

leplatrem
Copy link
Contributor

Follow-up of #351

kewisch and others added 3 commits January 29, 2019 18:01
    * Add a getETag method for collections and buckets

    * Update README to document methods and no longer suggest use of last_modified
@leplatrem leplatrem requested a review from glasserc June 1, 2019 09:32
@leplatrem
Copy link
Contributor Author

Tests fail because of #424

README.md Outdated
@@ -1168,10 +1191,31 @@ Sample result:
42
```

#### Options
#### options
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should remain capitalized?

README.md Outdated
@@ -1142,7 +1165,7 @@ Sample result:

The result object exposes the following properties:

- `last_modified`: the [collection's timestamp](http://kinto.readthedocs.io/en/stable/api/1.x/timestamps.html). This value is opaque and should be reused as is, eg. passing it as a `since` option (see [Generic bucket and collection options](#generic-bucket-and-collection-options))
- `last_modified`: the [collection's timestamp](http://kinto.readthedocs.io/en/stable/api/1.x/timestamps.html).
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should note that it is not the same as the timestamps you get from getCollectionsTimestamp() etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, it is the same :) I'll add a note

README.md Outdated

- `headers`: Custom headers object to send along the HTTP request
- `retry`: Number of retries when request fails (default: 0)
- `headers`: custom headers object to send along the http request
Copy link
Contributor

Choose a reason for hiding this comment

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

I think HTTP could remain capitalized.

README.md Outdated
@@ -552,6 +555,26 @@ Sample result:

This method accepts the [generic parameters for sorting, filtering and paginating results](#generic-options-for-list-operations).

### Collections list timestamp

The timestmap of the collections list is used for the `since` option in the [generic parameters for sorting, filtering and paginating results](#generic-options-for-list-operations).
Copy link
Contributor

Choose a reason for hiding this comment

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

You have timestamp typoed as timestmap a few places.

src/bucket.js Outdated
}

/**
* Retrieves the ETag of the collection list, for use with the `since` filtering option.
Copy link
Contributor

Choose a reason for hiding this comment

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

of the group list?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants