Skip to content

Commit

Permalink
Default sorting by confirmation date #2098 (#2540)
Browse files Browse the repository at this point in the history
* Setup default sorting by confirmation date and added new indexes to MongoDB
* Fixed cypress tests and updated indexes migratons
* Fix and update cypress tests
* Update package.json package-lock.json
  • Loading branch information
maciej-zarzeczny authored Mar 9, 2022
1 parent a186510 commit df2f583
Show file tree
Hide file tree
Showing 17 changed files with 51,944 additions and 51,784 deletions.
33 changes: 16 additions & 17 deletions data-serving/data-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,16 @@ if (!deployment_envs.includes(env.SERVICE_ENV)) {
app.set('port', env.PORT);

// log all non-200 responses: this needs to come _before_ any middleware or routers
app.use(expressWinston.logger({
transports: [
new winston.transports.Console(),
],
format: winston.format.json(),
/* don't log user info. We don't get user cookies or passwords in this service, so it's just
* belt-and-braces to ensure we don't log the API key if it was forwarded from the curator service.
*/
headerBlacklist: ['X-Api-Key'],
}));

app.use(
expressWinston.logger({
transports: [new winston.transports.Console()],
format: winston.format.json(),
/* don't log user info. We don't get user cookies or passwords in this service, so it's just
* belt-and-braces to ensure we don't log the API key if it was forwarded from the curator service.
*/
headerBlacklist: ['X-Api-Key'],
}),
);

app.use(bodyParser.json({ limit: '50mb' }));
app.use(
Expand Down Expand Up @@ -172,12 +171,12 @@ apiRouter.get('/excludedCaseIds', caseController.listExcludedCaseIds);
app.use('/api', apiRouter);

// report errors in the pipeline - this has to come after all other middleware and routers
app.use(expressWinston.errorLogger({
transports: [
new winston.transports.Console(),
],
format: winston.format.json(),
}));
app.use(
expressWinston.errorLogger({
transports: [new winston.transports.Console()],
format: winston.format.json(),
}),
);

(async (): Promise<void> => {
try {
Expand Down
Loading

0 comments on commit df2f583

Please sign in to comment.