Skip to content

scenarios are not persisted correctly to/read from XLS template #104

Description

@okworx

Test case:

  • create new EPD dataset

  • choose EF3.1 profile

  • create scenarios "100% incineration" and "100% recycling", leaving group empty, selecting the former as default
    CleanShot 2024-10-14 at 17 52 23@2x

  • add modules for both scenarios
    CleanShot 2024-10-14 at 17 53 19@2x

  • synchronize results table

  • export results table to XLS template

  • add some test numbers to XLS template:
    results_EF3.1_dual_scenario.xlsx

  • create new EPD dataset

  • import XLS template

Observed behavior:

  • there are duplicate entries in the scenarios list
  • the default status is not restored
    CleanShot 2024-10-14 at 17 57 23@2x

Expected behavior:

  • only two scenarios are in the scenarios list
  • the default status is restored ("100% incineration" marked as default)
  • bonus: the correct profile is being picked up and reflected in the profile drop-down

The same behavior can be observed when explicitly assigning a group ID. When adding another scenario group and using explicit group IDs, the group IDs and default status is lost as well (example XLS template: results_EF3.1_quad_scenario.xlsx)

In general, all declared scenarios without a group ID should be treated as belonging to the same group.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions