Skip to content

Commit

Permalink
Update export test and comparison workflows, README (RPB-59)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Mar 12, 2024
1 parent 5dae350 commit 963f8bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Empty file added conf/output/test-output-85.json
Empty file.
2 changes: 1 addition & 1 deletion conf/test-export-compare-strapi.flux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion conf/test-export-strapi-to-lobid.flux
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 963f8bc

Please sign in to comment.