mirror of https://github.com/buster-so/buster.git
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:
commit
f967201228
|
@ -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}`;
|
||||||
|
|
Loading…
Reference in New Issue