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

[DOP-4876]: Add deprecation warning message to Autobuilder staging builds #1067

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
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
8 changes: 6 additions & 2 deletions api/controllers/v2/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,15 @@ function prepProgressMessage(
status: string,
errorReason: string
): string {
const msg = `Your Job (<${jobUrl}${jobId}|${jobTitle}>) `;
const env = c.get<string>('env');
const deprecationWarning =
env === 'prd'
? 'The Autobuilder for staging will be deprecated by Sept. 30th. Please reach out to #ask-docs-platform on questions on how to migrate to Netlify for staging builds.'
: '';
const msg = `Your Job (<${jobUrl}${jobId}|${jobTitle}>) `;
switch (status) {
case 'inQueue':
return msg + 'has successfully been added to the ' + env + ' queue.';
return msg + `has successfully been added to the ' + env + ' queue. ${deprecationWarning}`;
rayangler marked this conversation as resolved.
Show resolved Hide resolved
case 'inProgress':
return msg + 'is now being processed.';
case 'completed':
Expand Down
Loading