-
Notifications
You must be signed in to change notification settings - Fork 493
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:
|
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. |
@sehz I changed the PR to download the specific SM if not downloaded. |
Solves #4388