-
Notifications
You must be signed in to change notification settings - Fork 30
refactor(api): move service logic to separate package #849
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #849 +/- ##
==========================================
+ Coverage 61.29% 62.18% +0.89%
==========================================
Files 282 281 -1
Lines 15331 15111 -220
==========================================
Hits 9397 9397
+ Misses 5491 5271 -220
Partials 443 443
|
cognifloyd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor nit about import sorting. LGTM otherwise.
jbrockopp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Based off of #615 #754 #809 #828 #829 #847 and #848.
This change continues the refactor efforts initially introduced in the above PRs.
This adds a new
servicepackage to thegithub.amrom.workers.dev/go-vela/server/apipackage.This contains all the same handlers that existed previously but with each of them within their own file.
Moved
planServicesto theapi/build.gofile with the intent of creating aapi/service/plan.gofile later in this refactor, which will include an exportablePlanServicesfor use inRestartBuildand scheduled builds. Open to other ideas with that too.Also changed
GetServicestoListServicesto stay consistent.