Skip to content

Commit

Permalink
adds new compare doc
Browse files Browse the repository at this point in the history
  • Loading branch information
btylerburton committed Dec 13, 2023
1 parent 73435d4 commit 0dcccaa
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/diagrams/mermaid/dest/h20_compare_dcat-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/diagrams/mermaid/dest/h20_compare_dcat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![diagram](./h20_compare_dcat-1.svg)
35 changes: 35 additions & 0 deletions docs/diagrams/mermaid/src/h20_compare_dcat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
```mermaid
flowchart TD
subgraph Harvest source
getHarvest([Download Harvest Source])
extractHarvest([Extract datasets])
hashDataset([Hash dataset])
end
subgraph Catalog
queryCKAN([Faceted Solr Query])
extractHash([create `id: sourch_hash` hashmap])
end
%% Operations
compareHash{compare hashses}
createDataset([Create new dataset])
deleteDataset([Delete old dataset])
updateDataset([Update existing dataset])
%% flow
getHarvest -- 1-to-N --> extractHarvest
extractHarvest --> hashDataset
hashDataset --> compareHash
queryCKAN -- 1-to-N --> extractHash
extractHash --> compareHash
compareHash -- ID found; Hash not same --> updateDataset
compareHash -- ID not found in Catalog --> createDataset
compareHash -- ID not found in Harvest Source --> deleteDataset
compareHash -- ID found; Hash same --> Pass([Pass])
```

1 comment on commit 0dcccaa

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
harvester
   __init__.py30100% 
harvester/db/models
   __init__.py50100% 
   models.py530100% 
harvester/extract
   __init__.py1922 89%
   dcatus.py1122 82%
harvester/utils
   __init__.py00100% 
   json.py2266 73%
   pg.py3544 89%
   s3.py2466 75%
harvester/validate
   __init__.py00100% 
   dcat_us.py240100% 
TOTAL1962090% 

Tests Skipped Failures Errors Time
29 0 💤 0 ❌ 0 🔥 11.249s ⏱️

Please sign in to comment.