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

fix: dont store deleted template that are missing in next env(prod) #3209

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

djabarovgeorge
Copy link
Contributor

What change does this PR introduce?

do not store templates that were in dev and then were deleted. (without being promoted to prod before)

Why was this change needed?

At the moment if the user will create a template work/edit it (without promoting to prod) then decides he does not need it in prod and delete it. once he will promote it for the first time a new template will be created (not deleted)

In the beginning, i created a solution where we store the templated but in the deleted state, but then I thought about we will probably not want to store templates that were not in prod env.

@scopsy LMKWYT maybe we do want to store then :)

Other information (Screenshots)

…n-temaplte-delete

# Conflicts:
#	apps/api/src/app/notification-template/e2e/create-notification-templates.e2e.ts
Copy link
Contributor

@p-fernandez p-fernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟

@@ -22,7 +22,7 @@ import { isSameDay } from 'date-fns';
import { CreateNotificationTemplateRequestDto } from '../dto';

import axios from 'axios';
// import { SendMessageEmail } from '../../events/usecases/send-message/send-message-email.usecase';
// import { SendMessageEmail } from '../../events/usecases/send-message';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗑️

@scopsy
Copy link
Contributor

scopsy commented Apr 23, 2023

@djabarovgeorge Can we merge this?

@djabarovgeorge
Copy link
Contributor Author

@djabarovgeorge Can we merge this?

Definitely just was wondering if we want to archive this template state as deleted prod.

@djabarovgeorge djabarovgeorge added this pull request to the merge queue Apr 24, 2023
Merged via the queue into next with commit 30885a1 Apr 24, 2023
11 checks passed
@djabarovgeorge djabarovgeorge deleted the fix-missing-promote-on-temaplte-delete branch April 24, 2023 06:34
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.

None yet

3 participants