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

[OSE-167] Scaffolding for /v1/operations #172

Merged

Conversation

andresuribe87
Copy link
Contributor

This PR introduces the boilerplate needed to support the operation api with the get/list/cancel actions.

db *storage.BoltDB
}

func (b BoltOperationStorage) StoreOperation(op StoredOperation) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this PR intended to be a draft? or do you aim to merge with these unimplemented?

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 intend to merge with these unimplemented. They will be implemented in subsequent PRs. Just trying to keep the surface area small.

@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2022

Codecov Report

Merging #172 (e6a2a04) into main (df8f5a0) will increase coverage by 0.21%.
The diff coverage is 37.93%.

@@            Coverage Diff             @@
##             main     #172      +/-   ##
==========================================
+ Coverage   26.16%   26.37%   +0.21%     
==========================================
  Files          20       21       +1     
  Lines        1594     1623      +29     
==========================================
+ Hits          417      428      +11     
- Misses       1106     1123      +17     
- Partials       71       72       +1     
Impacted Files Coverage Δ
pkg/server/router/operation.go 0.00% <0.00%> (ø)
pkg/server/server.go 79.86% <78.57%> (-0.14%) ⬇️

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

Copy link
Contributor

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

lgtm - need to fix a linter error before merge

@andresuribe87 andresuribe87 merged commit 3c91cb6 into TBD54566975:main Nov 14, 2022
andresuribe87 added a commit to andresuribe87/ssi-service that referenced this pull request Nov 14, 2022
* The simplest scaffolding possible

* rename

Co-authored-by: Gabe <gcohen@squareup.com>
andresuribe87 added a commit that referenced this pull request Nov 15, 2022
* Initial create, delete, get for submissions

* Basic tests for the router

* Added the rest of the scaffolding

* Added List and Review

* Removed the delete method

* Simplified for scaffolding

* spec

* zero structs

* Consolidate under the same API

* mage spec

* Minor updates

* [OSE-167] Scaffolding for /v1/operations (#172)

* The simplest scaffolding possible

* rename

Co-authored-by: Gabe <gcohen@squareup.com>

* Fix lint and compilation

* PR fixes

* rename

* regen

* spec

* Removed unused config

* reviews

Co-authored-by: Gabe <gcohen@squareup.com>
andresuribe87 added a commit that referenced this pull request Nov 29, 2022
* Initial create, delete, get for submissions

* Basic tests for the router

* Added the rest of the scaffolding

* Added List and Review

* Removed the delete method

* Simplified for scaffolding

* spec

* zero structs

* Consolidate under the same API

* mage spec

* Minor updates

* [OSE-167] Scaffolding for /v1/operations (#172)

* The simplest scaffolding possible

* rename

Co-authored-by: Gabe <gcohen@squareup.com>

* Fix lint and compilation

* PR fixes

* rename

* regen

* Removed unused config

* The simplest scaffolding possible

* Implemented ops storage

* Simple impl

* Submission implementation with test

* Swagger spec

* Neatly wrapping up

* Upgrade mod

* minor improvements

* PR comments.

* PR comments.

Co-authored-by: Gabe <gcohen@squareup.com>
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