diff --git a/app/javascript/dashboard/store/modules/conversations/index.js b/app/javascript/dashboard/store/modules/conversations/index.js index 8715d24ec..ca0759320 100644 --- a/app/javascript/dashboard/store/modules/conversations/index.js +++ b/app/javascript/dashboard/store/modules/conversations/index.js @@ -6,7 +6,6 @@ import { MESSAGE_STATUS } from 'shared/constants/messages'; import wootConstants from 'dashboard/constants/globals'; import { BUS_EVENTS } from '../../../../shared/constants/busEvents'; import { emitter } from 'shared/helpers/mitt'; -import * as Sentry from '@sentry/vue'; const state = { allConversations: [], @@ -217,18 +216,6 @@ export const mutations = { // ignore out of order events if (conversation.updated_at < selectedConversation.updated_at) { - Sentry.withScope(scope => { - scope.setContext('incoming', conversation); - scope.setContext('stored', selectedConversation); - scope.setContext('incoming_meta', conversation.meta); - scope.setContext('stored_meta', selectedConversation.meta); - Sentry.captureMessage('Conversation update mismatch'); - }); - - return; - } - - if (conversation.updated_at === selectedConversation.updated_at) { return; } diff --git a/app/javascript/dashboard/store/modules/specs/conversations/mutations.spec.js b/app/javascript/dashboard/store/modules/specs/conversations/mutations.spec.js index 081eb9f79..091dc3daa 100644 --- a/app/javascript/dashboard/store/modules/specs/conversations/mutations.spec.js +++ b/app/javascript/dashboard/store/modules/specs/conversations/mutations.spec.js @@ -778,7 +778,7 @@ describe('#mutations', () => { expect(state.allConversations[0].status).toEqual('open'); }); - it('should ignore updates with same timestamps', () => { + it('should allow updates with same timestamps', () => { const state = { allConversations: [ { @@ -796,7 +796,7 @@ describe('#mutations', () => { }; mutations[types.UPDATE_CONVERSATION](state, conversation); - expect(state.allConversations[0].status).toEqual('open'); + expect(state.allConversations[0].status).toEqual('resolved'); }); });