complexdatacollective / Server

A tool for storing, analyzing, and exporting Network Canvas interview data.
http://networkcanvas.com/
GNU General Public License v3.0
2 stars 2 forks source link

implement stale data methods #305

Closed jthrilly closed 3 years ago

jthrilly commented 3 years ago

Fixes https://github.com/complexdatacollective/Server/issues/298

Implements an IPC event that notifies the GUI that its data is stale. Components can listen for this event and call their backend data endpoints if they wish.

Right now the stale event is emitted when session data is added or deleted, and the withSessions HOC, which is attached to the workspace screen is the only component that updates itself using it.

To test, import files (either from NC, ignoring the error handling issues which are fixed in another PR) or from a file. Notice the graphs and session list update.