Skip to content

Adds a function to test if a sink exists at the version we created#1404

Merged
Gabriella439 merged 1 commit intodevelopfrom
ianoc/addAbilityToQueryWritePathStatus
Aug 4, 2015
Merged

Adds a function to test if a sink exists at the version we created#1404
Gabriella439 merged 1 commit intodevelopfrom
ianoc/addAbilityToQueryWritePathStatus

Conversation

@ianoc
Copy link
Collaborator

@ianoc ianoc commented Aug 4, 2015

In summingbird would like to not try write into a version if it already exists

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe use a Try/Maybe instead of throwing an error. How likely is it that there will be a mode other than those three?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Extremely unlikely, the other methods in this class seem to just cast under the wildcard case

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, there is little type safety around Mode, and no way to recover from a bad mode, so I'd leave it as is (Mode is generally configured at runtime).

Gabriella439 added a commit that referenced this pull request Aug 4, 2015
…hStatus

Adds a function to test if a sink exists at the version we created
@Gabriella439 Gabriella439 merged commit 9d0d838 into develop Aug 4, 2015
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should have return types on public methods.

@ianoc ianoc mentioned this pull request Aug 10, 2015
@ianoc ianoc deleted the ianoc/addAbilityToQueryWritePathStatus branch August 15, 2015 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants