constellation icon indicating copy to clipboard operation
constellation copied to clipboard

Importing from file and applying template - attributes do not update automatically if the graph types are different

Open GammaVel opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Put an X between the brackets on this line if you have done all of the following:

    • Running the latest version of Constellation

    • Attached the Support Package via Help > Support Package

    • Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ

    • Checked that your issue isn’t already filed: https://github.com/constellation-app/constellation/issues

    • Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories

Description

This is a bit of an edge case scenario that I have noticed with importing files and applying a template that has a different type of Destination Graph.

Import from file has functionality to define templates which store the type of Destination graph and the attributes that apply with the mapping file. After selecting a file to import you can apply a previously saved template which does the mapping of attributes automatically.

If you select a different type of graph to what is set in the template, once you apply the template it automatically changes the destination graph to be what is set in the template (as expected). It does not update the list of available attributes for the graph type. To see the full list of attributes you have to change to another graph type and then back again, this makes them update. It would be better if this was done automatically, or if there are any issues with this, I am prevented from applying a template that is for a different destination graph type to the one that I have currently set.

Steps to Reproduce

  1. Make sure you have a CSV data file that can be used to test this
  2. Go to Import from File
  3. Use the test file to set up a template which has the Destination graph type set to Analytic
  4. Save the template
  5. Exit out of Constellation now that the set up is complete just to start off with no previously loaded data
  6. Go back into Constellation and Import from DB, this shouldn't have any data present
  7. Select Destination Visual graph and select the same test file for importing
  8. Check the attributes that are shown - these are what are expected for the visual graph type
  9. Apply the template that was previously created for the analytic graph type
  10. Observe the Destination graph type changes automatically back to analytic (as expected)
  11. Check the attributes that are present > these are the visual graph attributes, they have not automatically updated
  12. Change the destination graph back to Visual and then back again to the analytic graph type > now you can see the correct attributes

Expected behaviour: When the template changes the graph type it should also change the available attributes shown to match the type of the graph. This means I have access to the full set of available attributes for my graph

Actual behaviour: as per the repro steps

Reproduces how often: 100%

Additional Information

image image image image

GammaVel avatar Jul 18 '22 22:07 GammaVel