You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
having a flag dependOn a boolean flag only checks that the flag was specified (or it has a default value), when you likely want it to check its value was true:
sf data query -q 'select name,id from account limit 1' --wait 10
this works even thought --wait is only used with --bulk
depending on a boolean flag causes an error (even if the bool flag has a default value)
autofix to make it use relationships to check that the boolean flag value is true (see screenshot below)
The text was updated successfully, but these errors were encountered:
cristiand391
changed the title
having a flag dependOn a boolean flag only checks that the flag was specified (or it has a default value), when you likely want it to check its value was true:
add rule to catch flags depending on boolean flags
Jul 24, 2024
having a flag
dependOn
a boolean flag only checks that the flag was specified (or it has a default value), when you likely want it to check its value was true:this works even thought
--wait
is only used with--bulk
--bulk
default: falsehttps://github.com/salesforcecli/plugin-data/blob/cdaf1d3c85be33f7b34f012199052f3823e9114c/src/commands/data/query.ts#L63
--wait
dependOn--bulk
https://github.com/salesforcecli/plugin-data/blob/cdaf1d3c85be33f7b34f012199052f3823e9114c/src/commands/data/query.ts#L71
AC:
relationships
to check that the boolean flag value istrue
(see screenshot below)The text was updated successfully, but these errors were encountered: