Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 409
    • Issues 409
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Merge requests
  • !2334

Feature: Support boolean config fields in plugins

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Philipp Wolfer requested to merge phw/funkwhale:plugins-support-bool-field into develop Jan 22, 2023
  • Overview 9
  • Commits 1
  • Pipelines 5
  • Changes 3

This extends the front UI for plugin preferences to render the UI for boolean config values.

This allows rendering a config like:

conf=[
    {"name": "server_url", "type": "text", "label": "Maloja server URL"},
    {"name": "api_key", "type": "text", "label": "Your Maloja API key"},
    {"name": "nofix", "type": "boolean", "label": "Skip server-side metadata fixing", "default": False},
],

as

grafik

So far this was unsupported in the frontend, even though some of the backend tests in test_plugins.py used boolean config fields.

Edited Jan 22, 2023 by Philipp Wolfer
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: plugins-support-bool-field