Skip to content
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

Merged
merged 6 commits into from
Oct 19, 2022

Conversation

sitaram-kalluri
Copy link
Member

- What I did

  • Add isLocal to UpdateVerbBuilder and local_lookup_verb builder

- How I did it

- How to verify it

- Description for the changelog

  • Add isLocal to verb builder

Copy link
Contributor

@gkc gkc left a 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:';
Copy link
Contributor

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

@sitaram-kalluri sitaram-kalluri requested a review from gkc October 17, 2022 06:56
@override
String buildCommand() {
var command = 'llookup:';
if (operation != null) {
command += '$operation:';
}
if(isLocal){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dart format missing

@sitaram-kalluri sitaram-kalluri changed the base branch from trunk to atcli_changes October 19, 2022 06:54
@sitaram-kalluri sitaram-kalluri changed the base branch from atcli_changes to trunk October 19, 2022 06:55
Copy link
Contributor

@gkc gkc left a 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

@sitaram-kalluri sitaram-kalluri merged commit 1390a35 into trunk Oct 19, 2022
@sitaram-kalluri sitaram-kalluri deleted the add_isLocal_to_verb_builder branch October 19, 2022 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants