nasa / CCDD

CFS Command and Data Dictionary Tool (CCDDT)
81 stars 31 forks source link

Importing XTCE causes project fields to duplicate #65

Closed JBBanks2 closed 5 years ago

JBBanks2 commented 5 years ago

Description

When importing XTCE that has the XML AncillaryData fields, the project fields are appended regardless of the import options selected. This occurs for every XTCE import, so you can very quickly have a ton of duplicate project fields if you import frequently.

Versions affected

v1.5.27 v2.0.2

Steps to reproduce

  1. Import an XTCE file (One is provided below)
  2. Navigate to Data > Manage project fields
  3. The project fields are appended even if they are duplicates.

Example XTCE

Click to expand ```xml CCSDS_TLM_HDR CCSDS_CMD_HDR MsgID SecHdrFuncCode
jbanks CCDD Version: 1.5.27 (7-16-2019) Date: Thu Aug 15 10:31:09 CDT 2019 Project: test_project Host: localhost:5434 Endianess: big
```
KevinMcCluney commented 5 years ago

Versions 1.5.29 and 2.0.4 have been uploaded; these check if the project-level field already exists and if so ignores the one in the import file. The Import dialog check boxes regarding fields do not apply to the project-level fields, only to tables.