Skip to content

Commit

Permalink
Merge pull request #431 from GSA/lc/1339-expand-source-list
Browse files Browse the repository at this point in the history
1339 - Expand list of seed files
  • Loading branch information
luke-at-flexion authored Feb 10, 2025
2 parents 6db2cb4 + e18d6c3 commit 5c7464b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
35 changes: 35 additions & 0 deletions libs/ingest/src/ingest.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ export class IngestService {
'sourceListOther',
'sourceListMil1',
'sourceListMil2',
'sourceListDodPublic',
'sourceListDotmil',
'sourceListFinalUrlWebsites',
'sourceListHouse117th',
'sourceListSenate117th',
'sourceListGpoFdlp',
'sourceListCisa',
'ombIdeaPublic',
'filtered',
],
Expand Down Expand Up @@ -198,6 +205,34 @@ export class IngestService {
sourceList.push('mil-sites2');
}

if (row.sourceListDodPublic.toLowerCase() === 'true') {
sourceList.push('dod_public');
}

if (row.sourceListDotmil.toLowerCase() === 'true') {
sourceList.push('dotmil');
}

if (row.sourceListFinalUrlWebsites.toLowerCase() === 'true') {
sourceList.push('final_url_websites');
}

if (row.sourceListHouse117th.toLowerCase() === 'true') {
sourceList.push('house_117th');
}

if (row.sourceListSenate117th.toLowerCase() === 'true') {
sourceList.push('senate_117th');
}

if (row.sourceListGpoFdlp.toLowerCase() === 'true') {
sourceList.push('gpo_fdlp');
}

if (row.sourceListCisa.toLowerCase() === 'true') {
sourceList.push('cisa');
}

return sourceList.join(',');
}
}
7 changes: 7 additions & 0 deletions libs/ingest/src/subdomain-row.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,12 @@ export interface SubdomainRow {
ombIdeaPublic: string;
sourceListMil1: string;
sourceListMil2: string;
sourceListDodPublic: string;
sourceListDotmil: string;
sourceListFinalUrlWebsites: string;
sourceListHouse117th: string;
sourceListSenate117th: string;
sourceListGpoFdlp: string;
sourceListCisa: string;
filtered: string;
}

0 comments on commit 5c7464b

Please sign in to comment.