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

refactor: nested api/worker #567

Merged
merged 8 commits into from
Mar 19, 2024
Merged

refactor: nested api/worker #567

merged 8 commits into from
Mar 19, 2024

Conversation

plyr4
Copy link
Contributor

@plyr4 plyr4 commented Mar 18, 2024

waiting on go-vela/server#997 and go-vela/sdk-go#298

also, imports for touched files follow the new pattern. see: go-vela/server#1077

@plyr4 plyr4 requested a review from a team as a code owner March 18, 2024 18:18
@plyr4 plyr4 marked this pull request as draft March 18, 2024 18:18
@plyr4 plyr4 marked this pull request as ready for review March 19, 2024 18:12
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.71%. Comparing base (5fede35) to head (45a8624).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #567   +/-   ##
=======================================
  Coverage   80.71%   80.71%           
=======================================
  Files          69       69           
  Lines        3277     3277           
=======================================
  Hits         2645     2645           
  Misses        468      468           
  Partials      164      164           

w.RunningBuildIDs = append(w.RunningBuildIDs[:i], w.RunningBuildIDs[i+1:]...)
for i, v := range w.RunningBuilds {
if v.GetID() == item.Build.GetID() {
w.RunningBuilds = append(w.RunningBuilds[:i], w.RunningBuilds[i+1:]...)
Copy link
Contributor

Choose a reason for hiding this comment

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

If we upgrade to Go 1.22, we could use slices.Concat here.... just noting 😄

@plyr4 plyr4 merged commit d872e67 into main Mar 19, 2024
11 of 13 checks passed
@plyr4 plyr4 deleted the refactor/nested-api/worker branch March 19, 2024 19:09
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.

3 participants