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

Abstract Dynamodb dependendy #35

Merged
merged 2 commits into from
Sep 14, 2020
Merged

Abstract Dynamodb dependendy #35

merged 2 commits into from
Sep 14, 2020

Conversation

joe94
Copy link
Member

@joe94 joe94 commented Sep 11, 2020

The main change introduced in this PR is creating an interface that defines the interactions we expect the dynamodb api to provide.

This makes our code a lot easier to unit test through mocks.

@joe94 joe94 self-assigned this Sep 11, 2020
@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #35 into main will decrease coverage by 3.64%.
The diff coverage is 1.39%.

Impacted file tree graph

@@            Coverage Diff            @@
##             main     #35      +/-   ##
=========================================
- Coverage   11.61%   7.96%   -3.65%     
=========================================
  Files          13      12       -1     
  Lines         818     753      -65     
=========================================
- Hits           95      60      -35     
+ Misses        703     679      -24     
+ Partials       20      14       -6     
Impacted Files Coverage Δ
store/dynamodb/service.go 0.00% <0.00%> (ø)
store/provide.go 0.00% <ø> (ø)
store/dynamodb/db.go 4.25% <7.14%> (-30.96%) ⬇️

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 5da527f...9b835e2. Read the comment docs.

@joe94 joe94 added the enhancement improvement or small functionality added to an existing feature label Sep 11, 2020
@joe94 joe94 added this to In progress in XMiDT via automation Sep 11, 2020
@joe94 joe94 linked an issue Sep 11, 2020 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Sep 12, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

0.7% 0.7% Coverage
0.0% 0.0% Duplication

XMiDT automation moved this from In progress to PRs: Approved Sep 14, 2020
@joe94 joe94 merged commit eb8ae40 into main Sep 14, 2020
XMiDT automation moved this from PRs: Approved to Done Sep 14, 2020
@joe94 joe94 deleted the feature/dynamoRefactor branch September 14, 2020 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvement or small functionality added to an existing feature
Projects
XMiDT
  
Done
Development

Successfully merging this pull request may close these issues.

Depend on dynamodb library through a layer of abstraction
2 participants