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

feat: web call sidecar http #382

Merged
merged 7 commits into from
Aug 21, 2023
Merged

feat: web call sidecar http #382

merged 7 commits into from
Aug 21, 2023

Conversation

cguedes
Copy link
Collaborator

@cguedes cguedes commented Aug 18, 2023

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
Copy link

codecov bot commented Aug 18, 2023

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
python/sidecar/http.py Outdated Show resolved Hide resolved
python/sidecar/http.py Outdated Show resolved Hide resolved
python/sidecar/http.py Outdated Show resolved Hide resolved
python/sidecar/http.py Outdated Show resolved Hide resolved
- Update HTTP api interface
- Update format save rules for python
@@ -13,6 +13,11 @@
"[typescript]": {
"editor.formatOnSave": true
},
"[python]": {
"editor.formatOnSave": false,
Copy link
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
9 of 11 checks passed
@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