Skip to content

Commit

Permalink
Merge branch 'next' into mrk-317-workflow-trigger-integration-instruc…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
scopsy committed Jan 29, 2025
2 parents 97868e3 + 61ad4d9 commit 6d6aec2
Show file tree
Hide file tree
Showing 15 changed files with 174 additions and 558 deletions.
3 changes: 0 additions & 3 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@
"Pushwoosh",
"pychecker",
"pydns",
"pyroscope",
"Pyroscope",
"PYROSCOPE",
"pyspf",
"QCLASS",
"qtype",
Expand Down
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint:openapi": "spectral lint http://127.0.0.1:${PORT:-3000}/openapi.yaml",
"pretest": "pnpm build:metadata",
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test mocha --require ts-node/register --exit 'src/**/*.spec.ts'",
"test:e2e:novu-v1": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test mocha --grep '#novu-v1' --require ts-node/register --exit --file e2e/setup.ts src/**/*.e2e{,-ee}.ts ",
"test:e2e:novu-v1": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test mocha --grep '#novu-v1' --require ts-node/register --exit --file e2e/setup.ts src/**/*.e2e{,-ee}.ts",
"test:e2e:novu-v2": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --grep '#novu-v2' --require ts-node/register --exit --file e2e/setup.ts 'src/**/*.e2e{,-ee}.ts'",
"migration": "cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly",
"link:submodules": "pnpm link ../../enterprise/packages/auth && pnpm link ../../enterprise/packages/translation && pnpm link ../../enterprise/packages/billing",
Expand Down
3 changes: 1 addition & 2 deletions apps/api/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable global-require */
import { DynamicModule, Logger, Module, Provider } from '@nestjs/common';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { ProfilingModule, TracingModule } from '@novu/application-generic';
import { TracingModule } from '@novu/application-generic';
import { Client, NovuModule } from '@novu/framework/nest';

import { Type } from '@nestjs/common/interfaces/type.interface';
Expand Down Expand Up @@ -110,7 +110,6 @@ const baseModules: Array<Type | DynamicModule | Promise<DynamicModule> | Forward
WorkflowOverridesModule,
RateLimitingModule,
WidgetsModule,
ProfilingModule.register(packageJson.name),
TracingModule.register(packageJson.name, packageJson.version),
BridgeModule,
PreferencesModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const generateDetailByStepAndStatus = (status, job) => {
return `Success! ${job.executionDetails?.at(-1)?.detail}`;
}

if (status === JobStatusEnum.FAILED) {
return `Failed! ${job.executionDetails?.at(-1)?.detail}`;
}

if (job.type === StepTypeEnum.DIGEST) {
if (status === JobStatusEnum.SKIPPED) {
return job.executionDetails?.at(-1)?.detail;
Expand All @@ -99,7 +103,6 @@ const generateDetailByStepAndStatus = (status, job) => {
if (job.type === StepTypeEnum.DELAY) {
const { digest, step: stepMetadata, payload } = job;

if (!digest.amount && !digest.unit) return `Waiting to receive execution delay from bridge endpoint`;
if (stepMetadata?.metadata?.type === DelayTypeEnum.SCHEDULED) {
return `Delaying execution until ${payload[stepMetadata.metadata.delayPath]}`;
}
Expand Down
8 changes: 1 addition & 7 deletions apps/webhook/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { Module } from '@nestjs/common';

import {
createNestLoggingModuleOptions,
LoggerModule,
ProfilingModule,
TracingModule,
} from '@novu/application-generic';
import { createNestLoggingModuleOptions, LoggerModule, TracingModule } from '@novu/application-generic';
import { SentryModule } from '@sentry/nestjs/setup';
import { AppController } from './app.controller';
import { AppService } from './app.service';
Expand All @@ -19,7 +14,6 @@ const modules = [
HealthModule,
WebhooksModule,
TracingModule.register(packageJson.name, packageJson.version),
ProfilingModule.register(packageJson.name),
LoggerModule.forRoot(
createNestLoggingModuleOptions({
serviceName: packageJson.name,
Expand Down
3 changes: 0 additions & 3 deletions apps/worker/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { DynamicModule, ForwardReference, Logger, Module, Provider, Type } from '@nestjs/common';

import { ProfilingModule } from '@novu/application-generic';
import { APP_FILTER } from '@nestjs/core';
import { SentryGlobalFilter, SentryModule } from '@sentry/nestjs/setup';
import { SharedModule } from './app/shared/shared.module';
import { HealthModule } from './app/health/health.module';
import { WorkflowModule } from './app/workflow/workflow.module';
import { TelemetryModule } from './app/telemetry/telemetry.module';
import packageJson from '../package.json';

const modules: Array<Type | DynamicModule | Promise<DynamicModule> | ForwardReference> = [
SharedModule,
HealthModule,
WorkflowModule,
TelemetryModule,
ProfilingModule.register(packageJson.name),
];

const providers: Provider[] = [];
Expand Down
8 changes: 1 addition & 7 deletions apps/ws/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import { join } from 'path';
import { Module } from '@nestjs/common';
import { SentryModule } from '@sentry/nestjs/setup';
import { ServeStaticModule } from '@nestjs/serve-static';
import {
createNestLoggingModuleOptions,
LoggerModule,
ProfilingModule,
TracingModule,
} from '@novu/application-generic';
import { createNestLoggingModuleOptions, LoggerModule, TracingModule } from '@novu/application-generic';

import { AppController } from './app.controller';
import { AppService } from './app.service';
Expand All @@ -21,7 +16,6 @@ const modules = [
SharedModule,
HealthModule,
TracingModule.register(packageJson.name, packageJson.version),
ProfilingModule.register(packageJson.name),
SocketModule,
LoggerModule.forRoot(
createNestLoggingModuleOptions({
Expand Down
6 changes: 0 additions & 6 deletions docker/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ services:
test: "bash -c 'redis-cli ping'"
retries: 5
interval: 10s
pyroscope:
image: grafana/pyroscope:latest
ports:
- '4040:4040'
profiles:
- optional
1 change: 0 additions & 1 deletion libs/application-generic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"@opentelemetry/sdk-trace-base": "~1.19.0",
"@opentelemetry/sdk-trace-node": "~1.19.0",
"@opentelemetry/semantic-conventions": "~1.19.0",
"@pyroscope/nodejs": "^0.2.9",
"@segment/analytics-node": "^1.1.4",
"@sentry/node": "^8.33.1",
"@team-plain/typescript-sdk": "5.4.3",
Expand Down
1 change: 0 additions & 1 deletion libs/application-generic/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export * from './http';
export * from './instrumentation/index';
export * from './logging/index';
export * from './modules';
export * from './profiling';
export * from './resilience';
export * from './services';
export * from './tracing';
Expand Down
4 changes: 0 additions & 4 deletions libs/application-generic/src/profiling/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions libs/application-generic/src/profiling/profiling.controller.ts

This file was deleted.

29 changes: 0 additions & 29 deletions libs/application-generic/src/profiling/profiling.module.ts

This file was deleted.

57 changes: 0 additions & 57 deletions libs/application-generic/src/profiling/profiling.service.ts

This file was deleted.

Loading

0 comments on commit 6d6aec2

Please sign in to comment.