Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 918
    • Issues 918
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #2277

Closed
Open
Opened Dec 29, 2020 by eileen@eileen🎱Owner

Expose option value ccreate metadata to the api

Overview

I'm proposing we move metadata about option values from the form to somewhere accessible.

Example use-case

Via the api, or via any new form layer we switch to, we should be able to access the metadata to build the form or interface without interacting with quickform

Current behaviour

The form 'knows' things like

  • if the option group is participant status or participant role then 'filter' should be exposed and called 'Counted'
  • visibility should be exposed for participant status
  • for some option groups is_default should be exposed
  • if the name is participant listing then description should be text not a wysiwig
  • for greetings there is an array of options for filter
  • for payment instruments financial_account_id is required, for existing ones the default can be loaded

Proposed behaviour

I'll flesh this out a bit more if I get buy in but I'm thinking we add metadata for option groups in a similar way to settings, but more optional.

Comments

I have a specific interest in payment_instrument_id - it seems it can't currently be created as an 'mgd entity and I feel that should be possible and financial_account_id should be accepted for it by the api and preferably have a default

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#2277