Call peach_stats and peach_network directly (remove JSON-RPC client calls) #62

Merged
glyph merged 6 commits from direct_call_net_stats into main 2022-01-07 10:01:24 +00:00
Owner

Another step towards making peach-web leaner.

  • src/routes/status/device.rs
    • Make direct calls to peach-stats (instead of client calls via peach-lib)
  • src/routes/status/network.rs
    • Make direct calls to peach-network (instead of client calls via peach-lib)
    • Add IfaceTraffic struct and convert_traffic() to modify traffic values & assign measurement units
  • templates/status/device.html.tera
    • Remove conditional border colour rendering based on peach_stats RPC server status

CC: @notplants

Another step towards making peach-web leaner. - `src/routes/status/device.rs` - Make direct calls to peach-stats (instead of client calls via peach-lib) - `src/routes/status/network.rs` - Make direct calls to peach-network (instead of client calls via peach-lib) - Add `IfaceTraffic` `struct` and `convert_traffic()` to modify traffic values & assign measurement units - `templates/status/device.html.tera` - Remove conditional border colour rendering based on peach_stats RPC server status CC: @notplants
glyph added 6 commits 2022-01-06 10:03:08 +00:00
glyph requested review from notplants 2022-01-06 10:03:14 +00:00
glyph added the
peach-web
label 2022-01-06 10:03:30 +00:00
Owner

LGTM

is peach fully functional without the microservices now? or work is still needed?
once it is fully functional,
we should at some point,
work on updating peach-config to install and update without the microservices,
and also modify the python package building scripts too.

LGTM is peach fully functional without the microservices now? or work is still needed? once it is fully functional, we should at some point, work on updating peach-config to install and update without the microservices, and also modify the python package building scripts too.
Author
Owner

@notplants

is peach fully functional without the microservices now?

Yes, I believe so :)

we should at some point,
work on updating peach-config to install and update without the microservices,
and also modify the python package building scripts too.

Agreed. I think we can pivot to that once we have the sbot functionality incorporated into peach-web, as well as a general config file for PeachCloud.

@notplants > is peach fully functional without the microservices now? Yes, I believe so :) > we should at some point, work on updating peach-config to install and update without the microservices, and also modify the python package building scripts too. Agreed. I think we can pivot to that once we have the sbot functionality incorporated into peach-web, as well as a general config file for PeachCloud.
glyph merged commit 42774674e5 into main 2022-01-07 10:01:24 +00:00
glyph deleted branch direct_call_net_stats 2022-01-07 10:01:24 +00:00
Sign in to join this conversation.
No description provided.