Skip to content

feat: web call sidecar http#382

Merged
cguedes merged 7 commits into
mainfrom
347-web-call_sidecar_http
Aug 21, 2023
Merged

feat: web call sidecar http#382
cguedes merged 7 commits into
mainfrom
347-web-call_sidecar_http

Conversation

@cguedes

@cguedes cguedes commented Aug 18, 2023

Copy link
Copy Markdown
Collaborator

This PR fixes #380 that allows the web application to call the sidecar commands via HTTP interface.
Also adds utility startup scripts and updates README.md

@cguedes cguedes requested a review from sehyod August 18, 2023 14:40
@cguedes cguedes marked this pull request as ready for review August 18, 2023 14:40
@codecov

codecov Bot commented Aug 18, 2023

Copy link
Copy Markdown

Codecov Report

Merging #382 (f2fc226) into main (8cff93a) will decrease coverage by 0.16%.
The diff coverage is 22.22%.

@@            Coverage Diff             @@
##             main     #382      +/-   ##
==========================================
- Coverage   84.25%   84.10%   -0.16%     
==========================================
  Files         174      174              
  Lines        9946     9964      +18     
  Branches     1097     1097              
==========================================
  Hits         8380     8380              
- Misses       1555     1573      +18     
  Partials       11       11              
Files Changed Coverage Δ
src/api/sidecar.ts 55.42% <0.00%> (-16.46%) ⬇️
src/atoms/projectState.ts 38.27% <ø> (+0.46%) ⬆️
python/sidecar/http.py 88.63% <72.72%> (ø)

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

@cguedes cguedes requested a review from gjreda August 18, 2023 14:48
Comment thread python/sidecar/http.py Outdated
Comment thread python/sidecar/http.py Outdated
Comment thread python/sidecar/http.py Outdated
Comment thread python/sidecar/http.py Outdated
- Update HTTP api interface
- Update format save rules for python
Comment thread .vscode/settings.json
"editor.formatOnSave": true
},
"[python]": {
"editor.formatOnSave": false,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@gjreda added this configurations to prevent VSCode from automatically format the python code with prettier.
Let me know what is the code formatter we should use and I can configure it instead of "ms-python.python".

@cguedes cguedes merged commit 2753fdf into main Aug 21, 2023
@cguedes cguedes deleted the 347-web-call_sidecar_http branch August 21, 2023 08:42
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.

Frontend sidecar.ts facade that calls Tauri or HTTP backend APIs

3 participants