Skip to content

Commit ae6590e

Browse files
KevLehmanggazzo
authored andcommitted
chore: Remove deprecated pdfTranscriptRequested index (#36305)
1 parent a2eff33 commit ae6590e

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

apps/meteor/app/statistics/server/lib/getEEStatistics.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ async function getEEStatistics(): Promise<EEOnlyStats | undefined> {
9292
return true;
9393
}),
9494
);
95-
96-
// NOTE: keeping this for compatibility with current stats. Will be removed next major
97-
statistics.omnichannelPdfTranscriptRequested = 0;
9895
// Number of PDF transcript that succeeded
9996
statsPms.push(
10097
LivechatRooms.countRoomsWithTranscriptSent().then((count) => {

apps/meteor/server/startup/migrations/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ import './v315';
2424
import './v316';
2525
import './v317';
2626
import './v318';
27+
import './v319';
2728

2829
export * from './xrun';
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { LivechatRooms } from '@rocket.chat/models';
2+
3+
import { addMigration } from '../../lib/migrations';
4+
5+
addMigration({
6+
version: 319,
7+
name: 'Remove "pdfTranscriptRequested" index from LivechatRooms collection',
8+
async up() {
9+
await LivechatRooms.col.dropIndex('pdfTranscriptRequested_1');
10+
},
11+
});

packages/core-typings/src/IStats.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ export interface IStats {
175175
priorities?: number;
176176
slas?: number;
177177
businessUnits?: number;
178-
omnichannelPdfTranscriptRequested?: number;
179178
omnichannelPdfTranscriptSucceeded?: number;
180179
omnichannelRoomsWithSlas?: number;
181180
omnichannelRoomsWithPriorities?: number;

packages/models/src/models/LivechatRooms.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ export class LivechatRoomsRaw extends BaseRaw<IOmnichannelRoom> implements ILive
6868
},
6969
},
7070
{ key: { 'livechatData.$**': 1 } },
71-
// TODO: Remove index on next major
72-
// { key: { pdfTranscriptRequested: 1 }, sparse: true },
7371
{ key: { pdfTranscriptFileId: 1 }, sparse: true }, // used on statistics
7472
{ key: { callStatus: 1 }, sparse: true }, // used on statistics
7573
{ key: { priorityId: 1 }, sparse: true },

0 commit comments

Comments
 (0)