From 62dd1b85b773f5d327fef7e4180974a433a2b758 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 3 Nov 2022 09:11:12 +0100 Subject: [PATCH 01/11] Don't treat notification for a deleted event as an error Just cancel the job Closes #1180 Signed-off-by: Thomas Citharel --- lib/service/workers/notification.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/service/workers/notification.ex b/lib/service/workers/notification.ex index f79091041..c76e41550 100644 --- a/lib/service/workers/notification.ex +++ b/lib/service/workers/notification.ex @@ -125,6 +125,9 @@ defmodule Mobilizon.Service.Workers.Notification do :ok else + {:error, :event_not_found} -> + {:cancel, :event_participation_not_found} + err -> Logger.debug(inspect(err)) err From 29de9b346a3aa6c098b1671df68aa284833c7b71 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 3 Nov 2022 12:10:59 +0100 Subject: [PATCH 02/11] Fix moving resources Signed-off-by: Thomas Citharel --- js/package.json | 2 +- js/src/components/Resource/DraggableList.vue | 2 +- js/src/components/Resource/FolderItem.vue | 19 ++-- .../components/Resource/ResourceSelector.vue | 101 ++++++++++-------- js/src/types/resource.ts | 2 +- js/src/views/Resources/ResourceFolder.vue | 5 +- js/yarn.lock | 14 +-- 7 files changed, 82 insertions(+), 63 deletions(-) diff --git a/js/package.json b/js/package.json index dc220ef57..52295be7b 100644 --- a/js/package.json +++ b/js/package.json @@ -87,7 +87,7 @@ "vue-router": "4", "vue-scrollto": "^2.17.1", "vue-use-route-query": "^1.1.0", - "vuedraggable": "^4.1.0" + "zhyswan-vuedraggable": "^4.1.3" }, "devDependencies": { "@histoire/plugin-vue": "^0.11.0", diff --git a/js/src/components/Resource/DraggableList.vue b/js/src/components/Resource/DraggableList.vue index 2b66b2804..9eaee7fdd 100644 --- a/js/src/components/Resource/DraggableList.vue +++ b/js/src/components/Resource/DraggableList.vue @@ -75,7 +75,7 @@ import ResourceItem from "@/components/Resource/ResourceItem.vue"; import FolderItem from "@/components/Resource/FolderItem.vue"; import { ref, watch } from "vue"; import { IResource } from "@/types/resource"; -import Draggable from "vuedraggable"; +import Draggable from "zhyswan-vuedraggable"; import { IGroup } from "@/types/actor"; const props = withDefaults( diff --git a/js/src/components/Resource/FolderItem.vue b/js/src/components/Resource/FolderItem.vue index d8a567821..af0129b85 100644 --- a/js/src/components/Resource/FolderItem.vue +++ b/js/src/components/Resource/FolderItem.vue @@ -26,7 +26,11 @@ :sort="false" :group="groupObject" @change="onChange" - /> + > + +