From ac0de808457ff17b77294dc85eea283dab618cd2 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Wed, 13 Apr 2016 11:11:24 +0100 Subject: [PATCH] Implement two-phase fetch/process import for eduGAIN. New target inc.edugain.download acquires new eduGAIN metadata and (if successful) writes it to a file which is then used instead of a direct download by the import pipeline. For consistency, the intermediate file is also used by inc.edugain.report. --- build.xml | 22 ++++++++++- mdx/incommon/.gitignore | 1 + mdx/incommon/download-edugain.xml | 61 +++++++++++++++++++++++++++++++ mdx/incommon/import.xml | 28 +++++++++++++- mdx/incommon/report.xml | 28 +++++++++++++- 5 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 mdx/incommon/download-edugain.xml diff --git a/build.xml b/build.xml index 22d3b7bc..86c81138 100644 --- a/build.xml +++ b/build.xml @@ -1299,6 +1299,13 @@ --> + + + + + Downloading eduGAIN aggregate to ${mda.inc.edugain.xml}... + + Download to ${mda.inc.edugain.xml} completed. + + - Looking for errors in eduGAIN entities... + Looking for errors in eduGAIN entities from ${mda.inc.edugain.xml}... Report complete. diff --git a/mdx/incommon/.gitignore b/mdx/incommon/.gitignore index 43811e09..0ebbc03b 100644 --- a/mdx/incommon/.gitignore +++ b/mdx/incommon/.gitignore @@ -1,3 +1,4 @@ +edugain.xml exported.xml imported.xml production.xml diff --git a/mdx/incommon/download-edugain.xml b/mdx/incommon/download-edugain.xml new file mode 100644 index 00000000..bf0c11ef --- /dev/null +++ b/mdx/incommon/download-edugain.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mdx/incommon/import.xml b/mdx/incommon/import.xml index 5579320d..d9a86965 100644 --- a/mdx/incommon/import.xml +++ b/mdx/incommon/import.xml @@ -39,7 +39,33 @@ - + + + + + + + + + + + + + + + + + + diff --git a/mdx/incommon/report.xml b/mdx/incommon/report.xml index fafdc182..774071f6 100644 --- a/mdx/incommon/report.xml +++ b/mdx/incommon/report.xml @@ -41,7 +41,33 @@ - + + + + + + + + + + + + + + + + + +