Generate Flow types from properties in entities.json

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Normal
    • None
    • Affects Version/s: None
    • Component/s: JavaScript

      Some hard-coded Flow.js type definitions (MergeableEntityT, MergeableEntityTypeT, TaggableEntityT, TaggableEntityTypeT...) are mapping the corresponding properties in the file "entities.json" (now generated from "entities.mjs"). It violates the MVC pattern as the code under "root" is supposed to implement the view rather than define the model. Also it mistakenly allows Flow types to mismatch properties defined in "entities.json" and used by the back-end.

      A solution would be to write a script that generates the needed Flow types from "entities.mjs" and a mapping from property names to needed Flow type names.

            Assignee:
            Unassigned
            Reporter:
            yvanzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package