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

feat: Add option to EDV REST provider to get full document on query #2355

Conversation

DRK3
Copy link
Contributor

@DRK3 DRK3 commented Nov 29, 2020

  • Added an option to enable a performance optimization that can be enabled if being used with an EDV server that supports it.
  • Removed a comment with a ToDo regarding dealing with a potential edge-case issue since I've now realized that the design of the EDV provider already prevents it from happening in the first place.

Signed-off-by: Derek Trider Derek.Trider@securekey.com

@codecov
Copy link

codecov bot commented Nov 29, 2020

Codecov Report

Merging #2355 (ebb3c3c) into master (5fac400) will decrease coverage by 0.01%.
The diff coverage is 89.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2355      +/-   ##
==========================================
- Coverage   89.59%   89.58%   -0.02%     
==========================================
  Files         221      221              
  Lines       15578    15619      +41     
==========================================
+ Hits        13957    13992      +35     
- Misses        956      959       +3     
- Partials      665      668       +3     
Impacted Files Coverage Δ
pkg/storage/edv/restprovider.go 85.86% <89.65%> (-0.09%) ⬇️

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 5fac400...ebb3c3c. Read the comment docs.

@DRK3 DRK3 force-pushed the EDVRESTProviderOptionToGetFullDocOnQuery branch from 9aae94f to c3d5a92 Compare November 29, 2020 02:54
@DRK3 DRK3 force-pushed the EDVRESTProviderOptionToGetFullDocOnQuery branch 2 times, most recently from e20b614 to 240ec33 Compare November 29, 2020 03:17
func NewRESTProvider(edvServerURL, vaultID string,
macCrypto *MACCrypto, httpClientOpts ...Option) (*RESTProvider, error) {
macCrypto *MACCrypto, returnFullDocumentsOnQuery bool, httpClientOpts ...Option) (*RESTProvider, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add it as option

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

- Added an option to enable a performance optimization that can be enabled if being used with an EDV server that supports it.
- Removed a comment with a ToDo regarding dealing with a potential edge-case issue since I've now realized that the design of the EDV provider already prevents it from happening in the first place.

Signed-off-by: Derek Trider <Derek.Trider@securekey.com>
@DRK3 DRK3 force-pushed the EDVRESTProviderOptionToGetFullDocOnQuery branch from 240ec33 to ebb3c3c Compare November 29, 2020 19:28
@fqutishat fqutishat merged commit 2e2480b into hyperledger-archives:master Nov 29, 2020
@DRK3 DRK3 mentioned this pull request Dec 3, 2020
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants