Skip to content

Commit e044c84

Browse files
committed
Remove commented out stuff.
1 parent a45308d commit e044c84

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

data/store/mongo/mongo_datum.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ func (d *DatumRepository) EnsureIndexes() error {
9191
},
9292
}),
9393
},
94-
// {
95-
// Keys: bson.D{
96-
// {Key: "origin.id", Value: 1},
97-
// {Key: "type", Value: 1},
98-
// {Key: "deletedTime", Value: -1},
99-
// {Key: "_active", Value: 1},
100-
// },
101-
// Options: options.Index().
102-
// SetName("OriginId"),
103-
// },
10494
{
10595
Keys: bson.D{
10696
{Key: "_userId", Value: 1},
@@ -124,22 +114,6 @@ func (d *DatumRepository) EnsureIndexes() error {
124114
Options: options.Index().
125115
SetName("UploadId"),
126116
},
127-
// {
128-
// Keys: bson.D{
129-
// {Key: "_userId", Value: 1},
130-
// {Key: "deviceId", Value: 1},
131-
// {Key: "type", Value: 1},
132-
// {Key: "_active", Value: 1},
133-
// {Key: "_deduplicator.hash", Value: 1},
134-
// },
135-
// Options: options.Index().
136-
// SetPartialFilterExpression(bson.D{
137-
// {Key: "_active", Value: true},
138-
// {Key: "_deduplicator.hash", Value: bson.D{{Key: "$exists", Value: true}}},
139-
// {Key: "deviceId", Value: bson.D{{Key: "$exists", Value: true}}},
140-
// }).
141-
// SetName("DeduplicatorHash"),
142-
// },
143117
{
144118
Keys: bson.D{
145119
{Key: "_userId", Value: 1},

data/store/mongo/mongo_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,6 @@ var _ = Describe("Mongo", func() {
331331
{Key: "time", Value: bson.D{{Key: "$gt", Value: primitive.NewDateTimeFromTime(lowerTimeIndex)}}},
332332
}),
333333
}),
334-
// MatchFields(IgnoreExtras, Fields{
335-
// "Key": Equal(storeStructuredMongoTest.MakeKeySlice("origin.id", "type", "-deletedTime", "_active")),
336-
// "Name": Equal("OriginId"),
337-
// }),
338334
MatchFields(IgnoreExtras, Fields{
339335
"Key": Equal(storeStructuredMongoTest.MakeKeySlice("_userId", "origin.id", "-deletedTime", "_active")),
340336
"Name": Equal("UserIdOriginId"),
@@ -346,15 +342,6 @@ var _ = Describe("Mongo", func() {
346342
"Key": Equal(storeStructuredMongoTest.MakeKeySlice("uploadId", "type", "-deletedTime", "_active")),
347343
"Name": Equal("UploadId"),
348344
}),
349-
// MatchFields(IgnoreExtras, Fields{
350-
// "Key": Equal(storeStructuredMongoTest.MakeKeySlice("_userId", "deviceId", "type", "_active", "_deduplicator.hash")),
351-
// "Name": Equal("DeduplicatorHash"),
352-
// "PartialFilterExpression": Equal(bson.D{
353-
// {Key: "_active", Value: true},
354-
// {Key: "_deduplicator.hash", Value: bson.D{{Key: "$exists", Value: true}}},
355-
// {Key: "deviceId", Value: bson.D{{Key: "$exists", Value: true}}},
356-
// }),
357-
// }),
358345
MatchFields(IgnoreExtras, Fields{
359346
"Key": Equal(storeStructuredMongoTest.MakeKeySlice("_userId", "deviceId", "_deduplicator.hash")),
360347
"Name": Equal("DeduplicatorHashNoType"),

0 commit comments

Comments
 (0)