mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 20:18:07 +01:00
Merge https://github.com/wekan/wekan into devel
This commit is contained in:
commit
cb091c8a54
89 changed files with 1453 additions and 34 deletions
|
|
@ -127,9 +127,11 @@ Boards.attachSchema(new SimpleSchema({
|
|||
},
|
||||
'members.$.isNoComments': {
|
||||
type: Boolean,
|
||||
optional: true,
|
||||
},
|
||||
'members.$.isCommentOnly': {
|
||||
type: Boolean,
|
||||
optional: true,
|
||||
},
|
||||
permission: {
|
||||
type: String,
|
||||
|
|
|
|||
|
|
@ -31,6 +31,12 @@ CustomFields.attachSchema(new SimpleSchema({
|
|||
showOnCard: {
|
||||
type: Boolean,
|
||||
},
|
||||
automaticallyOnCard: {
|
||||
type: Boolean,
|
||||
},
|
||||
showLabelOnMiniCard: {
|
||||
type: Boolean,
|
||||
},
|
||||
}));
|
||||
|
||||
CustomFields.allow({
|
||||
|
|
@ -115,6 +121,8 @@ if (Meteor.isServer) {
|
|||
type: req.body.type,
|
||||
settings: req.body.settings,
|
||||
showOnCard: req.body.showOnCard,
|
||||
automaticallyOnCard: req.body.automaticallyOnCard,
|
||||
showLabelOnMiniCard: req.body.showLabelOnMiniCard,
|
||||
boardId: paramBoardId,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ import { WekanCreator } from './wekanCreator';
|
|||
|
||||
Meteor.methods({
|
||||
importBoard(board, data, importSource, currentBoard) {
|
||||
check(board, Object);
|
||||
check(data, Object);
|
||||
check(importSource, String);
|
||||
check(currentBoard, Match.Maybe(String));
|
||||
//check(board, Object);
|
||||
//check(data, Object);
|
||||
//check(importSource, String);
|
||||
//check(currentBoard, Match.Maybe(String));
|
||||
let creator;
|
||||
switch (importSource) {
|
||||
case 'trello':
|
||||
|
|
@ -18,7 +18,7 @@ Meteor.methods({
|
|||
}
|
||||
|
||||
// 1. check all parameters are ok from a syntax point of view
|
||||
creator.check(board);
|
||||
//creator.check(board);
|
||||
|
||||
// 2. check parameters are ok from a business point of view (exist &
|
||||
// authorized) nothing to check, everyone can import boards in their account
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ export class WekanCreator {
|
|||
this.checklistItems = {};
|
||||
// The comments, indexed by Wekan card id (to map when importing cards)
|
||||
this.comments = {};
|
||||
// Map of rules Wekan ID => Wekan ID
|
||||
this.rules = {};
|
||||
// the members, indexed by Wekan member id => Wekan user ID
|
||||
this.members = data.membersMapping ? data.membersMapping : {};
|
||||
// Map of triggers Wekan ID => Wekan ID
|
||||
|
|
@ -748,24 +750,25 @@ export class WekanCreator {
|
|||
}
|
||||
|
||||
check(board) {
|
||||
try {
|
||||
// check(data, {
|
||||
// membersMapping: Match.Optional(Object),
|
||||
// });
|
||||
this.checkActivities(board.activities);
|
||||
this.checkBoard(board);
|
||||
this.checkLabels(board.labels);
|
||||
this.checkLists(board.lists);
|
||||
this.checkSwimlanes(board.swimlanes);
|
||||
this.checkCards(board.cards);
|
||||
this.checkChecklists(board.checklists);
|
||||
this.checkRules(board.rules);
|
||||
this.checkActions(board.actions);
|
||||
this.checkTriggers(board.triggers);
|
||||
this.checkChecklistItems(board.checklistItems);
|
||||
} catch (e) {
|
||||
throw new Meteor.Error('error-json-schema');
|
||||
}
|
||||
//try {
|
||||
// check(data, {
|
||||
// membersMapping: Match.Optional(Object),
|
||||
// });
|
||||
|
||||
// this.checkActivities(board.activities);
|
||||
// this.checkBoard(board);
|
||||
// this.checkLabels(board.labels);
|
||||
// this.checkLists(board.lists);
|
||||
// this.checkSwimlanes(board.swimlanes);
|
||||
// this.checkCards(board.cards);
|
||||
//this.checkChecklists(board.checklists);
|
||||
// this.checkRules(board.rules);
|
||||
// this.checkActions(board.actions);
|
||||
//this.checkTriggers(board.triggers);
|
||||
//this.checkChecklistItems(board.checklistItems);
|
||||
//} catch (e) {
|
||||
// throw new Meteor.Error('error-json-schema');
|
||||
// }
|
||||
}
|
||||
|
||||
create(board, currentBoardId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue