quintel / etflex

An interface for the Energy Transition Model for beginners and those in education
https://light.energytransitionmodel.com
1 stars 2 forks source link

Add under maintenance routing to game #496

Open mabijkerk opened 9 months ago

mabijkerk commented 9 months ago

With recent changes to heat demand in the built environment, we are postponing the update of the game until we have a clear long-term vision for it. This requires both internal and external discussions. In the meantime, the game should be unavailable to our users. To be precise, there are two games, both hosted on https://light.energytransitionmodel.com/. The "Balance energy demand and supply" game already no longer works.

Screenshot 2024-01-18 at 10 46 44
thomas-qah commented 9 months ago

Having looked at the structure of the application, I would recommend one of the following actions (plans) to make the game(s) unavailable for now:

  1. Use the current application setup and simply do not list any of the games (called scenes in the application) any longer but replace them with a "under maintenance" message. Scenes are defined here in the controller, and displayed here in the view.
  2. From a security perspective, less complexity equals smaller attack surface. To achieve this we could simply cut out the etflex application and replace it with a simple static HTML page (maybe in two versions, English and Dutch, with the former being the default one).
mabijkerk commented 9 months ago

Thanks for this @thomas-qah. I think option 2 would be my preferred option, as long as we do not delete any of the existing content. For the local versus global tool we did something similar, see https://github.com/quintel/etmodel/pull/4075/commits/b08c3849abaab4db68c038becd87f338693316c7. This has the following look in the ETM when you visit https://energytransitionmodel.com/local-globall:

Screenshot 2024-01-24 at 08 29 10

Is option 2 in line with the screenshot presented above @thomas-qah?

thomas-qah commented 9 months ago

as long as we do not delete any of the existing content.

Definitely! In option 2 (and option 3, see below), the etflex repository would remain as-is.

For the local versus global tool we did something similar.

Interesting! That could be our third option: simply let requests to light.energytransitionmodel.com redirect to a URL in etmodel (such as energytransitionmodel.com/game or /light or so), and display a simple 'under maintenance' page there. This might be the cleanest option. What do you think @mabijkerk?

noracato commented 9 months ago

That could be our third option: simply let requests to light.energytransitionmodel.com redirect to a URL in etmodel (such as energytransitionmodel.com/game

Great thought! I like this solution, simple and clean

noracato commented 9 months ago