kartevonmorgen / kartevonmorgen.ts

Mapping-Frontend to find and add sustainable Organisations (Initiatives, Companies) and Events on Kartevonmorgen.org / MapofTomorrow.org
https://kartevonmorgen.org/
GNU General Public License v3.0
11 stars 12 forks source link

Make a fallback config-file hard coded #208

Closed wellemut closed 1 month ago

wellemut commented 4 months ago

Describe the bug The Map App is stopping. One reason could be, that the config file cant get loaded, Maybe the config file in the nextcloud is blocked by nextcloud, because the nextcloud is using/syncing the file.

But that is a bad implementation as an App should not crush completly, just because an API or a config file is not availiabl.

Solution:

Implement a hard codes version of the config file directly in the App, which gets loaded, if no other config file cant be found in a certain time.

Use the values from the main file for this implementation: https://www.kartevonmorgen.org/public/projects/main/config.json

To Reproduce happens sometimes, you never know when...

Expected behavior stable loading of the map-app. If an API or file is unavalible I expect a popup or an error message.

Screenshots grafik

Additional context The Backend got an update In the beginning of April, so the backend shouldnot be the reason for the bug. Increasing the timeout is also part of the solution: https://github.com/kartevonmorgen/kartevonmorgen.ts/issues/207

navid-kalaei commented 3 months ago

Summery of the done works

The error messages

The hard coded config

{
    "map": {
      "location": {
        "lat": 50.8129,
        "lng": 5.6030,
        "zoom": 6
      },
      "colorStyle": MapColorModes.GRAY
    },
    "popularTags": {
      "min_count": 2
    },
    "sidebar": {
      "title": "Kartevonmorgen"
    }
  }
wellemut commented 3 months ago

@alex0107 please deplay the realease: https://github.com/kartevonmorgen/kartevonmorgen.ts/releases/tag/v1.2.3

wellemut commented 1 month ago

It seems, that all instabilities are solve https://status.rhw24.it/status/allgemein