Skip to content

Commit

Permalink
chore: remove dataset filters for production
Browse files Browse the repository at this point in the history
  • Loading branch information
sneko committed Feb 20, 2024
1 parent 71cc43b commit d3d0a7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/features/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export async function formatDomainsIntoDatabase() {
return CsvDomainSchema.parse(record);
})
.filter((csvDomain: CsvDomainSchemaType) => {
// TODO: to remove due to tests on a small subset
if (!csvDomain.name.includes('.beta.gouv.fr')) {
// In development environment we reduce the dataset to analyze
if (process.env.APP_MODE === 'dev' && !csvDomain.name.includes('.beta.gouv.fr')) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/features/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export async function formatRepositoriesIntoDatabase() {
return JsonRepositorySchema.parse(record);
})
.filter((jsonRepository: JsonRepositorySchemaType) => {
// TODO: to remove due to tests on a small subset
if (!jsonRepository.repository_url.includes('https://github.com/betagouv/')) {
// In development environment we reduce the dataset to analyze
if (process.env.APP_MODE === 'dev' && !jsonRepository.repository_url.includes('https://github.com/betagouv/')) {
return false;
}

Expand Down

0 comments on commit d3d0a7f

Please sign in to comment.