Skip to content

Feature request: workflow to update servers data periodically #2919

Description

@shwoop

What's the feature 🧐

There is a lot of noise relating to the hard coded servers.json list being out of date.

  • Many issues are opened.
  • Many PRs are also opened.

I can see some "solutions" that should not be too hard to implement:

  • Update via workflow
  • Update on first run
  • Add notices
  • ...?

Update on workflow

On a schedule (weekly/monthly) a workflow will run.
The workflow will execute the existing update functionality against all providers.
If a diff highlights changes, it will open a PR.

pros
  • Will automatically highlight server config changes from provider.
cons
  • Adds load to maintainer, having to approve and release the generated changes.
  • Frequency may not be enough to avoid issues being raised.

Update on first run

When running, if STORAGE_FILEPATH is specified but the file does not exist (implying first run), we run the update logic against the configured provider.

Probably want to have it behind a setting so the application is not too spammy.

pros
  • Very little additional load for maintainer.
  • Easy for users to manage (set setting to true).
cons
  • Requires code change.
  • May be some tangled dependency: need servers.json to connect vpn but need vpn connection to update servers.json.

Add notices

Update the Issue and Pull request templates to mention that the default config may be outdated and how to run the update command.

pros
  • No additional load for maintainer.
  • Trivial change.
cons
  • Users may ignore the notices
  • The manual process is not trivial.

Extra information and references

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions