Skip to content
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

Open
wants to merge 2 commits into
base: v0.24.x
Choose a base branch
from

Conversation

isaiahdahl
Copy link

see: #6489

Copy link
Contributor

@rifont rifont left a 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.

Copy link
Contributor

@rifont rifont left a 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.

Comment on lines 8 to +11
} from '@novu/shared';

import { EnvironmentWithUserCommand } from '../../../shared/commands/project.command';
import { ApiHideProperty } from '@nestjs/swagger';
Copy link
Contributor

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.

Suggested change
} 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';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants