Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #6025
Closed
Open
Issue created Sep 06, 2019 by bmortier@bmortierMaintainer

Handling of booleans in CSV import

It is hard and not intuitive to use boolean attributes in CSV import.

Actual behavior

Setting TRUE in fixed values or CSV data does not work, you have to put 1. (this was tested on force GID, should be tested on other boolean fields as well to check consistency)

Expected behavior

  • Boolean attributes should show TRUE and FALSE options as does SelectAttributes, without the need to add fixed values by hand
  • When using fixed values or CSV data, TRUE and FALSE string should be supported since this is the LDAP representation for booleans. 0/1 should also work. (for booleans which use another LDAP representation, it should also support their LDAP representation - unless it’s reversed true/false)

This changes may impact webservices as well (csv import uses serialization on templates which I think webservice also use, should be checked)

Edited Sep 12, 2019 by bmortier
Assignee
Assign to
Time tracking