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

Update websocket all processes #74

Merged
merged 7 commits into from
Dec 22, 2021
Merged

Conversation

tjeerddie
Copy link
Contributor

@tjeerddie tjeerddie commented Dec 22, 2021

  • improve process data in all processes websocket endpoint.
  • remove logic to send failed processes as the first websocket message, initial data will come from http request.
  • rename create_process_step_websocket_data to create_process_websocket_data.
  • rename send_process_data_to_websocket to create_process_websocket_data.
  • move logic done within process show endpoint to the show_process function, so it will also be used for the all processes websocket.
  • change the create_process_websocket_data to only return process data, the step data is already in the process data.
  • remove unnecessary process detail websocket endpoint.
  • remove engine settings from channels in send_process_data_to_websocket function, it does not need process data.
  • Load new process stat in processes service before creating websocket data.

- remove logic to send failed processes as the first websocket message, initial data will come from http request.
- rename create_process_step_websocket_data to create_process_websocket_data.
- rename send_process_data_to_websocket to create_process_websocket_data.
- move logic done within process show endpoint to the show_process function, so it will also be used for the all processes websocket.
- change the create_process_websocket_data to only return process data, the step data is already in the process data.
@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2021

Codecov Report

Merging #74 (41be4ba) into main (5bcec27) will decrease coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
- Coverage   84.51%   84.34%   -0.18%     
==========================================
  Files          84       84              
  Lines        4793     4759      -34     
  Branches      804      800       -4     
==========================================
- Hits         4051     4014      -37     
- Misses        601      609       +8     
+ Partials      141      136       -5     
Impacted Files Coverage Δ
orchestrator/api/api_v1/endpoints/processes.py 71.35% <100.00%> (-3.08%) ⬇️
orchestrator/services/processes.py 89.84% <100.00%> (+2.09%) ⬆️
orchestrator/utils/show_process.py 100.00% <100.00%> (ø)
orchestrator/websocket/__init__.py 80.64% <100.00%> (-4.29%) ⬇️
...tor/websocket/managers/memory_websocket_manager.py 57.77% <0.00%> (-22.23%) ⬇️
orchestrator/websocket/websocket_manager.py 69.04% <0.00%> (-2.39%) ⬇️
orchestrator/workflows/__init__.py 81.57% <0.00%> (+5.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bcec27...41be4ba. Read the comment docs.

Copy link
Member

@pboers1988 pboers1988 left a comment

Choose a reason for hiding this comment

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

LGTM

@pboers1988 pboers1988 merged commit fa17f00 into main Dec 22, 2021
@pboers1988 pboers1988 deleted the update-websocket-all-processes branch December 22, 2021 16:02
howderek added a commit to esnet/orchestrator-core that referenced this pull request Jan 25, 2022
…ator-core into upstream

* 'main' of git://github.com/workfloworchestrator/orchestrator-core: (26 commits)
  Websocket add ping pong and close ws on server shutdown (workfloworchestrator#85)
  fix for failing namespace based cache cleanup (workfloworchestrator#82)
  fix for failing namespace based cache cleanup (workfloworchestrator#81)
  Update core to fixed regression introduced in 0.3.0
  Ensure proces endpoint shows product info for subscriptions in processes (workfloworchestrator#80)
  Remove ResourceType ORM (workfloworchestrator#79)
  Updated orchestrator-core to be compatible with Pydantic 1.9.0 (workfloworchestrator#78)
  Update from add_set_insync_api (workfloworchestrator#76)
  Example documents on setting up the Orchestrator Core (workfloworchestrator#25)
  0.3.0-rc1
  Update websocket all processes (workfloworchestrator#74)
  Fix engine websocket endpoint (workfloworchestrator#75)
  Update from 7_implement_websocket_for_engine_settings (workfloworchestrator#70)
  Pydantic 1.9.0a1 Removing direct dependancies.
  Add nitpick configuration and add it to pre-commit (workfloworchestrator#68)
  Update pyproject.toml (workfloworchestrator#71)
  Fix github unit tests workflow from getting stuck (workfloworchestrator#69)
  Update from 1255-webserver-hot-reload-broken (workfloworchestrator#67)
  Update from add-more-docs (workfloworchestrator#66)
  Fix flake8 issues
  ...
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