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

Refactor Client Code, part 3/7: core-data #198

Closed

Conversation

brandonforster
Copy link
Contributor

This PR is the third part of several working on #196.

This PR refactors all of core-data's clients and updates their unit tests.

To test, actuate the endpoints in the core-data REST client.

Signed-off-by: Brandon Forster <me@brandonforster.com>
Signed-off-by: Brandon Forster <me@brandonforster.com>
@codecov-io
Copy link

codecov-io commented Jan 16, 2020

Codecov Report

Merging #198 into master will decrease coverage by 2.43%.
The diff coverage is 14.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   48.39%   45.96%   -2.44%     
==========================================
  Files          64       64              
  Lines        2093     2145      +52     
==========================================
- Hits         1013      986      -27     
- Misses       1002     1074      +72     
- Partials       78       85       +7
Impacted Files Coverage Δ
clients/coredata/reading.go 16.12% <11.36%> (-23.09%) ⬇️
clients/coredata/event.go 23.71% <15.62%> (-23.26%) ⬇️
clients/coredata/value_descriptor.go 36.7% <16.27%> (-18.37%) ⬇️

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 6abf550...dd15615. Read the comment docs.

clients/coredata/event.go Outdated Show resolved Hide resolved
clients/coredata/event.go Outdated Show resolved Hide resolved
clients/coredata/event.go Show resolved Hide resolved
clients/coredata/event.go Outdated Show resolved Hide resolved
clients/coredata/event_test.go Outdated Show resolved Hide resolved
clients/coredata/reading.go Outdated Show resolved Hide resolved
clients/urlclient/registry_test.go Outdated Show resolved Hide resolved
Signed-off-by: Brandon Forster <me@brandonforster.com>
@brandonforster
Copy link
Contributor Author

recheck

@brandonforster brandonforster changed the title Refactor Client Code, part 3: core-data Refactor Client Code, part 3/7: core-data Jan 20, 2020
clients/urlclient/registry_test.go Outdated Show resolved Hide resolved
clients/urlclient/registry_test.go Show resolved Hide resolved
Signed-off-by: Brandon Forster <me@brandonforster.com>
@brandonforster
Copy link
Contributor Author

@michaelestrin let me know if this looks good and if so, I'll kick off the rebase cascade and update the names of the URL variables to urlPrefix.

Signed-off-by: Brandon Forster <me@brandonforster.com>
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

Code changes look fine. I'll defer to others that know this code better on final approval.

michaelestrin pushed a commit that referenced this pull request Jan 23, 2020
Squashed PRs:

#198
#199
#200
#201
#202

Signed-off-by: Brandon Forster <me@brandonforster.com>
@michaelestrin
Copy link
Member

PR content included in #202.

@brandonforster brandonforster deleted the issue_196_data branch January 23, 2020 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants