Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions indexes/repo/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"index.mapping.total_fields.limit": 2000,
"analysis": {
"filter": {
"english_stop": {
Expand Down
1 change: 1 addition & 0 deletions manifest-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ applications:
CF_STAGING_TIMEOUT: 15
CF_STARTUP_TIMEOUT: 15
CLOUD_GOV: true
NODE_ENV: production
services:
- code_gov_elasticsearch
stack: cflinuxfs2
Expand Down
1 change: 1 addition & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ applications:
CF_STAGING_TIMEOUT: 15
CF_STARTUP_TIMEOUT: 15
CLOUD_GOV: true
NODE_ENV: production
services:
- code_gov_elasticsearch
stack: cflinuxfs2
Expand Down
2 changes: 1 addition & 1 deletion services/formatter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class Formatter {
return new Promise((resolve, reject) => {
let formattedRepo;
try {
if(schemaVersion === '2.0.1') {
if(schemaVersion === '2.0.0' || schemaVersion === '2.0.1') {
formattedRepo = this._formatRepo(repo);
} else {
this._upgradeProject(repo);
Expand Down
2 changes: 1 addition & 1 deletion services/indexer/repo/AgencyJsonStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AgencyJsonStream extends Transform {
}

_getAgencyCodeJson(agency){
logger.info('Entered saveFetchedCodeJson - Agency: ', agency.acronym);
logger.info('Entered getAgencyCodeJson - Agency: ', agency.acronym);

if(this.config.prod_envs.includes(process.env.NODE_ENV)) {
const errorMessage = 'FAILURE: There was an error fetching the code.json:';
Expand Down