-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): add priority to queue based from 0.24.x (ref: PR 6489) #6528
base: v0.24.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution 🙏
Please apply the ApiHideProperty flag conditionally to ensure the priority
flag appears on the OpenAPI spec only for self-hosted instances.
apps/api/src/app/events/usecases/parse-event-request/parse-event-request.command.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will accept the PR in the current state, but note that the Community Edition won't have the new priority
property available in the OpenAPI specification until we conditionally expose the property via a custom decorator that operates on the IS_DOCKER_HOSTED
environment variable flag.
We will raise a ticket to address this conditionality for the Community Edition in a separate follow-up ticket.
} from '@novu/shared'; | ||
|
||
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | ||
import { ApiHideProperty } from '@nestjs/swagger'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to resolve the import order linting problem here.
} from '@novu/shared'; | |
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; | |
import { ApiHideProperty } from '@nestjs/swagger'; | |
} from '@novu/shared'; | |
import { ApiHideProperty } from '@nestjs/swagger'; | |
import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command'; |
see: #6489