Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2768

Display of Inputs for any Uploader in Operation overlay fails

    XMLWordPrintable

Details

    • VBC Sprint 8
    • 8.2 Pipeline Integration

    Description

      Project - Data Structure Run Region Mapping uploader (or any other uploader) with success

      Project - Operations page - Click on Op details to show the overlay with the Operation Inputs.

      An error can be observed in the server logs:

      2020-08-03 02:00:36,833 - ERROR - tvb.core.services.project_service - Could not load details for operation f6edfa0a-d513-11ea-a51c-a45e60e5b22f
      Traceback (most recent call last):
        File "/Users/lia.domide/WORK/TVB/root-git/tvb-root/framework_tvb/tvb/core/services/project_service.py", line 788, in _review_operation_inputs
          return review_operation_inputs_from_adapter(adapter, operation)
        File "/Users/lia.domide/WORK/TVB/root-git/tvb-root/framework_tvb/tvb/core/adapters/inputs_processor.py", line 75, in review_operation_inputs_from_adapter
          inputs_datatypes, changed_attr = _review_operation_inputs_for_adapter_model(form_fields, form_model, view_model)
        File "/Users/lia.domide/WORK/TVB/root-git/tvb-root/framework_tvb/tvb/core/adapters/inputs_processor.py", line 52, in _review_operation_inputs_for_adapter_model
          attr_default = getattr(form_model, field.name)
        File "/Users/lia.domide/WORK/TVB/root-git/tvb-root/scientific_library/tvb/basic/neotraits/_attr.py", line 170, in __get__
          'Use a default or assign a value before reading it', attr=self)
      tvb.basic.neotraits.ex.TraitAttributeError: required attribute referenced before assignment. Use a default or assign a value before reading it
        attribute tvb.adapters.uploaders.region_mapping_importer.RegionMappingImporterModel.mapping_file = Str(field_type=<class 'str'>, default=None, required=True)
      

       Indeed, we can not preserve the original uploaded inout file for the uploaders, but we should find a solution to display nicely here the details without telling the user that the "Algorithms changed ..." which is not true.

      Gliffy Diagrams

        Attachments

          Activity

            People

              adrian.dordea Adrian Dordea
              lia.domide Lia Domide
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 30 minutes Time Not Required
                  3h 30m