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

Improve attach_ and detach_method_relationships in wasm bindings #775

Merged
merged 4 commits into from
Mar 29, 2022

Conversation

abdulmth
Copy link
Contributor

@abdulmth abdulmth commented Mar 29, 2022

Description of change

Use the attach_method_relationships instead of attach_method_relationship, in the wasm bindings. The same for detach_method_relationship .

The original issue #654 included pluralizing the method name, but it turned out that the current implementation already includes both forms, attach_method_relationships and attach_method_relationship (The same for detach).

Links to any relevant issues

fixes issue #654

Type of change

Add an x to the boxes that are relevant to your changes.

  • Bug fix (a non-breaking change which fixes an issue)
  • Enhancement (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Fix

@abdulmth abdulmth self-assigned this Mar 29, 2022
@abdulmth abdulmth added Wasm Related to Wasm bindings. Becomes part of the Wasm changelog Chore Tedious, typically non-functional change No changelog Excludes PR from becoming part of any changelog labels Mar 29, 2022
@abdulmth abdulmth added this to the v0.5 Features milestone Mar 29, 2022
@abdulmth abdulmth linked an issue Mar 29, 2022 that may be closed by this pull request
10 tasks
@abdulmth abdulmth requested a review from cycraig March 29, 2022 11:06
Copy link
Contributor

@cycraig cycraig left a comment

Choose a reason for hiding this comment

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

Well that's convenient!

Comment on lines +49 to +52
account
.borrow_mut()
.update_identity()
.attach_method_relationship()
Copy link
Contributor

Choose a reason for hiding this comment

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

The Rust name is still singular, do we want to keep it that way or switch to attach/detach_method_relationships? Probably fine either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the singular methods are still available, I just left it as is.

Copy link
Contributor

@cycraig cycraig left a comment

Choose a reason for hiding this comment

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

Looks good to me. Fix the PR title.

@abdulmth abdulmth changed the title [WIP] Improve attach_ and detach_method_relationships in wasm bindings Improve attach_ and detach_method_relationships in wasm bindings Mar 29, 2022
@abdulmth abdulmth merged commit 07b1c9d into dev Mar 29, 2022
@abdulmth abdulmth deleted the chore/attach-detach-relationships branch March 29, 2022 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chore Tedious, typically non-functional change No changelog Excludes PR from becoming part of any changelog Wasm Related to Wasm bindings. Becomes part of the Wasm changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Improve Account::attach/detach_method_relationship
2 participants