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

Option to skip creation of aggregated output if input set is empty #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

atanasenko
Copy link

Will also address part of issue #15

Signed-off-by: Anton Tanasenko <atg.sleepless@gmail.com>
@atanasenko
Copy link
Author

Or maybe it's better to add a InputSet#hasInputs() method and control this from application code?

@@ -133,4 +133,18 @@ public void testEmpty() throws Exception {
Assert.assertEquals(1, indexer.outputs.size());
}

@Test
public void testEmptyNoCreate() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a test for incremental delete of an aggregate output created during a prior build.

@ifedorenko
Copy link
Contributor

I am not sure, to be honest. On one hand, the less code the client has to write, the better, so if we can encapsulate correct behaviour in the library, we should do that. On the other hand, I can imagine some clients may want/need to create aggregate outputs for empty input sets... but I can't think of practical usecase... sigh. api design is hard.

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.

2 participants