Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-13003

Generate Flow types from properties in entities.json

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • 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.

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

              Created:
              Updated:

                Version Package