Merge pull request #23083 from mattermost/MM-51858-fix-workspace-deletion-telemetry

MM-51858 Update Workspace Deletion Telemetry
This commit is contained in:
Conor Macpherson 2023-04-27 12:01:58 -04:00 committed by GitHub
commit 0df19232a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -889,5 +889,4 @@ func selfServeDeleteWorkspace(c *Context, w http.ResponseWriter, r *http.Request
c.App.Srv().GetTelemetryService().SendTelemetry("delete_workspace_feedback", deleteRequest.Feedback.ToMap()) c.App.Srv().GetTelemetryService().SendTelemetry("delete_workspace_feedback", deleteRequest.Feedback.ToMap())
ReturnStatusOK(w) ReturnStatusOK(w)
} }

View File

@ -29,7 +29,6 @@ import {getSubscriptionProduct} from 'mattermost-redux/selectors/entities/cloud'
import {isCloudLicense} from 'utils/license_utils'; import {isCloudLicense} from 'utils/license_utils';
import {getLicense} from 'mattermost-redux/selectors/entities/general'; import {getLicense} from 'mattermost-redux/selectors/entities/general';
import {DispatchFunc} from 'mattermost-redux/types/actions'; import {DispatchFunc} from 'mattermost-redux/types/actions';
import {trackEvent} from 'actions/telemetry_actions';
import useGetSubscription from 'components/common/hooks/useGetSubscription'; import useGetSubscription from 'components/common/hooks/useGetSubscription';
import DeleteWorkspaceSuccessModal from './success_modal'; import DeleteWorkspaceSuccessModal from './success_modal';
@ -122,7 +121,6 @@ export default function DeleteWorkspaceModal(props: Props) {
modalId: ModalIdentifiers.DELETE_WORKSPACE_RESULT, modalId: ModalIdentifiers.DELETE_WORKSPACE_RESULT,
dialogType: DeleteWorkspaceSuccessModal, dialogType: DeleteWorkspaceSuccessModal,
})); }));
trackEvent('cloud_admin', 'self_serve_workspace_deletion_completed');
} else { // Failure } else { // Failure
dispatch(openModal({ dispatch(openModal({
modalId: ModalIdentifiers.DELETE_WORKSPACE_RESULT, modalId: ModalIdentifiers.DELETE_WORKSPACE_RESULT,