Skip to content

Commit fcd4729

Browse files
committed
Merge branch 'next' into release.24.10
2 parents e70beee + 35acbb4 commit fcd4729

File tree

8 files changed

+387
-16
lines changed

8 files changed

+387
-16
lines changed

bin/upgrade/24.10/scripts/merge_events_collections.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function merge_data_from_collection(countlyDB, collection, mapped, resolve
4646
var app_id = mapped[collection].a;
4747
var prefix = app_id + "_" + collection.replace("events", "");
4848
var tscheck = Date.now().valueOf();
49-
countlyDB.collection(collection).aggregate([{"$match": {"merged": {"$ne": true}}}, {"$addFields": {"_id": {"$concat": [prefix, "_", "$_id"]}, "tscheck": tscheck, "a": app_id, "e": mapped[collection].e}}, {"$merge": {"into": "events_data", "on": "_id", "whenMatched": "fail"}}], async function(err) {
49+
countlyDB.collection(collection).aggregate([{"$match": {"merged": {"$ne": true}}}, {"$addFields": {"_id": {"$concat": [prefix, "_", "$_id"]}, "tscheck": tscheck, "a": app_id, "e": mapped[collection].e}}, {"$merge": {"into": "events_data", "on": "_id", "whenMatched": "fail"}}], {ignore_errors: [11000]}, async function(err) {
5050
if (err) {
5151
console.log("Failed to merge with database $merge operation. Doing each document one by one");
5252

package-lock.json

+357
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/data_migration/frontend/public/javascripts/countly.views.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
createImageThumbnails: false,
197197
autoProcessQueue: false,
198198
addRemoveLinks: true,
199-
acceptedFiles: 'application/x-gzip',
199+
acceptedFiles: 'application/gzip,application/x-gzip',
200200
dictDefaultMessage: this.i18n('feedback.drop-message'),
201201
dictRemoveFile: this.i18n('feedback.remove-file'),
202202
url: "/i/datamigration/import",
@@ -220,7 +220,7 @@
220220
message: CV.i18n('data-migration.generated-token')
221221
});
222222
self.importDrawerCancelButtonLabel = CV.i18n('data-migration.close');
223-
self.importDrawerSaveButtonLabel = false;
223+
self.importDrawerSaveButtonLabel = "";
224224
}
225225
else {
226226
CountlyHelpers.notify({

0 commit comments

Comments
 (0)