-
Notifications
You must be signed in to change notification settings - Fork 494
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: add deduplicate parameter to create topic using cli #4386
base: master
Are you sure you want to change the base?
Conversation
b32e785
to
eb5543c
Compare
1cca184
to
e2da55a
Compare
@fraidev, we should rename I also think we should expose 2 variants:
|
4a49404
to
329b92b
Compare
Sure, I did it like the PREFERRED way, and I also created an issue for the ADVANCED way |
Is there issue describing what new option does? |
Is there contract on smartmodule name and version? What if user doesn't download right version of smartmodule |
@@ -258,6 +270,21 @@ fn validate(name: &str, _spec: &TopicSpec) -> Result<()> { | |||
Ok(()) | |||
} | |||
|
|||
fn create_deduplication(dedup_count: u64, dedup_age: Option<Duration>) -> Deduplication { |
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.
this should be builder pattern so can customize this
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.
I noticed that Deduplication, Bounds and Filter implements Builder, but seems a little verbose to create 3 Builders for this, no?
Maybe with additional methods at Deduplication?
As per my recommendation, there are 2 flavors (see above).
|
Is this option applies to all deduplication smartmodule or just on specific version of smartmodule? |
@fraidev |
Specific version. |
8bbaffc
to
ec7ade7
Compare
@sehz I changed the PR to download the specific SM if not downloaded. |
@ajhunyady and @sehz do we still have any blockers here? |
@@ -23,7 +23,7 @@ setup_file() { | |||
TOPIC_NAME_SYSTEM=$(random_string) | |||
export TOPIC_NAME_SYSTEM | |||
|
|||
DEDUP_FILTER_NAME="dedup-filter" | |||
DEDUP_FILTER_NAME="dedup-bloom-filter" |
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.
Is there integration or CLI test?
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.
this is just a test creating a sm. I'll create cli tests for the "--dedup" then
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.
I added a cli test using --dedup
d71aeb9
to
a7f50f8
Compare
Solves #4388