Skip to content

Conversation

umbynos
Copy link
Contributor

@umbynos umbynos commented Oct 10, 2023

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • Tests for the changes have been added (for bug fixes / features)
  • What kind of change does this PR introduce?

Fix regression

  • What is the current behavior?

Currently, the frontend runs a HEAD request to the v2/pkgs/tools/installed endpoint before running the GET request. Probably this broke when we bumped GOA (#815). With agent 1.3.2 the request has 200 as status code. After the bump the status code returned was 405.

  • What is the new behavior?

Since in #815 no change in the design was made, I had to implement a custom method.

  • Does this PR introduce a breaking change?

no

  • Other information:

Without this the server returns 405 when called with HEAD to `v2/pkgs/tools/installed`
This breaks the install of the tools
@umbynos umbynos added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Oct 10, 2023
@umbynos umbynos self-assigned this Oct 10, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 10, 2023

Codecov Report

❌ Patch coverage is 59.67742% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.62%. Comparing base (15fcb43) to head (c4cebc9).
⚠️ Report is 103 commits behind head on main.

Files with missing lines Patch % Lines
gen/http/tools/server/server.go 61.76% 10 Missing and 3 partials ⚠️
gen/tools/client.go 0.00% 9 Missing ⚠️
gen/http/tools/server/paths.go 0.00% 2 Missing ⚠️
gen/tools/endpoints.go 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #844      +/-   ##
==========================================
+ Coverage   19.09%   19.62%   +0.53%     
==========================================
  Files          46       46              
  Lines        3635     3684      +49     
==========================================
+ Hits          694      723      +29     
- Misses       2850     2867      +17     
- Partials       91       94       +3     
Flag Coverage Δ
unit 19.62% <59.67%> (+0.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@csarnataro csarnataro left a comment

Choose a reason for hiding this comment

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

Looks good to me.
I tested the latest build (after the HEAD method has been added to /pkgs/tools/installed) and it worked as expected.

@umbynos umbynos merged commit 9a500b4 into main Oct 10, 2023
@umbynos umbynos deleted the head-back branch October 10, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants