Skip to content

Conversation

@awrichar
Copy link
Contributor

@awrichar awrichar commented Feb 4, 2022

  • Operations should all correspond to an external plugin action (only announce_pool needed a change)
  • Name all operations as "plugin_action" (only contract_invoke needed a change)
  • Mark operations successful after the new synchronous forms of token pool creation and activation

The convention for all other operations is to prefix them with the name of
the target plugin ("blockchain" in this case).

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
The pool announcement is a definition broadcast and does not need to be tracked
by an operation (as it is sufficiently tracked by the pending/confirmed status of
the token pool and the pending/confirmed status of its linked message).

Pool activation, on the other hand, is an asynchronous operation to an external
connector, and does require an operation to track.

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@codecov-commenter
Copy link

Codecov Report

Merging #480 (a856963) into main (081f301) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
- Coverage   99.92%   99.92%   -0.01%     
==========================================
  Files         266      266              
  Lines       15134    15128       -6     
==========================================
- Hits        15123    15117       -6     
  Misses         11       11              
Impacted Files Coverage Δ
...ternal/definitions/definition_handler_tokenpool.go 100.00% <ø> (ø)
pkg/fftypes/operation.go 100.00% <ø> (ø)
internal/assets/token_pool.go 100.00% <100.00%> (ø)
internal/contracts/manager.go 100.00% <100.00%> (ø)
internal/events/token_pool_created.go 100.00% <100.00%> (ø)
internal/tokens/fftokens/fftokens.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 081f301...a856963. Read the comment docs.

Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

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

... reminds me we really need to get the reference section filled in with a bunch of the work you're doing, before V1.0

@peterbroadhurst peterbroadhurst merged commit 83c265f into hyperledger:main Feb 4, 2022
@peterbroadhurst peterbroadhurst deleted the ops branch February 4, 2022 19:49
@awrichar
Copy link
Contributor Author

awrichar commented Feb 4, 2022

Yea - this was a direct result of attempting to make a concise picture of what operations mean, and seeing that a few things didn't line up. It feels very clean now.

FireFly_contributor_whiteboarding_-_public_access__Online_Whiteboard_for_Visual_Collaboration

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