-
Notifications
You must be signed in to change notification settings - Fork 123
kdb set user/ and -N user should behave the same, -f for old behavior #2561
Comments
If you mean that something like kdb get user/tests/get should behave the same as kdb get -N user /tests/get , then I think that sounds reasonable. What exactly is the old behavior? As far as I can tell kdb 2>&1 get -N
#> kdb: invalid option -- N
#> Sorry, I could not process the given options (see errors above)
#>
#> Usage: kdb get <name>
#>
#> Get the value of an individual key.
#> When the key starts with / a cascading lookup will be done.
#>
#> Example:
#>
#> kdb get system/elektra/version/constants/KDB_VERSION
#>
#> -a --all Consider all of the keys.
#> -H --help Show the man page.
#> -n --no-newline Suppress the newline at the end of the output.
#> -p --profile <name> Use a different profile for kdb configuration.
#> -v --verbose Explain what is happening.
#> -V --version Print version info.
#> -C --color <when> Print never/auto(default)/always colored output. . |
exactly, but I meant
That one way supports the validation and the other does not. |
Yes, it make sense that in the following situation: kdb mount tutorial.dump /tests/spec dump validation
kdb setmeta spec/tests/spec/test check/validation '[1-9][0-9]*'
kdb setmeta spec/tests/spec/test check/validation/match LINE
kdb setmeta spec/tests/spec/test check/validation/message 'Not a number' , the command kdb set user/tests/spec/test 'incorrect value' fails, just as kdb set -N user /tests/spec/test 'incorrect value' and kdb set /tests/spec/test 'incorrect value' do. Using the option |
Exactly! Thank you for the description of the behavior. Maybe we should also add |
Maybe we can fix this together with #2724. Then scripts do not need to be adapted twice. |
IMO we should always use a cascading parent key. If the given key has a namespace, strip it for creating the parent key, but use it during To disable this behaviour and use the namespace in the parent key as well, we would simply provide a command line option. |
Yes, I agree. It gives a much more consistent user experience.
Yes, makes sense. But let us implement this after #3115, if we feel it is needed. |
I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. |
…,-f for kdb meta-set
…,-f for kdb meta-set
…,-f for kdb meta-set
…,-f for kdb meta-set
…,-f for kdb meta-set
Was fixed by @dev2718 🤗 |
…,-f for kdb meta-set
@sanssecours Can you maybe help define the behavior here?
The text was updated successfully, but these errors were encountered: