Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel Plugin Config Option of type Boolean is stored as a string in the database #267

Open
oxzi opened this issue Aug 1, 2024 · 0 comments

Comments

@oxzi
Copy link
Member

oxzi commented Aug 1, 2024

After creating a channel plugin with the following shortened config_attrs value in the available_channel_type table, the stored config in the channels table looks like this.

  • available_channel_type.config_attrs:
[
  {
    "name": "tls_insecure",
    "type": "bool",
    "label": {
      "de_DE": "Keine TLS-Verifizierung",
      "en_US": "No TLS Verification"
    },
    "help": {
      "de_DE": "Führe keine TLS-Verifizierung durch. Dies vermag unsicher zu sein.",
      "en_US": "Skip TLS verification. This might be insecure."
    },
    "default": false,
    "min": null,
    "max": null
  }
]
  • config.channels:
{
  "tls_insecure": "n"
}

The boolean value will be stored as a string of either "y" or "n" instead of an expected JSON boolean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant