Opened 5 years ago

Closed 5 years ago

#2122 closed enhancement (fixed)

wcst_import - removes comment lines in ingredient file before processing

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: wcst_import Version: 9.8
Keywords: Cc: Dimitar Misev, Vlad Merticariu, Peter Baumann
Complexity: Medium

Description

wcst_import can filter these comment lines (starting with //) from ingredient file to make the ingredient file is a valid JSON string to deserialize to object, for example:

 // Describe what this ingestion hook does # Removed in the JSON string to be parsed to object
 "description": "reproject input files.",

  // Run bash command before importing file(s) to coverage # Removed in the JSON string to be parsed to object
  "when": "before_ingestion",

Change History (3)

comment:1 by Dimitar Misev, 5 years ago

But it would require depending on a new python library?

in reply to:  1 comment:2 by Bang Pham Huu, 5 years ago

Replying to dmisev:

But it would require depending on a new python library?

no library is used here, they are text replacements only.

comment:3 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.