-
Notifications
You must be signed in to change notification settings - Fork 29
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
Preserve user parameters even when matching the default value #633
Labels
Milestone
Comments
lordrip
added a commit
to lordrip/kaoto
that referenced
this issue
Jan 14, 2024
…efault value intending to have less verbose routes. There's an issue with the `file` component, detailed as follows: ``` from: file:someFile.txt parameters: noop: true ``` In the previous route, `noop=true` implicitly set `idempotent=true` **IF THE VALUE HAS NOT BEEN SET TO EITHER TRUE OR FALSE**, usually this is OK and doesn't represent a problem. In case the user wants to set `noop=true` and `idempotent=false` to force the `file` component to re-read the files when the scheduler kicks in, like the following: ``` from: file:someFile.txt parameters: noop: true idempotent: false ``` Then we will remove the `idempotent=false` as it is the default value for the `idempotent` parameter, effectively blocking the user from setting a different behavior for the `file` component. This commit aims to keep values set by the user, even in case they are the default ones. fixes: KaotoIO#633
lordrip
added a commit
to lordrip/kaoto
that referenced
this issue
Jan 15, 2024
…efault value intending to have less verbose routes. There's an issue with the `file` component, detailed as follows: ``` from: file:someFile.txt parameters: noop: true ``` In the previous route, `noop=true` implicitly set `idempotent=true` **IF THE VALUE HAS NOT BEEN SET TO EITHER TRUE OR FALSE**, usually this is OK and doesn't represent a problem. In case the user wants to set `noop=true` and `idempotent=false` to force the `file` component to re-read the files when the scheduler kicks in, like the following: ``` from: file:someFile.txt parameters: noop: true idempotent: false ``` Then we will remove the `idempotent=false` as it is the default value for the `idempotent` parameter, effectively blocking the user from setting a different behavior for the `file` component. This commit aims to keep values set by the user, even in case they are the default ones. fixes: KaotoIO#633
lordrip
added a commit
that referenced
this issue
Jan 16, 2024
…efault value intending to have less verbose routes. There's an issue with the `file` component, detailed as follows: ``` from: file:someFile.txt parameters: noop: true ``` In the previous route, `noop=true` implicitly set `idempotent=true` **IF THE VALUE HAS NOT BEEN SET TO EITHER TRUE OR FALSE**, usually this is OK and doesn't represent a problem. In case the user wants to set `noop=true` and `idempotent=false` to force the `file` component to re-read the files when the scheduler kicks in, like the following: ``` from: file:someFile.txt parameters: noop: true idempotent: false ``` Then we will remove the `idempotent=false` as it is the default value for the `idempotent` parameter, effectively blocking the user from setting a different behavior for the `file` component. This commit aims to keep values set by the user, even in case they are the default ones. fixes: #633
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Please describe the task that needs to be done
Context
Currently, we're removing parameters set by the user that match the default value intending to have less verbose routes.
Although this is beneficial, there's an issue with the
file
component, detailed as follows:In the previous route,
noop=true
implicitly setidempotent=true
IF THE VALUE HAS NOT BEEN SET TO EITHER TRUE OR FALSE, usually this is OK and doesn't represent a problem.In case the user wants to set
noop=true
andidempotent=false
to force thefile
component to re-read the files when the scheduler kicks in, like the following:Then we will remove the
idempotent=false
as it is the default value for theidempotent
parameter, effectively blocking the user from setting a different behavior for thefile
component.Changes
Preserve the user parameters even in case of matching the default value.
Notes
There's a working route that serves as example here
The text was updated successfully, but these errors were encountered: