diff --git a/cms_ssd_clone_la_deployment/east-sussex b/cms_ssd_clone_la_deployment/east-sussex index febadff..9cd651a 160000 --- a/cms_ssd_clone_la_deployment/east-sussex +++ b/cms_ssd_clone_la_deployment/east-sussex @@ -1 +1 @@ -Subproject commit febadff0f8c741fc351058859f235f3112dae073 +Subproject commit 9cd651a36bd637aa56c62b70db3de811f50770ea diff --git a/cms_ssd_clone_la_deployment/knowsley b/cms_ssd_clone_la_deployment/knowsley new file mode 160000 index 0000000..9cd651a --- /dev/null +++ b/cms_ssd_clone_la_deployment/knowsley @@ -0,0 +1 @@ +Subproject commit 9cd651a36bd637aa56c62b70db3de811f50770ea diff --git a/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_20240802.sql b/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_20240802.sql index 09f66e0..eca35db 100644 --- a/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_20240802.sql +++ b/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_20240802.sql @@ -370,7 +370,7 @@ ON WHERE p.DIM_PERSON_ID IS NOT NULL AND p.DIM_PERSON_ID <> -1 - AND YEAR(p.BIRTH_DTTM) != 1900 -- #DtoI-1814 + -- AND YEAR(p.BIRTH_DTTM) != 1900 -- #DtoI-1814 AND (p.IS_CLIENT = 'Y' OR ( EXISTS ( diff --git a/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_non_core_updates.sql b/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_non_core_updates.sql index a07945b..56ccb6d 100644 --- a/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_non_core_updates.sql +++ b/cms_ssd_extract_sql/systemc/live/liquidlogic_sqlserver_v1.2.0_1_non_core_updates.sql @@ -155,7 +155,7 @@ WHERE -- ignore the admin/false records p.DIM_PERSON_ID IS NOT NULL AND p.DIM_PERSON_ID <> -1 - AND YEAR(p.BIRTH_DTTM) != 1900 + -- AND YEAR(p.BIRTH_DTTM) != 1900 -- #DtoI-1814 -- don't re-import those that are already in ssd_person AND p.DIM_PERSON_ID NOT IN (SELECT pers_person_id FROM ssd_development.ssd_person); diff --git a/setup_sparse_checkout.sh b/setup_sparse_checkout.sh index f1089aa..81e9dc9 100755 --- a/setup_sparse_checkout.sh +++ b/setup_sparse_checkout.sh @@ -24,9 +24,41 @@ git config --unset core.sparseCheckout # Initialize Sparse Checkout Without Cone Mode git sparse-checkout init +# Configure Sparse Checkout with relative paths +echo 'cms_ssd_extract_sql/systemc/live/' > .git/info/sparse-checkout -# Configure Sparse Checkout with explicit patterns -echo '/cms_ssd_extract_sql/systemc/live/' > .git/info/sparse-checkout +# Reapply Sparse Checkout +git sparse-checkout reapply + +# Set permissions (in case needed) +chmod -R 755 . + +# Checkout the main branch +git checkout main + + + +# Create necessary directories +cd /workspaces/ssd-data-model +mkdir -p cms_ssd_clone_la_deployment/knowsley +cd cms_ssd_clone_la_deployment/knowsley +# Clone the repo into the current directory +git clone --filter=blob:none --no-checkout https://github.com/data-to-insight/ssd-data-model.git . + +# Clean out any existing sparse settings +rm -f .git/info/sparse-checkout + +# Unset cone mode globally and locally +git config --global --unset core.sparseCheckoutCone +git config --global --unset core.sparseCheckout +git config --unset core.sparseCheckoutCone +git config --unset core.sparseCheckout + +# Initialize Sparse Checkout Without Cone Mode +git sparse-checkout init + +# Configure Sparse Checkout with relative paths +echo 'cms_ssd_extract_sql/systemc/live/' > .git/info/sparse-checkout # Reapply Sparse Checkout git sparse-checkout reapply @@ -38,10 +70,12 @@ chmod -R 755 . git checkout main -# Configure Sparse Checkout with explicit patterns -# echo '/cms_ssd_extract_sql/systemc/live' > .git/info/sparse-checkout -# echo '!/rebaseline_repo.sh' >> .git/info/sparse-checkout -# echo '!/setup.sh' >> .git/info/sparse-checkout -# echo '!/requirements.txt' >> .git/info/sparse-checkout -# echo '!/pyproject.toml' >> .git/info/sparse-checkout -# echo '!/poetry.lock' >> .git/info/sparse-checkout + + +# Other useful. + +# # check contents of clone folder(s) +# git ls-tree -r main --name-only | grep cms_ssd_extract_sql/systemc/live + +# # check current sparse checkout folders +# cat .git/info/sparse-checkout