XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • None
    • None
    • None

      • Add on the "HOME" screen a button "Import Type"
        • When selected it shall open a modal that shall allow the user to select the type being imported ("Data type" but more to be added) and file browser to allow selection of a yaml file
        • When the values are entered the data type component (ESTU-382) will be opened with "Create" button and a "x" for cancel (similar to VFCs). The values for 'Name' and 'Description' shall be populated based on the contents of the selected file. 
        • The user must select a model from the drop down list for the "Create" button to be enable. A message shall be displayed indicating the model must be selected until the user selects the model (to make it obvious the reason the create button is disabled)
        • Clicking the "Create" button shall invoke an API to create the data type.
        • There is an existing API for creating multiple data types that takes a zip file. We could re-use this but it would seem more appropriate to create a separate endpoint for uploading a single data type that takes a single yaml file or just the definition of the data type rather than a zip.  The new endpoint shall re-use the code for the existing endpoint (without the zip file handling)
        • Care must be taken to ensure the data type cache is updated when changes are made
        • If the provided yaml file is invalid an appropriate error message shall be displayed to the user

            franciscovila franciscovila
            franciscovila franciscovila
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: