Merge pull request #1127 from buster-so/dallin-bus-1929-slack-link-is-to-asset-not-chat

change the url for slack messages back to chat/{id}/{asset-type}}
This commit is contained in:
dal 2025-09-24 15:40:26 -06:00 committed by GitHub
commit f967201228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -752,11 +752,11 @@ export const slackAgentTask: ReturnType<
chatFileInfo?.mostRecentVersionNumber !== null chatFileInfo?.mostRecentVersionNumber !== null
) { ) {
if (chatFileInfo.mostRecentFileType === 'dashboard_file') { if (chatFileInfo.mostRecentFileType === 'dashboard_file') {
buttonUrl = `${busterUrl}/app/dashboards/${chatFileInfo.mostRecentFileId}?dashboard_version_number=${chatFileInfo.mostRecentVersionNumber}`; buttonUrl += `/dashboards/${chatFileInfo.mostRecentFileId}?dashboard_version_number=${chatFileInfo.mostRecentVersionNumber}`;
} else if (chatFileInfo.mostRecentFileType === 'metric_file') { } else if (chatFileInfo.mostRecentFileType === 'metric_file') {
buttonUrl = `${busterUrl}/app/metrics/${chatFileInfo.mostRecentFileId}?metric_version_number=${chatFileInfo.mostRecentVersionNumber}`; buttonUrl += `/metrics/${chatFileInfo.mostRecentFileId}?metric_version_number=${chatFileInfo.mostRecentVersionNumber}`;
} else if (chatFileInfo.mostRecentFileType === 'report_file') { } else if (chatFileInfo.mostRecentFileType === 'report_file') {
buttonUrl = `${busterUrl}/app/reports/${chatFileInfo.mostRecentFileId}?report_version_number=${chatFileInfo.mostRecentVersionNumber}`; buttonUrl += `/reports/${chatFileInfo.mostRecentFileId}?report_version_number=${chatFileInfo.mostRecentVersionNumber}`;
} else { } else {
const _exhaustiveCheck: 'chat' | 'collection' = chatFileInfo.mostRecentFileType; const _exhaustiveCheck: 'chat' | 'collection' = chatFileInfo.mostRecentFileType;
buttonUrl = `${busterUrl}/app/chats/${payload.chatId}`; buttonUrl = `${busterUrl}/app/chats/${payload.chatId}`;