* Check that the rake task is listed in the list of rake tasks available
```
rake -T
```
This should list all of the available rake tasks including the` rdms:crc_1280_import` task
> ```
> .....
> rake rdms:crc_1280_import:verify_import[import_id] # Verify CRC1280 import or verify CRC1280 import of an experiment
> .....
> ```
* If you want to run the verification from the rails console (and not run the rake task), start the rails console
```
bundle exec rails c
bundle exec rails c
```
```
## Run the verification
## Run the verification
The verification can be run for an entire import, or for each experiment in the import. It will generate a CSV report, one for each experiment.
The verification can be run for all the experiments in the importer, or for one specific experiment in the importer. It will give the status of the import and generate a CSV report, one for each experiment.
### Run the verification for one experiment in the import
### Run the verification for each experiment
**Arguments needed**
*To verify the import for each verification, we need two parameters
To verify the import for a specific experiment in the importer, we need two parameters
* import_id - This can be obtained from the url of an import
*`import_id` - This can be obtained from the url of an import
For example: for https://rdms.cottagelabs.com/importers/49?locale=en `import_id=49`
For example: for https://rdms.cottagelabs.com/importers/49?locale=en
* Import id for the experiment (entry_id)
`import_id=49`
*`entry_id` - Entry id for the experiment
The experiments (works) are displayed in [Work Entries](https://rdms.cottagelabs.com/importers/49?locale=en#work-entries) tab in the import UI
The experiments (works) are displayed in [Work Entries](https://rdms.cottagelabs.com/importers/49?locale=en#work-entries) tab in the import UI
...
@@ -32,10 +58,12 @@ The verification can be run for an entire import, or for each experiment in the
...
@@ -32,10 +58,12 @@ The verification can be run for an entire import, or for each experiment in the
`entry_id = 20409`
`entry_id = 20409`
* Verify the import for each experiment
**Run the verification from the rails console**
Verify the import of a specific experiment in the importer
You should see an output, similar to the lines below.
> ```
> .....
> Verifying import 49
> Experiment import status : false
> Detailed reports is available at: /shared/downloads/analysis_report_49_20409_12-05_15-35-06.csv
> ```
The task prints the verification status and the path to the full csv report.
**Expected Output**
If run from the rails console or invoking the rake task, the verification method should give you the verification status and the path to the verification report.
### Run the verification for all experiments in the import
**Arguments needed**
To verify the import for all the experiments in the importer, we need the parameter
*`import_id` - This can be obtained from the url of an import
For example: for https://rdms.cottagelabs.com/importers/49?locale=en
The task prints the verification status and the path to the csv reports (one for each experiment in the importer).
**Expected Output**
If run from the rails console or invoke the rake task, the verification method should give you the verification status and the path to the verification reports (one for each experiment in the import).
### Verification report explained
* The report name has the import id, the entry id and the timestamp of when the report was created
* The report name has the import id, the entry id and the timestamp of when the report was created
* Example report
* Example report
*[Report for entry 20409](https://gitlab.ruhr-uni-bochum.de/-/project/864/uploads/4d09369313ca5f08e9d08d13570ff2db/analysis_report_49_20409_12-03_21-23-11.csv)
*[Report for entry 20409](https://gitlab.ruhr-uni-bochum.de/-/project/864/uploads/4d09369313ca5f08e9d08d13570ff2db/analysis_report_49_20409_12-03_21-23-11.csv)