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 979
    • Issues 979
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #1848

Closed
Open
Opened Jul 01, 2020 by Andrew West@awestbha

Importing subtype-specific data to existing contacts loses their other subtypes

I just tried to import subtype-specific data for existing contacts, and their other subtypes went away. To recreate on demo:

  1. Find a contact and set them to the 'Student' contact type
  2. Note their contact ID
  3. Find a custom field in a different subtype and pick a random value. Demo currently has 'Camera Skill Level' on the 'Volunteer', with possible values 1-5
  4. Create a CSV with an ID column and a Camera Skill level column:

Annotation_2020-07-01_185424

  1. Import this CSV, setting Subtype to 'Volunteer', and 'Update'

Annotation_2020-07-01_184535

  1. Map the fields appropriately:

Annotation_2020-07-01_184635

  1. Check the original contact - they are now marked as 'Volunteer' and no longer Student.

This happens no matter whether the contact has the subtype originally - ie. if you are importing data with the purpose of inherently adding this subtype, or if it's already there.

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