Skip to content

Commit

Permalink
Merge branch 'master' into eng-70-handle-circular-references-in
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/cli/src/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.ts
#	packages/cli/src/sso/saml/routes/saml.controller.ee.ts
  • Loading branch information
flipswitchingmonkey committed Mar 21, 2023
2 parents 6c4a154 + 34d7fcc commit d42123c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ export class MessageEventBusLogWriter {
sentMessages: [],
unfinishedExecutions: {},
};
const logCount = logHistory
? Math.min(config.get('eventBus.logWriter.keepLogCount'), logHistory)
: config.get('eventBus.logWriter.keepLogCount');
const configLogCount = config.get('eventBus.logWriter.keepLogCount');
const logCount = logHistory ? Math.min(configLogCount, logHistory) : configLogCount;
for (let i = logCount; i >= 0; i--) {
const logFileName = this.getLogFileName(i);
if (logFileName) {
Expand Down Expand Up @@ -255,9 +254,8 @@ export class MessageEventBusLogWriter {
logHistory?: number,
): Promise<EventMessageTypes[]> {
const result: EventMessageTypes[] = [];
const logCount = logHistory
? Math.min(config.get('eventBus.logWriter.keepLogCount'), logHistory)
: config.get('eventBus.logWriter.keepLogCount');
const configLogCount = config.get('eventBus.logWriter.keepLogCount');
const logCount = logHistory ? Math.min(configLogCount, logHistory) : configLogCount;
for (let i = 0; i < logCount; i++) {
const logFileName = this.getLogFileName(i);
if (logFileName) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { RequestHandler } from 'express';
import type { AuthenticatedRequest } from '../../../requests';
import type { AuthenticatedRequest } from '@/requests';
import { isSamlLicensed, isSamlLicensedAndEnabled } from '../samlHelpers';

export const samlLicensedOwnerMiddleware: RequestHandler = (
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/src/sso/saml/routes/saml.controller.ee.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import express from 'express';
import { Get, Post, RestController } from '../../../decorators';
import { Get, Post, RestController } from '@/decorators';
import { SamlUrls } from '../constants';
import {
samlLicensedAndEnabledMiddleware,
Expand All @@ -8,14 +8,14 @@ import {
} from '../middleware/samlEnabledMiddleware';
import { SamlService } from '../saml.service.ee';
import { SamlConfiguration } from '../types/requests';
import { AuthError, BadRequestError } from '../../../ResponseHelper';
import { AuthError, BadRequestError } from '@/ResponseHelper';
import { getInitSSOFormView } from '../views/initSsoPost';
import { issueCookie } from '../../../auth/jwt';
import { issueCookie } from '@/auth/jwt';
import { validate } from 'class-validator';
import type { PostBindingContext } from 'samlify/types/src/entity';
import { isSamlLicensedAndEnabled } from '../samlHelpers';
import type { SamlLoginBinding } from '../types';
import { AuthenticatedRequest } from '../../../requests';
import { AuthenticatedRequest } from '@/requests';

@RestController('/sso/saml')
export class SamlController {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/sso/saml/types/requests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AuthenticatedRequest } from '../../../requests';
import type { AuthenticatedRequest } from '@/requests';
import type { SamlPreferences } from './samlPreferences';

export declare namespace SamlConfiguration {
Expand Down
12 changes: 0 additions & 12 deletions packages/cli/src/sso/saml/views/initSsoRedirect.ts

This file was deleted.

0 comments on commit d42123c

Please sign in to comment.