Skip to content

Conversation

@theacodes
Copy link
Contributor

@theacodes theacodes commented Jan 10, 2018

…assed to KeyRange (#4618)"

This reverts commit 4d6cd26.

Towards #4694

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 10, 2018
@dhermes
Copy link
Contributor

dhermes commented Jan 10, 2018

This LGTM but I don't think you should close #4694. Or if you do, you should re-open the issue that #4618 seeked to fix.

@theacodes
Copy link
Contributor Author

Fair enough, will leave it open.

@theacodes
Copy link
Contributor Author

@tseaver can you shed some light on the failure here: https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/5141?

@theacodes
Copy link
Contributor Author

nvm, @dhermes helped me figure it out.

@dhermes
Copy link
Contributor

dhermes commented Jan 11, 2018

And Chuck Norris!

@theacodes
Copy link
Contributor Author

Is that linked in the contributing guide? If not, it should be. P0.

@theacodes
Copy link
Contributor Author

Ignoring conflict error as it's just due to noise from another spanner system tests (I will not release this without a green build on the release PR).

@theacodes theacodes merged commit 36c7a16 into master Jan 11, 2018
@theacodes theacodes deleted the revert-4618 branch January 11, 2018 00:34
@chemelnucfin
Copy link
Contributor

chemelnucfin commented Jan 11, 2018 via email

@tseaver
Copy link
Contributor

tseaver commented Jan 11, 2018

Rather than raising a ValueError if the caller passes a start_open / start_closed but neither end_open / end_closed, the constructor should just assign the empty list to end_open (this was the documented workaround for the caller in #4618: we can just do it on the caller's behalf).

Likewise for the case where the caller passes an end_open / end_closed but neither of start_open / start_closed: the constructor should just assign start_open = [].

@chemelnucfin
Copy link
Contributor

For the first case, I think assigning it to end_closed is a better choice, as I believe that end_open excludes everything.

@chemelnucfin
Copy link
Contributor

Likewise for the end_closed. Should I make the change?

@theacodes
Copy link
Contributor Author

Go for it, if you're faster than CI I'll rebase it into #4732.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants