Skip to content

Conversation

@ecrupper
Copy link
Contributor

@ecrupper ecrupper commented May 18, 2023

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 service package to the github.com/go-vela/server/api package.

This contains all the same handlers that existed previously but with each of them within their own file.

Moved planServices to the api/build.go file with the intent of creating a api/service/plan.go file later in this refactor, which will include an exportable PlanServices for use in RestartBuild and scheduled builds. Open to other ideas with that too.

Also changed GetServices to ListServices to stay consistent.

@ecrupper ecrupper requested a review from a team as a code owner May 18, 2023 17:14
@ecrupper ecrupper self-assigned this May 18, 2023
@codecov
Copy link

codecov bot commented May 18, 2023

Codecov Report

Merging #849 (d4620b1) into main (5092d22) will increase coverage by 0.89%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
api/build.go 1.43% <0.00%> (-0.05%) ⬇️
api/step.go 0.00% <ø> (ø)

Copy link
Member

@cognifloyd cognifloyd left a 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.

Copy link
Contributor

@jbrockopp jbrockopp 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.

5 participants