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

Separate "define" and "publish" for contract APIs, and allow deleting unpublished APIs #1322

Merged
merged 3 commits into from
May 30, 2023

Conversation

awrichar
Copy link
Contributor

@awrichar awrichar commented May 25, 2023

Part of the fix for #1220
In a chain with #1279 and #1321

@codecov-commenter
Copy link

codecov-commenter commented May 25, 2023

Codecov Report

Merging #1322 (be23163) into main (4385d12) will decrease coverage by 0.02%.
The diff coverage is 98.70%.

@@             Coverage Diff             @@
##              main    #1322      +/-   ##
===========================================
- Coverage   100.00%   99.98%   -0.02%     
===========================================
  Files          312      314       +2     
  Lines        21266    21418     +152     
===========================================
+ Hits         21266    21415     +149     
- Misses           0        3       +3     
Impacted Files Coverage Δ
internal/apiserver/route_delete_contract_api.go 0.00% <0.00%> (ø)
internal/apiserver/routes.go 100.00% <ø> (ø)
internal/definitions/sender.go 100.00% <ø> (ø)
...ernal/apiserver/route_post_contract_api_publish.go 100.00% <100.00%> (ø)
internal/apiserver/route_post_new_contract_api.go 100.00% <100.00%> (ø)
internal/contracts/manager.go 100.00% <100.00%> (ø)
internal/database/sqlcommon/contractapis_sql.go 100.00% <100.00%> (ø)
internal/database/sqlcommon/ffi_sql.go 100.00% <100.00%> (ø)
internal/definitions/handler_contracts.go 100.00% <100.00%> (ø)
internal/definitions/sender_contracts.go 100.00% <100.00%> (ø)
... and 1 more

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.

👍

} else if existing != nil {
return wrapSendError(i18n.NewError(ctx, coremsgs.MsgNetworkNameExists))
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just realized that I missed a check for the interface to have been published first (ie need to add this one here too).

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@awrichar
Copy link
Contributor Author

Added one new commit to fix this, and rebased after merging all pre-requisite PRs.

@awrichar awrichar merged commit 13946dd into hyperledger:main May 30, 2023
14 checks passed
@awrichar awrichar deleted the deletethings3 branch May 30, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants