Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • POD POD
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • PODPOD
  • Issues
  • #408
Closed
Open
Issue created Sep 14, 2021 by Eelco van der Wel@eelcovdwContributor

Adding ItemPropertySchema's with conflicting types through bulk should throw an error

Calling bulk API with the following payload:

{'createItems': [{'itemType': 'EmailMessage',
                  'propertyName': 'starred',
                  'type': 'ItemPropertySchema',
                  'valueType': 'Bool'},
                 {'itemType': 'EmailMessage',
                  'propertyName': 'type',
                  'type': 'ItemPropertySchema',
                  'valueType': 'Text'},
                 {'itemType': 'Account',
                  'propertyName': 'starred',
                  'type': 'ItemPropertySchema',
                  'valueType': 'Text'},
                 {'itemType': 'Account',
                  'propertyName': 'type',
                  'type': 'ItemPropertySchema',
                  'valueType': 'Text'}]}

ie, {'propertyName': 'starred', 'valueType': 'Text'} and {'propertyName': 'starred', 'valueType': 'Bool'} in the same call.

This should throw an error due to inconsistent types, but doesn't. 2 separate calls to the bulk API do throw an error as expected.

┆Issue is synchronized with this Clickup task by Unito

Edited Feb 09, 2022 by Aglaia
Assignee
Assign to
Time tracking