Opened 4 years ago

Closed 4 years ago

#2422 closed defect (fixed)

wcst_import - support parameter to store the imported files in the ingredients file

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

Description

In wcst_import, input files are referenced as ${file:path} parameter.
It needs another parameter to store the imported file ${imported_file:path} which can be used in the hook's after_ingestion.

For example:

  "hooks": [
      {
        "description": "import processed files by WCPS to another coverage",
        "when": "after_ingestion",
        "cmd": "bash import_script.sh ${imported_file:path}",
        "abort_on_error": true
      }
  ]

Change History (3)

comment:1 by Dimitar Misev, 4 years ago

I don't understand, what is the difference between input file, and imported file?

comment:2 by Bang Pham Huu, 4 years ago

imported file can have less files than input files. Only files which were actually imported are processed.

For example, some files are broken / in the .resume.json file.
Input files has 10 files, but only 2 files were imported (8 files were skipped).

Last edited 4 years ago by Bang Pham Huu (previous) (diff)

comment:3 by Bang Pham Huu, 4 years ago

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