Skip to content

Deterministic IDs #119

@Snugug

Description

@Snugug

In order to let the JavaScript compiled to be cached the IDs that the form generation creates needs to be deterministic.

Feature: Deterministic IDs
  As an implementor
  I want generated IDs for the form and scripts to be the same with the same content types
  So that I can cache the results to improve performance of my application

  Scenario: Generate
    Given that the same type definition is passed in to the form render
     When an input's ID gets generated
     Then the same IDs should be generated each time that type is run through the form render

  Scenario: JavaScript
    Given that generated IDs are deterministic
      And that some forms may have repeatable IDs
      And that JavaScript may not be generated with each form
     When form JavaScript instantiates
     Then it should find all repeatable IDs based on the deterministic ID
      And it should automatically set up validation for each repeatable ID

Deterministic IDs

  • Generate
  • JavaScript

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions