hpuhr / COMPASS

The OpenATS COMPASS (Compliance Assessment) tool aims at providing a generalized framework for air-traffic surveillance data analysis, visualization & evaluation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data Source Writing to Database

hpuhr opened this issue · comments

commented

If no data yet exists in the database, syncing config datasources to the database is shown as "None" actions. If they are selected, the 'Perform Operations' leads to a crash:

"
[INFO] DBOEditDataSourcesWidget: update
[INFO] DBOEditDataSourcesWidget: update: config ds 0
[INFO] DBOEditDataSourcesWidget: update: config ds 1
[INFO] DBOEditDataSourcesWidget: update: config ds 2
[INFO] DBOEditDataSourcesWidget: syncOptionsFromCfgSlot
[INFO] DBOEditDataSourcesWidget: displaySyncOptions
[INFO] DBOEditDataSourcesWidget: selectAllActionsSlot
[INFO] DBOEditDataSourceActionOptionsWidget: changedPerformSlot: 1
[INFO] DBOEditDataSourceActionOptionsWidget: changedPerformSlot: 1
[INFO] DBOEditDataSourceActionOptionsWidget: changedPerformSlot: 1
[INFO] DBOEditDataSourcesWidget: performActionsSlot
[INFO] DBOEditDataSourceActionOptions: perform: obj Radar src Config src_id 0 action None
[INFO] DBOEditDataSourceAction: perform: object src Config, 0 action None tgt ,
ATSDB-v0.4.0-x86_64.AppImage: /home/sk/atsdb/src/object/source/dboeditdatasourceaction.cpp:52: void DBOEditDataSourceAction::perform(DBObject&, const string&, const string&): Assertion `action_ != "None"' failed."

Rework to:

  • If no active data sources exist, default to a 'create all' mode for convenience
  • Add to user manual that 'Select All' only selected those actions not being none and disable those checkboxes with only none value
  • Fix crash on 'Perform Actions' with 'None' actions

Will be fixed in the next release.

Workaround:

  • Import ASTERIX/JSON data before syncing the data sources, after import it should work as described in the user manual
commented

Resolved by disabling activation of None actions