ansibleguy / webui

Basic WebUI for using Ansible
https://webui.ansibleguy.net
GNU General Public License v3.0
94 stars 7 forks source link

Feature: Websockets for Data-Refresh #30

Open ansibleguy opened 8 months ago

ansibleguy commented 8 months ago

Scope

Backend (API)

Description

Currently we fetch all the data-entries of the current view every refresh-interval (1 sec). We then check if the data has changed using JS and update the table-rows in that case.

It would be nicer to only fetch the changed datasets. That way we could save on transferred data. This would mean we will have to pre-filter the data on the backend and implement web-sockets

This is not really an issue for now - but I dislike the current handling as it is somewhat unclean.

superstes commented 2 weeks ago

https://medium.com/@adabur/introduction-to-django-channels-and-websockets-cb38cd015e29