Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions api/models/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sqlalchemy.orm import Mapped, mapped_column, relationship

from .account import Account
from .base import Base
from .base import Base, gen_uuidv7_string
from .engine import db
from .types import StringUUID

Expand Down Expand Up @@ -41,7 +41,7 @@ class WorkflowComment(Base):
Index("workflow_comments_created_at_idx", "created_at"),
)

id: Mapped[str] = mapped_column(StringUUID, server_default=db.text("uuidv7()"))
id: Mapped[str] = mapped_column(StringUUID, default=gen_uuidv7_string)
tenant_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
app_id: Mapped[str] = mapped_column(StringUUID, nullable=False)
position_x: Mapped[float] = mapped_column(db.Float)
Expand Down Expand Up @@ -148,7 +148,7 @@ class WorkflowCommentReply(Base):
Index("comment_replies_created_at_idx", "created_at"),
)

id: Mapped[str] = mapped_column(StringUUID, server_default=db.text("uuidv7()"))
id: Mapped[str] = mapped_column(StringUUID, default=gen_uuidv7_string)
comment_id: Mapped[str] = mapped_column(
StringUUID, db.ForeignKey("workflow_comments.id", ondelete="CASCADE"), nullable=False
)
Expand Down Expand Up @@ -193,7 +193,7 @@ class WorkflowCommentMention(Base):
Index("comment_mentions_user_idx", "mentioned_user_id"),
)

id: Mapped[str] = mapped_column(StringUUID, server_default=db.text("uuidv7()"))
id: Mapped[str] = mapped_column(StringUUID, default=gen_uuidv7_string)
comment_id: Mapped[str] = mapped_column(
StringUUID, db.ForeignKey("workflow_comments.id", ondelete="CASCADE"), nullable=False
)
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/ar-TN/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "المحتوى المخزن",
"chatVariable.updatedAt": "تم التحديث في ",
"collaboration.historyAction.generic": "قام متعاون بعملية تراجع/إعادة",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "أضف تعليقًا",
"comments.actions.deleteReply": "حذف الرد",
"comments.actions.editComment": "تعديل التعليق",
"comments.actions.editReply": "تعديل الرد",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "فشل حذف الإصدار",
"versionHistory.action.deleteSuccess": "تم حذف الإصدار",
"versionHistory.action.restoreFailure": "فشل استعادة الإصدار",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} يقوم بالاستعادة إلى الإصدار {{versionName}}...",
"versionHistory.action.restoreSuccess": "تم استعادة الإصدار",
"versionHistory.action.updateFailure": "فشل تحديث الإصدار",
"versionHistory.action.updateSuccess": "تم تحديث الإصدار",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/de-DE/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Gespeicherter Inhalt",
"chatVariable.updatedAt": "Aktualisiert am ",
"collaboration.historyAction.generic": "Ein Mitbearbeiter hat Rückgängig/Wiederholen ausgeführt",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Kommentar hinzufügen",
"comments.actions.deleteReply": "Antwort löschen",
"comments.actions.editComment": "Kommentar bearbeiten",
"comments.actions.editReply": "Antwort bearbeiten",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Version löschen fehlgeschlagen",
"versionHistory.action.deleteSuccess": "Version gelöscht",
"versionHistory.action.restoreFailure": "Wiederherstellung der Version fehlgeschlagen",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} stellt Version {{versionName}} wieder her...",
"versionHistory.action.restoreSuccess": "Version wiederhergestellt",
"versionHistory.action.updateFailure": "Aktualisierung der Version fehlgeschlagen",
"versionHistory.action.updateSuccess": "Version aktualisiert",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/es-ES/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Contenido almacenado",
"chatVariable.updatedAt": "Actualizado el ",
"collaboration.historyAction.generic": "Un colaborador realizó deshacer/rehacer",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Añadir un comentario",
"comments.actions.deleteReply": "Eliminar respuesta",
"comments.actions.editComment": "Editar comentario",
"comments.actions.editReply": "Editar respuesta",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Error al eliminar la versión",
"versionHistory.action.deleteSuccess": "Versión eliminada",
"versionHistory.action.restoreFailure": "Error al restaurar la versión",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} está restaurando a la versión {{versionName}}...",
"versionHistory.action.restoreSuccess": "Versión restaurada",
"versionHistory.action.updateFailure": "Error al actualizar la versión",
"versionHistory.action.updateSuccess": "Versión actualizada",
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/fa-IR/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "محتوای ذخیره‌شده",
"chatVariable.updatedAt": "به‌روزرسانی شده در ",
"collaboration.historyAction.generic": "یک همکار عملیات برگرداندن/انجام مجدد را انجام داد",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "افزودن دیدگاه",
"comments.actions.deleteReply": "حذف پاسخ",
"comments.actions.editComment": "ویرایش دیدگاه",
"comments.actions.editReply": "ویرایش پاسخ",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/fr-FR/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Contenu stocké",
"chatVariable.updatedAt": "Mis à jour le ",
"collaboration.historyAction.generic": "Un collaborateur a effectué une annulation/une réexécution",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Ajouter un commentaire",
"comments.actions.deleteReply": "Supprimer la réponse",
"comments.actions.editComment": "Modifier le commentaire",
"comments.actions.editReply": "Modifier la réponse",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Échec de la suppression de la version",
"versionHistory.action.deleteSuccess": "Version supprimée",
"versionHistory.action.restoreFailure": "Échec de la restauration de la version",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} restaure la version {{versionName}}...",
"versionHistory.action.restoreSuccess": "Version restaurée",
"versionHistory.action.updateFailure": "Échec de la mise à jour de la version",
"versionHistory.action.updateSuccess": "Version mise à jour",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/hi-IN/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "संग्रहीत सामग्री",
"chatVariable.updatedAt": "अपडेट किया गया ",
"collaboration.historyAction.generic": "एक सहयोगी ने Undo/Redo किया",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "टिप्पणी जोड़ें",
"comments.actions.deleteReply": "जवाब हटाएं",
"comments.actions.editComment": "टिप्पणी संपादित करें",
"comments.actions.editReply": "जवाब संपादित करें",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "संस्करण को हटाने में विफल",
"versionHistory.action.deleteSuccess": "संस्करण हटाया गया",
"versionHistory.action.restoreFailure": "संस्करण को पुनर्स्थापित करने में विफल",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} संस्करण {{versionName}} को पुनर्स्थापित कर रहे हैं...",
"versionHistory.action.restoreSuccess": "संस्करण पुनर्स्थापित किया गया",
"versionHistory.action.updateFailure": "संस्करण अपडेट करने में विफल",
"versionHistory.action.updateSuccess": "संस्करण अपडेट किया गया",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/id-ID/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Konten yang disimpan",
"chatVariable.updatedAt": "Diperbarui pada",
"collaboration.historyAction.generic": "Seorang kolaborator melakukan urungkan/ulang",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Tambahkan komentar",
"comments.actions.deleteReply": "Hapus balasan",
"comments.actions.editComment": "Edit komentar",
"comments.actions.editReply": "Edit balasan",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Gagal menghapus versi",
"versionHistory.action.deleteSuccess": "Versi dihapus",
"versionHistory.action.restoreFailure": "Gagal memulihkan versi",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} sedang memulihkan ke versi {{versionName}}...",
"versionHistory.action.restoreSuccess": "Versi dipulihkan",
"versionHistory.action.updateFailure": "Gagal memperbarui versi",
"versionHistory.action.updateSuccess": "Versi diperbarui",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/it-IT/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Contenuto memorizzato",
"chatVariable.updatedAt": "Aggiornato il ",
"collaboration.historyAction.generic": "Un collaboratore ha eseguito annulla/ripristina",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Aggiungi un commento",
"comments.actions.deleteReply": "Elimina risposta",
"comments.actions.editComment": "Modifica commento",
"comments.actions.editReply": "Modifica risposta",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Impossibile eliminare la versione",
"versionHistory.action.deleteSuccess": "Versione eliminata",
"versionHistory.action.restoreFailure": "Impossibile ripristinare la versione",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} sta ripristinando alla versione {{versionName}}...",
"versionHistory.action.restoreSuccess": "Versione ripristinata",
"versionHistory.action.updateFailure": "Impossibile aggiornare la versione",
"versionHistory.action.updateSuccess": "Versione aggiornata",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/ja-JP/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "保存内容",
"chatVariable.updatedAt": "最終更新:",
"collaboration.historyAction.generic": "共同編集者が元に戻す/やり直しを実行しました",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "コメントを追加",
"comments.actions.deleteReply": "返信を削除",
"comments.actions.editComment": "コメントを編集",
"comments.actions.editReply": "返信を編集",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "削除に失敗しました",
"versionHistory.action.deleteSuccess": "削除が完了しました",
"versionHistory.action.restoreFailure": "復元に失敗しました",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} がバージョン {{versionName}} に復元中です...",
"versionHistory.action.restoreSuccess": "復元が完了しました",
"versionHistory.action.updateFailure": "更新に失敗しました",
"versionHistory.action.updateSuccess": "更新が完了しました",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/ko-KR/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "저장된 내용",
"chatVariable.updatedAt": "업데이트 시간: ",
"collaboration.historyAction.generic": "공동 작업자가 실행 취소/다시 실행을 수행했습니다",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "댓글 추가",
"comments.actions.deleteReply": "답글 삭제",
"comments.actions.editComment": "댓글 편집",
"comments.actions.editReply": "답글 편집",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "버전을 삭제하지 못했습니다.",
"versionHistory.action.deleteSuccess": "버전 삭제됨",
"versionHistory.action.restoreFailure": "버전을 복원하지 못했습니다.",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}}님이 버전 {{versionName}}로 복원하는 중입니다...",
"versionHistory.action.restoreSuccess": "복원된 버전",
"versionHistory.action.updateFailure": "버전 업데이트에 실패했습니다.",
"versionHistory.action.updateSuccess": "버전이 업데이트되었습니다.",
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/nl-NL/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Stored content",
"chatVariable.updatedAt": "Updated at ",
"collaboration.historyAction.generic": "Een medewerker heeft een ongedaan maken/opnieuw uitvoeren-actie uitgevoerd",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Voeg een reactie toe",
"comments.actions.deleteReply": "Antwoord verwijderen",
"comments.actions.editComment": "Reactie bewerken",
"comments.actions.editReply": "Antwoord bewerken",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/pl-PL/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Przechowywana zawartość",
"chatVariable.updatedAt": "Zaktualizowano ",
"collaboration.historyAction.generic": "Współpracownik wykonał cofnięcie/ponowienie",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Dodaj komentarz",
"comments.actions.deleteReply": "Delete reply",
"comments.actions.editComment": "Edytuj komentarz",
"comments.actions.editReply": "Edit reply",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Nie udało się usunąć wersji",
"versionHistory.action.deleteSuccess": "Wersja usunięta",
"versionHistory.action.restoreFailure": "Nie udało się przywrócić wersji",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} przywraca wersję {{versionName}}...",
"versionHistory.action.restoreSuccess": "Wersja przywrócona",
"versionHistory.action.updateFailure": "Nie udało się zaktualizować wersji",
"versionHistory.action.updateSuccess": "Wersja zaktualizowana",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/pt-BR/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Conteúdo armazenado",
"chatVariable.updatedAt": "Atualizado em ",
"collaboration.historyAction.generic": "Um colaborador realizou desfazer/refazer",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Adicionar comentário",
"comments.actions.deleteReply": "Delete reply",
"comments.actions.editComment": "Editar comentário",
"comments.actions.editReply": "Edit reply",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Falha ao deletar versão",
"versionHistory.action.deleteSuccess": "Versão excluída",
"versionHistory.action.restoreFailure": "Falha ao restaurar versão",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} está restaurando para a versão {{versionName}}...",
"versionHistory.action.restoreSuccess": "Versão restaurada",
"versionHistory.action.updateFailure": "Falha ao atualizar a versão",
"versionHistory.action.updateSuccess": "Versão atualizada",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/ro-RO/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Conținut stocat",
"chatVariable.updatedAt": "Actualizat la ",
"collaboration.historyAction.generic": "Un colaborator a efectuat anulare/refacere",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Adaugă un comentariu",
"comments.actions.deleteReply": "Delete reply",
"comments.actions.editComment": "Editează comentariul",
"comments.actions.editReply": "Edit reply",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Ștergerea versiunii a eșuat",
"versionHistory.action.deleteSuccess": "Versiune ștearsă",
"versionHistory.action.restoreFailure": "Restaurarea versiunii a eșuat",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} restaurează la versiunea {{versionName}}...",
"versionHistory.action.restoreSuccess": "Versiune restaurată",
"versionHistory.action.updateFailure": "Actualizarea versiunii a eșuat",
"versionHistory.action.updateSuccess": "Versiune actualizată",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/ru-RU/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Сохраненный контент",
"chatVariable.updatedAt": "Обновлено в ",
"collaboration.historyAction.generic": "Участник выполнил отмену/повтор",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Добавить комментарий",
"comments.actions.deleteReply": "Delete reply",
"comments.actions.editComment": "Редактировать комментарий",
"comments.actions.editReply": "Edit reply",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Не удалось удалить версию",
"versionHistory.action.deleteSuccess": "Версия удалена",
"versionHistory.action.restoreFailure": "Не удалось восстановить версию",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} восстанавливает версию {{versionName}}...",
"versionHistory.action.restoreSuccess": "Версия восстановлена",
"versionHistory.action.updateFailure": "Не удалось обновить версию",
"versionHistory.action.updateSuccess": "Версия обновлена",
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/sl-SI/workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"chatVariable.storedContent": "Shranjena vsebina",
"chatVariable.updatedAt": "Posodobljeno ob",
"collaboration.historyAction.generic": "Sodelavec je izvedel razveljavitev/ponovitev",
"comments.actions.addComment": "Add Comment",
"comments.actions.addComment": "Dodaj komentar",
"comments.actions.deleteReply": "Delete reply",
"comments.actions.editComment": "Uredi komentar",
"comments.actions.editReply": "Edit reply",
Expand Down Expand Up @@ -1189,7 +1189,7 @@
"versionHistory.action.deleteFailure": "Brisanje različice ni uspelo",
"versionHistory.action.deleteSuccess": "Različica izbrisana",
"versionHistory.action.restoreFailure": "Obnavljanje različice ni uspelo",
"versionHistory.action.restoreInProgress": "{{userName}} is restoring to version {{versionName}}...",
"versionHistory.action.restoreInProgress": "{{userName}} obnavlja različico {{versionName}}...",
"versionHistory.action.restoreSuccess": "Obnovljena različica",
"versionHistory.action.updateFailure": "Posodobitev različice ni uspela",
"versionHistory.action.updateSuccess": "Različica posodobljena",
Expand Down
Loading
Loading