tomudding / 2IOA0-DBL-HTI-Webtech

2 stars 2 forks source link

Implement APP_CONTEXT for separation of graph data shared on server #152

Closed tomudding closed 5 years ago

tomudding commented 5 years ago

Implements a global variable APP_CONTEXT which stores data based on the current session. This allows multiple users to use the tool without overwriting each other's graphs.

Please note that this only works on 1 (one) worker. Multiple workers use different environments for load-spreading, which also creates multiple global environments.

Fixes #136

tomudding commented 5 years ago

@Yvee1 I'll resolve the merge conflicts on my branch by copying what you and Sophia have done.

tomudding commented 5 years ago

There is a slight problem, merging will cause things to break. I moved a lot of functions and you have changed those functions, but it takes more time to change it now then after the merge.