Skip to content

Commit

Permalink
Merge branch 'master' into DOP-4177
Browse files Browse the repository at this point in the history
  • Loading branch information
mayaraman19 authored Dec 18, 2023
2 parents 2874b2b + c15b72c commit cd1a402
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN cd ./modules/oas-page-builder \
FROM ubuntu:20.04
ARG WORK_DIRECTORY=/home/docsworker-xlarge
ARG SNOOTY_PARSER_VERSION=0.15.0
ARG SNOOTY_FRONTEND_VERSION=0.15.1.1c
ARG SNOOTY_FRONTEND_VERSION=0.15.2
ARG MUT_VERSION=0.10.7
ARG REDOC_CLI_VERSION=1.2.2
ARG REDOC_CLI_VERSION=1.2.3
ARG NPM_BASE_64_AUTH
ARG NPM_EMAIL
ENV DEBIAN_FRONTEND=noninteractive
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.enhanced
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN cd ./modules/oas-page-builder \
FROM ubuntu:20.04
ARG WORK_DIRECTORY=/home/docsworker-xlarge
ARG SNOOTY_PARSER_VERSION=0.15.0
ARG SNOOTY_FRONTEND_VERSION=0.15.1.1c
ARG SNOOTY_FRONTEND_VERSION=0.15.2
ARG MUT_VERSION=0.10.7
ARG REDOC_CLI_VERSION=1.2.2
ARG REDOC_CLI_VERSION=1.2.3
ARG NPM_BASE_64_AUTH
ARG NPM_EMAIL
ENV DEBIAN_FRONTEND=noninteractive
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM arm64v8/ubuntu:20.04
ARG NPM_BASE_64_AUTH
ARG NPM_EMAIL
ARG SNOOTY_PARSER_VERSION=0.15.0
ARG SNOOTY_FRONTEND_VERSION=0.15.1.1c
ARG SNOOTY_FRONTEND_VERSION=0.15.2
ARG MUT_VERSION=0.10.7
ARG REDOC_CLI_VERSION=1.2.2
ARG REDOC_CLI_VERSION=1.2.3
ARG NPM_BASE_64_AUTH
ARG NPM_EMAIL
ENV DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 1 addition & 1 deletion modules/persistence/src/services/metadata/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const insertMergedMetadataEntries = async (buildId: ObjectId, metadata: M
export const deleteStaleMetadata = async (metadata: Metadata) => {
try {
const { project, branch } = metadata;
const LIMIT = 4;
const LIMIT = 49;
// get most recent metadata for this project-branch
const snooty = await db();
const entries = await snooty
Expand Down
6 changes: 3 additions & 3 deletions modules/persistence/tests/metadata/metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('metadata module', () => {
describe('deleteStaleMetadata', () => {
// upserting data
const testData: Document[] = [];
for (let idx = 0; idx < 10; idx++) {
for (let idx = 0; idx < 100; idx++) {
const buildId = new ObjectId();
const testDoc = {
...meta,
Expand All @@ -95,9 +95,9 @@ describe('metadata module', () => {
_id: -1,
})
.toArray();
expect(res.length).toEqual(4);
expect(res.length).toEqual(49);
for (let idx = 0; idx < res.length; idx++) {
expect(res[idx].idx).toEqual(9 - idx);
expect(res[idx].idx).toEqual(99 - idx);
}
});
});
Expand Down

0 comments on commit cd1a402

Please sign in to comment.