Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

[OSE-300] Credential applications can be cancelled #234

Merged
merged 4 commits into from
Jan 4, 2023

Conversation

andresuribe87
Copy link
Contributor

Overview

After a credential application is submitted, an operation is returned. This PR adds the ability to cancel the operation related to that application.

Description

All operations can be cancelled, as long as they aren't marked as done.

How Has This Been Tested?

Added a simple unit test to the service endpoint.

Checklist

Before submitting this PR, please make sure:

  • I have read the CONTRIBUTING document.
  • My code is consistent with the rest of the project
  • I have tagged the relevant reviewers and/or interested parties
  • I have updated the READMEs and other documentation of affected packages

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2023

Codecov Report

Merging #234 (9b218be) into main (a138310) will decrease coverage by 1.02%.
The diff coverage is 81.48%.

@@            Coverage Diff             @@
##             main     #234      +/-   ##
==========================================
- Coverage   25.93%   24.90%   -1.03%     
==========================================
  Files          28       31       +3     
  Lines        2738     2919     +181     
==========================================
+ Hits          710      727      +17     
- Misses       1911     2074     +163     
- Partials      117      118       +1     
Impacted Files Coverage Δ
pkg/service/operation/submission/submission.go 0.00% <ø> (-17.65%) ⬇️
pkg/service/operation/storage.go 24.46% <81.48%> (ø)
pkg/service/operation/service.go 0.00% <0.00%> (ø)
pkg/service/operation/model.go 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@andresuribe87 andresuribe87 marked this pull request as ready for review January 3, 2023 23:43
@@ -30,6 +31,8 @@ type StoredManifest struct {

type StoredApplication struct {
ID string `json:"id"`
Status credential.Status `json:"status"`
Reason string `json:"reason"`
Copy link
Member

Choose a reason for hiding this comment

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

should this be an enum or user defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm imagining it's user defined free form text. We can change later once we see real use cases.

@andresuribe87 andresuribe87 merged commit 3447cea into TBD54566975:main Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants