-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
feat(firestore): add limit_to_last samples #4196
feat(firestore): add limit_to_last samples #4196
Conversation
@BenWhitehead, @crwilcox, I've added a sample. Taken the tag name from the Java's samples |
Your PR has attempted to merge for 3 hours. Please check that all required checks have passed, you have an automerge label, and that all your reviewers have approved the PR |
@IlyaFaer Looks like all three builds are failing with the following traceback
|
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, or one of your required reviews was not approved. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
@BenWhitehead, yeah, I suppose, it'll be failing until the next Firestore release. Locally I've replaced the Python original Firestore package with the last repository version, and it's working fine: |
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.
let me know when it's ready to merge
@@ -235,6 +235,10 @@ def test_order_where_limit(): | |||
snippets.order_where_limit() | |||
|
|||
|
|||
def test_order_limit_to_last(): | |||
snippets.order_limit_to_last() |
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.
Does it make sense to check the output?
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.
@IlyaFaer Could you comment on this?
You can return the results in the function and check them here if that's easier than checking the string output.
results = snippets.order_limit_to_last()
assert ...
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.
Oh, that slipped my radars. Yeah, I thought about that, but most of the snippets tests are written this way - just a call to snippet function. So, as I see it, if we're gonna add an assert
, we should do this for all the tests to keep the fashion, which probably should be done in a separate issue. Adding an assert
into this single test, while other similar tests doesn't have it, looks weird. WDYT?
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.
Alright.
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.
Can you create an issue for it?
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.
Sure, will make a /cc to you when created. And I think I'll do this
If you want to check that CI passes, you can temporarily change the
|
@busunkim96, sounds interesting, thanks! |
Kokoro builds triggered |
@BenWhitehead, thanks! Checks are green. Please, acknowledge, and I'll revert |
New Firestore client released, I've reverted |
@@ -235,6 +235,10 @@ def test_order_where_limit(): | |||
snippets.order_where_limit() | |||
|
|||
|
|||
def test_order_limit_to_last(): | |||
snippets.order_limit_to_last() |
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.
@IlyaFaer Could you comment on this?
You can return the results in the function and check them here if that's easier than checking the string output.
results = snippets.order_limit_to_last()
assert ...
Friendly ping |
Closes #4195