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

feat: Upgrade to new V2 Clients and refactor PushToCore #882

Merged
merged 3 commits into from
Jun 9, 2021

Conversation

lenny-goodell
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Using V1 clients (except Command) and PushToCore is based on V1

Issue Number: #370 & #721

What is the new behavior?

Now using V2 clients and PushToCore has been refactored to conform to V2 API/DTOs

Does this PR introduce a breaking change?

  • Yes
  • No

BREAKING CHANGE: PushToCore signatures and required parameters have changed

Are there any new imports or modules? If so, what are they used for and why?

no

Are there any specific instructions or things that should be known prior to reviewing?

Other information

package transforms

import (
"context"
Copy link
Member Author

Choose a reason for hiding this comment

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

Addition of this packaged caused name conflict to context variable in the test files, thus the rename of that variable to ctx

@codecov-commenter
Copy link

codecov-commenter commented Jun 8, 2021

Codecov Report

Merging #882 (178af8a) into master (06230dd) will increase coverage by 1.05%.
The diff coverage is 83.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #882      +/-   ##
==========================================
+ Coverage   63.08%   64.14%   +1.05%     
==========================================
  Files          32       32              
  Lines        2102     2139      +37     
==========================================
+ Hits         1326     1372      +46     
+ Misses        683      674       -9     
  Partials       93       93              
Impacted Files Coverage Δ
pkg/transforms/coredata.go 45.71% <43.33%> (-27.02%) ⬇️
internal/appfunction/context.go 93.22% <89.47%> (+2.74%) ⬆️
internal/app/configurable.go 71.42% <100.00%> (+6.01%) ⬆️
internal/app/service.go 44.29% <100.00%> (+4.11%) ⬆️
internal/bootstrap/handlers/clients.go 100.00% <100.00%> (ø)

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 06230dd...178af8a. Read the comment docs.

Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

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

some minor tweaks

internal/app/configurable.go Outdated Show resolved Hide resolved
internal/app/configurable.go Outdated Show resolved Hide resolved
internal/app/configurable.go Outdated Show resolved Hide resolved
internal/bootstrap/handlers/clients.go Outdated Show resolved Hide resolved
internal/bootstrap/handlers/clients.go Outdated Show resolved Hide resolved
pkg/interfaces/context.go Show resolved Hide resolved
closes #370 & #721

BREAKING CHANGE: PushToCore signatures and required parameters have changed

Signed-off-by: lenny <[email protected]>
Copy link
Contributor

@jim-wang-intel jim-wang-intel left a comment

Choose a reason for hiding this comment

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

LGTM

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.

SDK: Update PushToCore for V2 Client changes SDK: Consume core services V2 APIs via go-mod-core-contracts
3 participants