Skip to content

adding notifications prefix in topic name to decouple it from event bus. #67

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

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ export const EVENT = {
};

export const BUS_API_EVENT = {
PROJECT_CREATED: 'connect.project.created',
PROJECT_SUBMITTED_FOR_REVIEW: 'connect.project.submittedForReview',
PROJECT_APPROVED: 'connect.project.approved',
PROJECT_PAUSED: 'connect.project.paused',
PROJECT_COMPLETED: 'connect.project.completed',
PROJECT_CANCELED: 'connect.project.canceled',
PROJECT_CREATED: 'notifications.connect.project.created',
PROJECT_SUBMITTED_FOR_REVIEW: 'notifications.connect.project.submittedForReview',
PROJECT_APPROVED: 'notifications.connect.project.approved',
PROJECT_PAUSED: 'notifications.connect.project.paused',
PROJECT_COMPLETED: 'notifications.connect.project.completed',
PROJECT_CANCELED: 'notifications.connect.project.canceled',

MEMBER_JOINED: 'connect.project.member.joined',
MEMBER_LEFT: 'connect.project.member.left',
MEMBER_REMOVED: 'connect.project.member.removed',
MEMBER_ASSIGNED_AS_OWNER: 'connect.project.member.assignedAsOwner',
MEMBER_JOINED_COPILOT: 'connect.project.member.copilotJoined',
MEMBER_JOINED_MANAGER: 'connect.project.member.managerJoined',
MEMBER_JOINED: 'notifications.connect.project.member.joined',
MEMBER_LEFT: 'notifications.connect.project.member.left',
MEMBER_REMOVED: 'notifications.connect.project.member.removed',
MEMBER_ASSIGNED_AS_OWNER: 'notifications.connect.project.member.assignedAsOwner',
MEMBER_JOINED_COPILOT: 'notifications.connect.project.member.copilotJoined',
MEMBER_JOINED_MANAGER: 'notifications.connect.project.member.managerJoined',

PROJECT_LINK_CREATED: 'connect.project.linkCreated',
PROJECT_FILE_UPLOADED: 'connect.project.fileUploaded',
PROJECT_SPECIFICATION_MODIFIED: 'connect.project.specificationModified',
PROJECT_LINK_CREATED: 'notifications.connect.project.linkCreated',
PROJECT_FILE_UPLOADED: 'notifications.connect.project.fileUploaded',
PROJECT_SPECIFICATION_MODIFIED: 'notifications.connect.project.specificationModified',
};

export const REGEX = {
Expand Down