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

Cleanup of scyllaclient package #1309

Merged
merged 3 commits into from
Aug 7, 2023
Merged

Conversation

zimnx
Copy link
Collaborator

@zimnx zimnx commented Aug 4, 2023

scyllaclient package was cleaned from unused code that we inherited by
copy pasting entire package from Scylla Manager.

Summary of changes:

  • Autogenerated raw swagger client is now taken from github.com/scylladb/scylladb-swagger-go-client.
  • Client logging is now unified with our project logging library.
  • Datacenter cache was removed - we don't use Datacenter information anywhere.
  • Unused functions were removed.
  • Unused transport middlewares were removed.
  • Unused config fields were removed.
  • Added Config validation.

Prerequisites:

  • Remove replace from go.mod when scylladb-swagger-go-client repository transfer is finished

In favor of github.com/scylladb/scylladb-swagger-go-client
@zimnx zimnx added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Aug 4, 2023
@zimnx zimnx added this to the v1.10 milestone Aug 4, 2023
@zimnx zimnx requested a review from tnozicka August 4, 2023 09:51
Copy link
Member

@tnozicka tnozicka left a comment

Choose a reason for hiding this comment

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

lgtm, module the replace (the repo has already been transferred)

pkg/scyllaclient/client.go Outdated Show resolved Hide resolved
pkg/scyllaclient/config.go Outdated Show resolved Hide resolved
scyllaclient package was cleaned from unused code that we inherited by
copy pasting entire package from Scylla Manager.

Summary of changes:
* Autogenerated raw swagger client is now taken from github.com/scylladb/scylladb-swagger-go-client.
* Client logging is now unified with our project logging library.
* Datacenter cache was removed - we don't use Datacenter information anywhere.
* Unused functions were removed.
* Unused transport middlewares were removed.
* Unused config fields were removed.
* Added Config validation.
Copy link
Member

@tnozicka tnozicka left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@scylla-operator-bot scylla-operator-bot bot added the lgtm Indicates that a PR is ready to be merged. label Aug 7, 2023
@scylla-operator-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tnozicka, zimnx

The full list of commands accepted by this bot can be found 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

@zimnx zimnx merged commit 7ff286d into scylladb:master Aug 7, 2023
20 checks passed
@zimnx zimnx deleted the mz/refresh-scyllaclient branch August 7, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants