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

DOC-3914: re-issue TCE PRs previously issued by justincastilla #2781

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

dwdougherty
Copy link

Description

This PR contains doctests previously written by justincastilla that are to be used on the docs site as tabbed code examples. There were issues with the previous PRs which I could not resolve, not having the permissions to do so. @dmaier-redislabs suggested I issue a new PR that contains edited versions of those PRs.


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Copy link

@mich-elle-luna mich-elle-luna left a comment

Choose a reason for hiding this comment

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

thank you!

// REMOVE_END

// STEP_START xRange
const res4 = await client.xRange('race:france', '1691765278160-0', '+', 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel a bit skeptical about these. How can ranges work for streams when added with a '*' style IDs that would be based on timestamp work consistently (throughout this example). Maybe I'm missing something?

Copy link
Author

Choose a reason for hiding this comment

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

I don't know the streams data type well enough to comment intelligently, but the same examples are present for the other 3 client libraries. The person who created the initial CLI examples is long gone from Redis.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. I'll investigate a bit more, just feels weird to me, as I said, it might just be my lack of experience with them.

@sjpotter sjpotter merged commit e7347f8 into redis:emb-examples Jul 3, 2024
1 check passed
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.

4 participants