Skip to content

Commit

Permalink
LL clone tests 1
Browse files Browse the repository at this point in the history
  • Loading branch information
robjharrison committed Aug 6, 2024
1 parent 9cd651a commit c34d91e
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cms_ssd_clone_la_deployment/east-sussex
Submodule east-sussex updated from febadf to 9cd651
1 change: 1 addition & 0 deletions cms_ssd_clone_la_deployment/knowsley
Submodule knowsley added at 9cd651
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
52 changes: 43 additions & 9 deletions setup_sparse_checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit c34d91e

Please sign in to comment.