Skip to content

feat: Add missing api response types#522

Merged
gjreda merged 6 commits into
mainfrom
510-add-missing-api-response-types
Sep 8, 2023
Merged

feat: Add missing api response types#522
gjreda merged 6 commits into
mainfrom
510-add-missing-api-response-types

Conversation

@gjreda

@gjreda gjreda commented Sep 8, 2023

Copy link
Copy Markdown
Collaborator

fixes #510

@cguedes the following endpoints are still showing up as unknown:

  • read_file_api_fs__project_id___filepath__get -- I suspect this has something to do with this endpoint returning fastapi's FileResponse rather than our own definition. I tried wrapping FileResponse, but no luck.
  • head_file_api_fs__project_id___filepath__head -- doesn't return anything
  • shutdown_api_meta_shutdown_post -- doesn't return anything

@codecov

codecov Bot commented Sep 8, 2023

Copy link
Copy Markdown

Codecov Report

Merging #522 (c5ceb60) into main (e240d04) will increase coverage by 0.03%.
Report is 1 commits behind head on main.
The diff coverage is 85.56%.

@@            Coverage Diff             @@
##             main     #522      +/-   ##
==========================================
+ Coverage   81.65%   81.68%   +0.03%     
==========================================
  Files         213      215       +2     
  Lines       12098    12118      +20     
  Branches     1179     1179              
==========================================
+ Hits         9879     9899      +20     
  Misses       2205     2205              
  Partials       14       14              
Files Changed Coverage Δ
src/api/projectsAPI.ts 37.27% <0.00%> (-0.66%) ⬇️
python/sidecar/filesystem/router.py 77.08% <75.00%> (-1.18%) ⬇️
python/sidecar/meta/router.py 60.00% <75.00%> (+2.85%) ⬆️
python/sidecar/projects/service.py 92.30% <88.00%> (-2.94%) ⬇️
python/sidecar/projects/router.py 88.88% <92.85%> (+1.38%) ⬆️
python/sidecar/filesystem/schemas.py 100.00% <100.00%> (ø)
python/sidecar/filesystem/service.py 100.00% <100.00%> (ø)
python/sidecar/projects/schemas.py 100.00% <100.00%> (ø)
python/sidecar/typing.py 83.33% <100.00%> (+2.38%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

📢 Have feedback on the report? Share it here.

Comment thread python/sidecar/projects/schemas.py Outdated
@gjreda gjreda requested a review from cguedes September 8, 2023 01:30

@cguedes cguedes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is ready to go 🚀

I will see what we can do for filesystem API output files in order to adopt the new api design Dan started.

⚠️ This PR has a breaking change for the internal storage format for projectes. So everyone needs to be aware that they should yarn reset:storage after pulling main.

To help, I updated the reset script to backup the content of the folder user1 so that we can copy paste some files we might have there.

@gjreda gjreda marked this pull request as ready for review September 8, 2023 17:10
@gjreda gjreda merged commit 944ff51 into main Sep 8, 2023
@gjreda gjreda deleted the 510-add-missing-api-response-types branch September 8, 2023 17:15
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.

Add missing API response types

2 participants