-
Notifications
You must be signed in to change notification settings - Fork 9
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 isLocal to verb builders #242
Conversation
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.
LGTM, one request
@@ -142,13 +146,15 @@ class UpdateVerbBuilder implements VerbBuilder { | |||
if (encoding != null && encoding!.isNotEmpty) { | |||
command += '$ENCODING:$encoding'; | |||
} | |||
if (isLocal) { | |||
command += 'local:'; | |||
} | |||
if (isPublic) { | |||
command += 'public:'; |
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.
We need to make sure there are guard conditions which prevent local keys also being public. A local key must not be (1) public (2) shared with anyone else. Likewise, a key that is public, or shared with someone else, must not be local
@override | ||
String buildCommand() { | ||
var command = 'llookup:'; | ||
if (operation != null) { | ||
command += '$operation:'; | ||
} | ||
if(isLocal){ |
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.
dart format missing
…o add_isLocal_to_verb_builder # Conflicts: # at_commons/lib/src/verb/llookup_verb_builder.dart # at_commons/test/update_verb_builder_test.dart
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.
LGTM for now. Could do with adding more validation of mutual exclusivity in the AtKey setters
- What I did
- How I did it
- How to verify it
- Description for the changelog