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

AEA-608 Minor changes to dialogue API #1442

Merged
merged 7 commits into from
Jul 3, 2020
Merged

Conversation

5A11
Copy link
Member

@5A11 5A11 commented Jul 1, 2020

This is a minor PR with the following changes:

  • changed AgentRole --> Role in FipaDialogue.
  • counterparty field is automatically set for all messages except the initial one. This can be done for the initial message once a new create_dialogue method is added which gets the counterparty as a field.
  • minor formatting

Due to the changed names (item 1 and 2 above), skill codes no longer work and linters fail. Those were not changed because skills are being heavily changed in another branch.

Types of changes

What types of changes does your code introduce to agents-aea?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING doc
  • I am making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that code coverage does not decrease.
  • I have checked that the documentation about the aea cli tool works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

@5A11 5A11 requested a review from DavidMinarsch July 1, 2020 13:49
@5A11 5A11 changed the title changed dialogue.update to dialogue.add; counteryparty set for messag… Minor changes to dialogue API Jul 1, 2020
@@ -68,11 +68,11 @@ class TacDialogue(Dialogue):
),
}

class AgentRole(Dialogue.Role):
class Role(Dialogue.Role):
Copy link
Contributor

Choose a reason for hiding this comment

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

The roles are not auto sorted by alphabet as you can see below

Copy link
Contributor

Choose a reason for hiding this comment

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

Please amend generator to do so

# Run protocol buffer compiler
try_run_protoc(
self.path_to_generated_protocol_package, self.protocol_specification.name
)

# Run black formatting
try_run_black_formatting(self.path_to_generated_protocol_package)

Copy link
Member Author

Choose a reason for hiding this comment

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

Running black after protoc so it formats _pb2.py files too.

Copy link
Contributor

@DavidMinarsch DavidMinarsch left a comment

Choose a reason for hiding this comment

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

LGTM; only one issue

Copy link
Contributor

@DavidMinarsch DavidMinarsch left a comment

Choose a reason for hiding this comment

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

LGTM

@DavidMinarsch DavidMinarsch merged commit ea013b7 into develop Jul 3, 2020
@DavidMinarsch DavidMinarsch deleted the feature/dialogue branch July 4, 2020 15:02
@DavidMinarsch DavidMinarsch changed the title Minor changes to dialogue API AEA-608 Minor changes to dialogue API Jul 6, 2020
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.

2 participants