Skip to content

Commit

Permalink
Merge branch 'next' into release.24.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtursKadikis committed Oct 14, 2024
2 parents e70beee + 35acbb4 commit fcd4729
Show file tree
Hide file tree
Showing 8 changed files with 387 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bin/upgrade/24.10/scripts/merge_events_collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function merge_data_from_collection(countlyDB, collection, mapped, resolve
var app_id = mapped[collection].a;
var prefix = app_id + "_" + collection.replace("events", "");
var tscheck = Date.now().valueOf();
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) {
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) {
if (err) {
console.log("Failed to merge with database $merge operation. Doing each document one by one");

Expand Down
357 changes: 357 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
createImageThumbnails: false,
autoProcessQueue: false,
addRemoveLinks: true,
acceptedFiles: 'application/x-gzip',
acceptedFiles: 'application/gzip,application/x-gzip',
dictDefaultMessage: this.i18n('feedback.drop-message'),
dictRemoveFile: this.i18n('feedback.remove-file'),
url: "/i/datamigration/import",
Expand All @@ -220,7 +220,7 @@
message: CV.i18n('data-migration.generated-token')
});
self.importDrawerCancelButtonLabel = CV.i18n('data-migration.close');
self.importDrawerSaveButtonLabel = false;
self.importDrawerSaveButtonLabel = "";
}
else {
CountlyHelpers.notify({
Expand Down
Loading

0 comments on commit fcd4729

Please sign in to comment.