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

Update backfill not supported message #1437

Merged
merged 4 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Box } from '@mui/material';
import MessageWithLink from 'components/content/MessageWithLink';
import AlertBox from 'components/shared/AlertBox';
import { useEntityType } from 'context/EntityContext';
import { useIntl } from 'react-intl';

function BackfillNotSupportedWarning() {
function BackfillNotSupportedAlert() {
const intl = useIntl();
const entityType = useEntityType();

Expand All @@ -19,15 +20,10 @@ function BackfillNotSupportedWarning() {
{ entityType }
)}
>
{intl.formatMessage(
{
id: 'workflows.collectionSelector.manualBackfill.notSupported.message',
},
{ entityType }
)}
<MessageWithLink messageID="workflows.collectionSelector.manualBackfill.notSupported.message" />
</AlertBox>
</Box>
);
}

export default BackfillNotSupportedWarning;
export default BackfillNotSupportedAlert;
5 changes: 4 additions & 1 deletion src/lang/en-US/Workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export const Workflows: Record<string, string> = {

'workflows.collectionSelector.manualBackfill.header': `Backfill`,
'workflows.collectionSelector.manualBackfill.notSupported.title': `This {entityType} doesn’t support backfills.`,
'workflows.collectionSelector.manualBackfill.notSupported.message': `To backfill, disable each binding, save and then re-enable and save.`,
'workflows.collectionSelector.manualBackfill.notSupported.message': `Please {docLink} for help with a backfill.`,
'workflows.collectionSelector.manualBackfill.notSupported.message.docLink': `${CTAs['cta.support']}`,
'workflows.collectionSelector.manualBackfill.notSupported.message.docPath': `${CommonMessages['support.email']}`,

'workflows.collectionSelector.manualBackfill.message.capture': `Trigger a backfill of this collection from the source when published.`,
'workflows.collectionSelector.manualBackfill.message.capture.allBindings': `Trigger a backfill of all collections from the source when published. The UI will mark all collections to be backfilled but the server will filter out those that cannot be backfilled (e.g. disabled collections).`,
'workflows.collectionSelector.manualBackfill.message.materialization': `Trigger a backfill from the source collection to its materialized resource when published.`,
Expand Down