diff --git a/README.md b/README.md index 68ebe0e..a8bb95a 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ sbt "runMain rpb.ETL conf/test-export-compare-strapi.flux PICK=all_equal('f36t', This selects parts of the test data and write two files: 1) for each test record, get the data from the Strapi HTTP API, convert the result to the lobid format, write to `test-lobid-output-from-strapi.json` -2) convert each record directly to lobid, write to `test-lobid-output-from-strapi.json` +2) convert each record directly to lobid, write to `test-lobid-output-from-file.json` We can then compare the two files (e.g. in VSC: Select for Compare, Format Document) to see differences. Since fields that are not defined in the Strapi content types are omitted upon import, missing data here points to missing fields in the Strapi content types. diff --git a/conf/output/test-output-85.json b/conf/output/test-output-85.json new file mode 100644 index 0000000..e69de29 diff --git a/conf/test-export-compare-strapi.flux b/conf/test-export-compare-strapi.flux index 7827808..26662c5 100644 --- a/conf/test-export-compare-strapi.flux +++ b/conf/test-export-compare-strapi.flux @@ -8,7 +8,7 @@ FLUX_DIR + "output/test-output-strapi.json" unless " + PICK + " reject() end -prepend(f00_, 'http://rpb-cms-test.lobid.org/api/" + PATH + "?populate=*&filters[f00_][$eq]=') +prepend(f00_, 'https://rpb-cms-test.lobid.org/api/" + PATH + "?populate=*&filters[f00_][$eq]=') retain(f00_) ") | literal-to-object diff --git a/conf/test-export-strapi-to-lobid.flux b/conf/test-export-strapi-to-lobid.flux index f555fdf..eaae84e 100644 --- a/conf/test-export-strapi-to-lobid.flux +++ b/conf/test-export-strapi-to-lobid.flux @@ -1,4 +1,4 @@ -"http://rpb-cms-test.lobid.org/api/articles?populate=*&pagination[pageSize]=5" +"https://rpb-cms-test.lobid.org/api/articles?populate=*&pagination[pageSize]=5" | open-http | as-records | decode-json(recordPath="data.[*].attributes")