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 6/7: notifications #201

Closed

Conversation

brandonforster
Copy link
Contributor

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

This PR refactors all of notification's client methods.

Signed-off-by: Brandon Forster <me@brandonforster.com>
Signed-off-by: Brandon Forster <me@brandonforster.com>
Signed-off-by: Brandon Forster <me@brandonforster.com>
} else {
gc.url = params.Url
func (gc *generalRestClient) FetchConfiguration(ctx context.Context) (string, error) {
url, err := gc.urlClient.Prefix()
Copy link
Member

Choose a reason for hiding this comment

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

Variable naming in prior PRs is urlPrefix; rename url here for consistency. Applies to any/all calls to Prefix().

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

Codecov Report

Merging #201 into master will decrease coverage by 2.54%.
The diff coverage is 23.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #201      +/-   ##
==========================================
- Coverage   48.39%   45.85%   -2.55%     
==========================================
  Files          64       64              
  Lines        2093     2133      +40     
==========================================
- Hits         1013      978      -35     
- Misses       1002     1066      +64     
- Partials       78       89      +11
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%) ⬇️
clients/general/client.go 71.42% <60%> (+3%) ⬆️
clients/command/client.go 66.66% <60%> (-7.25%) ⬇️
clients/notifications/client.go 75% <66.66%> (+12.5%) ⬆️

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...69f0ac3. Read the comment docs.

@michaelestrin michaelestrin marked this pull request as ready for review January 23, 2020 00:54
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_notification branch January 23, 2020 16:34
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.

3 participants