From f3382abe3bc1cd9d5583708d5fdbe550e57a8a38 Mon Sep 17 00:00:00 2001 From: Atila Romero Date: Sun, 12 May 2019 10:01:32 -0300 Subject: Add partentId support on card web API --- models/cards.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/models/cards.js b/models/cards.js index d5a59377..fdb7deb3 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1685,6 +1685,7 @@ if (Meteor.isServer) { * @param {string} boardId the board ID of the new card * @param {string} listId the list ID of the new card * @param {string} authorID the user ID of the person owning the card + * @param {string} parentId the parent ID of the new card * @param {string} title the title of the new card * @param {string} description the description of the new card * @param {string} swimlaneId the swimlane ID of the new card @@ -1695,6 +1696,7 @@ if (Meteor.isServer) { Authentication.checkUserId(req.userId); const paramBoardId = req.params.boardId; const paramListId = req.params.listId; + const paramParentId = req.params.parentId; const currentCards = Cards.find({ listId: paramListId, archived: false, @@ -1708,6 +1710,7 @@ if (Meteor.isServer) { title: req.body.title, boardId: paramBoardId, listId: paramListId, + parentId: paramParentId, description: req.body.description, userId: req.body.authorId, swimlaneId: req.body.swimlaneId, @@ -1761,6 +1764,7 @@ if (Meteor.isServer) { * @param {string} [listId] the new list ID of the card (move operation) * @param {string} [description] the new description of the card * @param {string} [authorId] change the owner of the card + * @param {string} [parentId] change the parent of the card * @param {string} [labelIds] the new list of label IDs attached to the card * @param {string} [swimlaneId] the new swimlane ID of the card * @param {string} [members] the new list of member IDs attached to the card @@ -1817,6 +1821,19 @@ if (Meteor.isServer) { }, paramListId); } + if (req.body.hasOwnProperty('parentId')) { + const newParentId = req.body.parentId; + Cards.direct.update({ + _id: paramCardId, + listId: paramListId, + boardId: paramBoardId, + archived: false, + }, { + $set: { + parentId: newParentId, + }, + }); + } if (req.body.hasOwnProperty('description')) { const newDescription = req.body.description; Cards.direct.update({ -- cgit v1.2.3-1-g7c22 From c21f710a705f7c6c8eeeb4dcce17fc24b1960441 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 12 May 2019 19:15:49 +0300 Subject: Fix typo. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 396ad7d1..17958fe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -133,7 +133,7 @@ and adds the following updates: and fixes the following bugs: - [Fix Full width of lists and space before first list](https://github.com/wekan/wekan/pull/2343). - Thanks to hupptehcnologies. + Thanks to hupptechnologies. - Remove [extra](https://github.com/wekan/wekan/pull/2332) [quotes](https://github.com/wekan/wekan/pull/2333) from docker-compose.yml. Thanks to hibare. - Fix Docker builds by moving all separately cloned wekan/packages/* repos like ldap, oidc, etc code to wekan repo code, -- cgit v1.2.3-1-g7c22 From 86e1a9cd5db7011220a4d33b4fc6cd7882945fd1 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 12 May 2019 20:40:32 +0300 Subject: Update changelog. --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17958fe6..b3a0ce5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# Upcoming Wekan release + +This release adds the following new features: + +- [Add partentId support on card web API](https://github.com/wekan/wekan/pulls/2400). + Thanks to atilaromero. + +Thanks to above GitHub users for their contributions and translators for their translations. + # v2.70 2019-05-11 Wekan release This release adds the following new features: -- cgit v1.2.3-1-g7c22 From 4e5ff17e1823b62718af37557803e48ce95c1407 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 12 May 2019 20:43:23 +0300 Subject: Update translations. --- i18n/es.i18n.json | 60 +++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/i18n/es.i18n.json b/i18n/es.i18n.json index 7529391b..da023d7a 100644 --- a/i18n/es.i18n.json +++ b/i18n/es.i18n.json @@ -23,10 +23,10 @@ "act-createCustomField": "creó el campo personalizado __customField__ en la tarjeta __card__ de la lista __list__ del carril __swimlane__ del tablero __board__", "act-createList": "añadida la lista __list__ al tablero __board__", "act-addBoardMember": "añadido el mimbro __member__ al tablero __board__", - "act-archivedBoard": "El tablero __board__ se ha movido a Archivo", - "act-archivedCard": "La tarjeta __card__ de la lista __list__ del carril __swimlane__ del tablero __board__ se ha movido a Archivo", - "act-archivedList": "La lista __list__ del carril __swimlane__ del tablero __board__ se ha movido a Archivo", - "act-archivedSwimlane": "El carril __swimlane__ del tablero __board__ se ha movido a Archivo", + "act-archivedBoard": "El tablero __board__ se ha archivado", + "act-archivedCard": "La tarjeta __card__ de la lista __list__ del carril __swimlane__ del tablero __board__ se ha archivado", + "act-archivedList": "La lista __list__ del carril __swimlane__ del tablero __board__ se ha archivado", + "act-archivedSwimlane": "El carril __swimlane__ del tablero __board__ se ha archivado", "act-importBoard": "importado el tablero __board__", "act-importCard": "importada la tarjeta __card__ a la lista __list__ del carrril __swimlane__ del tablero __board__", "act-importList": "importada la lista __list__ al carril __swimlane__ del tablero __board__", @@ -42,7 +42,7 @@ "activities": "Actividades", "activity": "Actividad", "activity-added": "ha añadido %s a %s", - "activity-archived": "%s movido a Archivo", + "activity-archived": "%s se ha archivado", "activity-attached": "ha adjuntado %s a %s", "activity-created": "ha creado %s", "activity-customfield-created": "creó el campo personalizado %s", @@ -92,19 +92,19 @@ "and-n-other-card_plural": "y otras __count__ tarjetas", "apply": "Aplicar", "app-is-offline": "Cargando, espera por favor. Refrescar esta página causará pérdida de datos. Si la carga no funciona, por favor comprueba que el servidor no se ha parado.", - "archive": "Mover al Archivo", - "archive-all": "Mover todo al Archivo", - "archive-board": "Mover Tablero al Archivo", - "archive-card": "Mover tarjeta al Archivo", - "archive-list": "Mover Lista al Archivo", - "archive-swimlane": "Mover carril al Archivo", - "archive-selection": "Mover selección al Archivo", - "archiveBoardPopup-title": "¿Mover Tablero al Archivo?", - "archived-items": "Archivar", + "archive": "Archivar", + "archive-all": "Archivar todo", + "archive-board": "Archivar este tablero", + "archive-card": "Archivar esta tarjeta", + "archive-list": "Archivar esta lista", + "archive-swimlane": "Archivar este carril", + "archive-selection": "Archivar esta selección", + "archiveBoardPopup-title": "¿Archivar este tablero?", + "archived-items": "Archivo", "archived-boards": "Tableros en Archivo", "restore-board": "Restaurar el tablero", "no-archived-boards": "No hay Tableros en el Archivo", - "archives": "Archivar", + "archives": "Archivo", "template": "Plantilla", "templates": "Plantillas", "assign-member": "Asignar miembros", @@ -133,8 +133,8 @@ "board-view-lists": "Listas", "bucket-example": "Como “Cosas por hacer” por ejemplo", "cancel": "Cancelar", - "card-archived": "Esta tarjeta se movió al Archivo", - "board-archived": "Este tablero se movió al Archivo", + "card-archived": "Se archivó esta tarjeta", + "board-archived": "Se archivó este tablero", "card-comments-title": "Esta tarjeta tiene %s comentarios.", "card-delete-notice": "la eliminación es permanente. Perderás todas las acciones asociadas a esta tarjeta.", "card-delete-pop": "Se eliminarán todas las acciones del historial de actividades y no se podrá volver a abrir la tarjeta. Esta acción no puede deshacerse.", @@ -347,7 +347,7 @@ "leave-board-pop": "¿Seguro que quieres abandonar __boardTitle__? Serás desvinculado de todas las tarjetas en este tablero.", "leaveBoardPopup-title": "¿Abandonar el tablero?", "link-card": "Enlazar a esta tarjeta", - "list-archive-cards": "Mover todas las tarjetas de la lista al Archivo", + "list-archive-cards": "Archivar todas las tarjetas de esta lista", "list-archive-cards-pop": "Esto eliminará del tablero todas las tarjetas en esta lista. Para ver las tarjetas en el Archivo y recuperarlas al tablero haga click en \"Menu\" > \"Archivo\"", "list-move-cards": "Mover todas las tarjetas de esta lista", "list-select-cards": "Seleccionar todas las tarjetas de esta lista", @@ -514,7 +514,7 @@ "OS_Loadavg": "Carga media del sistema", "OS_Platform": "Plataforma del sistema", "OS_Release": "Publicación del sistema", - "OS_Totalmem": "Memoria Total del sistema", + "OS_Totalmem": "Memoria total del sistema", "OS_Type": "Tipo de sistema", "OS_Uptime": "Tiempo activo del sistema", "days": "días", @@ -528,8 +528,8 @@ "no": "No", "accounts": "Cuentas", "accounts-allowEmailChange": "Permitir cambiar el correo electrónico", - "accounts-allowUserNameChange": "Permitir el cambio del nombre de usuario", - "createdAt": "Creado en", + "accounts-allowUserNameChange": "Permitir cambiar el nombre de usuario", + "createdAt": "Fecha de alta", "verified": "Verificado", "active": "Activo", "card-received": "Recibido", @@ -592,7 +592,7 @@ "set-filter": "Filtrar", "r-moved-to": "Movido a", "r-moved-from": "Movido desde", - "r-archived": "Movido a Archivo", + "r-archived": "Se archivó", "r-unarchived": "Restaurado del archivo", "r-a-card": "una tarjeta", "r-when-a-label-is": "Cuando una etiqueta es", @@ -610,11 +610,11 @@ "r-when-the-item": "Cuando el elemento de la lista de verificación es", "r-checked": "Marcado", "r-unchecked": "Desmarcado", - "r-move-card-to": "Mover tarjeta a", + "r-move-card-to": "Mover la tarjeta a", "r-top-of": "Arriba de", "r-bottom-of": "Abajo de", "r-its-list": "su lista", - "r-archive": "Mover al Archivo", + "r-archive": "Archivar", "r-unarchive": "Restaurar del Archivo", "r-card": "tarjeta", "r-add": "Añadir", @@ -635,15 +635,15 @@ "r-to": "a", "r-subject": "asunto", "r-rule-details": "Detalle de la regla", - "r-d-move-to-top-gen": "Mover tarjeta arriba de su lista", - "r-d-move-to-top-spec": "Mover tarjeta arriba de la lista", - "r-d-move-to-bottom-gen": "Mover tarjeta abajo de su lista", - "r-d-move-to-bottom-spec": "Mover tarjeta al fondo de la lista", + "r-d-move-to-top-gen": "Mover la tarjeta al inicio de su lista", + "r-d-move-to-top-spec": "Mover la tarjeta al inicio de la lista", + "r-d-move-to-bottom-gen": "Mover la tarjeta al final de su lista", + "r-d-move-to-bottom-spec": "Mover la tarjeta al final de la lista", "r-d-send-email": "Enviar email", "r-d-send-email-to": "a", "r-d-send-email-subject": "asunto", "r-d-send-email-message": "mensaje", - "r-d-archive": "Mover tarjeta al Archivo", + "r-d-archive": "Archivar la tarjeta", "r-d-unarchive": "Restaurar tarjeta del Archivo", "r-d-add-label": "Añadir etiqueta", "r-d-remove-label": "Eliminar etiqueta", @@ -675,7 +675,7 @@ "authentication-method": "Método de autenticación", "authentication-type": "Tipo de autenticación", "custom-product-name": "Nombre de producto personalizado", - "layout": "Disñeo", + "layout": "Diseño", "hide-logo": "Ocultar logo", "add-custom-html-after-body-start": "Añade HTML personalizado después de ", "add-custom-html-before-body-end": "Añade HTML personalizado después de ", -- cgit v1.2.3-1-g7c22 From e079b4df17d4bbf76a39377f37f8aa25bc2fe23e Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 12 May 2019 20:49:27 +0300 Subject: v2.71 --- CHANGELOG.md | 2 +- Stackerfile.yml | 2 +- package.json | 2 +- sandstorm-pkgdef.capnp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3a0ce5d..c08e42b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Upcoming Wekan release +# v2.71 2019-05-12 Wekan release This release adds the following new features: diff --git a/Stackerfile.yml b/Stackerfile.yml index d257b2c1..34f60830 100644 --- a/Stackerfile.yml +++ b/Stackerfile.yml @@ -1,5 +1,5 @@ appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928 -appVersion: "v2.70.0" +appVersion: "v2.71.0" files: userUploads: - README.md diff --git a/package.json b/package.json index 1477a69d..058e6730 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wekan", - "version": "v2.70.0", + "version": "v2.71.0", "description": "Open-Source kanban", "private": true, "scripts": { diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp index ce1c32a3..507d0833 100644 --- a/sandstorm-pkgdef.capnp +++ b/sandstorm-pkgdef.capnp @@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = ( appTitle = (defaultText = "Wekan"), # The name of the app as it is displayed to the user. - appVersion = 272, + appVersion = 273, # Increment this for every release. - appMarketingVersion = (defaultText = "2.70.0~2019-05-11"), + appMarketingVersion = (defaultText = "2.71.0~2019-05-12"), # Human-readable presentation of the app version. minUpgradableAppVersion = 0, -- cgit v1.2.3-1-g7c22