Open Dexus opened 5 months ago
additional ref: #5347
@xet7
additional info:
moving a card to a other board, does not update the listId
of the card, with the listId
from the new Board. Or it does not update the boardId
and keeps the old listId
.
I'm not sure, what here is currently the right behavior that describes the problem. I can only see the Problem here, that the Card is corrupted.
MongoDB Script to identify the corrupted card:
const dbName = 'wekan';
const searchBoardID = '3DpHP9eomuGR8guoJ';
const col_boards = db.boards;
const col_lists = db.lists;
const col_cards = db.cards;
const col_users = db.users;
const co__avatars = db.avatars;
async function runSearch() {
try {
const cursorCards = col_cards.find({ "boardId": searchBoardID});
const cursorLists = col_lists.find({ "boardId": searchBoardID}).toArray();
await cursorCards.forEach(async (card) => {
//printjson();
const result = cursorLists.find((list) => list._id === card.listId);
if (!result) {
printjson({"cardID": card._id, "cardTitle": card.title, "boardId": card.boardId, "listId": card.listId, "RESULT": (result || "NOTFOUND")});
}
});
} catch (err) {
console.error('error while process:', err);
}
}
runSearch();
Issue
Server Setup Information
Problem description
Reproduction Steps
Logs
don't show errors, because browser already crashed the window... after click on the broken card.