Skip to content

System data model validation errors do not prevent updates #8486

Description

@Fyorl

Originally reported by Mana#4176 https://discord.com/channels/170995199584108546/956306859491471420/1037107934645202985

ALL MODULES DISABLED? true
OS, Hosting, Browser (if applicable): Win10, Electron
Short Description of bug: System DataModel validation errors do not block document updates.
Simple steps to reproduce the bug:

  1. Define model for item with for example required string field with blank:false.
  2. Create that item, update it with the string field set to empty string to prompt validation error..
  3. The item appears as if the update did not go through.
  4. Refresh, and the item is gone due to validation error, with the stringfield empty despite the validation failure for that update.

(In case that repro does not work, the exact test case was ArrayField(EmbeddedDataField(DataModelWithTheRequiredField)))

Activity

  1. added
    bugFunctionality which is not working as intended
    data-modelsIssues related to data models and schema changes
    on Nov 7, 2022
  2. self-assigned this
    on Nov 7, 2022
  3. Fyorl commented on Nov 7, 2022

    @Fyorl
    ContributorAuthor

    Some additional context from discord: The item is marked as invalid after refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugFunctionality which is not working as intendeddata-modelsIssues related to data models and schema changes

Type

No type

Fields

Priority

None yet

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions