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

OSD-12531: Replacing GetScripts with new GetScriptsByCluster API calls #149

Merged

Conversation

thavlice
Copy link
Contributor

What type of PR is this?

Feature (changing command to use new API)

What this PR does / Why we need it?

Changing API calls to use GetScriptsByCluster instead of GetScripts due to a bug for two comannds:

  • describe
  • list

The API call semantic is the same but with added clusterId in the API call.
Furthermore, clusterKey to clusterId transformation and loading from config file added.
Provided unit tests modified in accordance with the new behavior.

Which Jira/Github issue(s) does this PR fix?

Resolves OSD-12531

Special notes for your reviewer

Tests were modified as the expected behavior changed.

Pre-checks (if applicable)

  • Ran unit tests locally
  • Validated the changes in a cluster
  • Included documentation changes with PR

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 11, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jul 11, 2023

@thavlice: This pull request references OSD-12531 which is a valid jira issue.

In response to this:

What type of PR is this?

Feature (changing command to use new API)

What this PR does / Why we need it?

Changing API calls to use GetScriptsByCluster instead of GetScripts due to a bug for two comannds:

  • describe
  • list

The API call semantic is the same but with added clusterId in the API call.
Furthermore, clusterKey to clusterId transformation and loading from config file added.
Provided unit tests modified in accordance with the new behavior.

Which Jira/Github issue(s) does this PR fix?

Resolves OSD-12531

Special notes for your reviewer

Tests were modified as the expected behavior changed.

Pre-checks (if applicable)

  • Ran unit tests locally
  • Validated the changes in a cluster
  • Included documentation changes with PR

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

@supreeth7 supreeth7 left a comment

Choose a reason for hiding this comment

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

@thavlice can you create a follow-up Jira to phase out the old /backplane/scripts verb once this change has been adapted?

@supreeth7
Copy link
Contributor

@bmeng can you take a look here?

@samanthajayasinghe
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: samanthajayasinghe, supreeth7, thavlice

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 13, 2023
@supreeth7
Copy link
Contributor

/retest

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD f26d255 and 2 for PR HEAD d21f193 in total

@codecov-commenter
Copy link

Codecov Report

Merging #149 (d21f193) into main (c1ee3b3) will increase coverage by 2.13%.
The diff coverage is 60.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
+ Coverage   48.86%   51.00%   +2.13%     
==========================================
  Files          51       51              
  Lines        3266     3476     +210     
==========================================
+ Hits         1596     1773     +177     
- Misses       1397     1411      +14     
- Partials      273      292      +19     
Impacted Files Coverage Δ
cmd/ocm-backplane/script/describeScript.go 79.22% <60.00%> (-3.39%) ⬇️
cmd/ocm-backplane/script/listScripts.go 68.62% <60.00%> (-3.47%) ⬇️

... and 5 files with indirect coverage changes

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 14, 2023

@thavlice: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 75b8c6e into openshift:main Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants