Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

Wekan

Wekan is an open-source kanban board (Trello like) which allows a card-based task and to-do management.

Wekan / Bugs

Update recently? deleting

Update recently? deleting

Wekan / Bugs · February 28, 2020 at 4:04pm (Edited 5 years ago)

was there an update last evening or the day before?

deleting archived cards do not stay deleted. Refreshing screen and they return in the list of archived things to delete

HOW do you clear out all cards from the system not using the GUI? Its suddenly happening on all three systems with no code changes.

Can we roll back to the last version. THis is broken

other issues: when updating with new cards from the api looking at the contents of the new cards put the GUI into some sort of wait mode. Until you refresh the screen several times you get this behavior that indicates its not connecting to Mongo or something

In fact the deleting the archived boards works and on screen refresh they are still there seems like its never deleting from Mongo at all

Another hint: in addition to the GUI thinking the archived card is deleted and when you refresh its not, the webhooks are not being sent out when the delete happens. So it seems that the GUI is disconnected from the mongo and webhook piece entirely.

Question: in addition to rolling back the code, using snap installed wekan, what is the correct way to get into mongo shell under snap wekan? I can at least see what is in the database then and perhaps clear it out

LMK

more hints, I can't delete archived cards but I can restore them. When I do I cannot disable or remove webhooks associated

HOw do I get into wekan under snap mongo to clear these out?

Load previous messages

March 1, 2020 at 5:20pm

and finally found the code error

    • reply
    • like

    Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: Exception while invoking method '/boards/remove' TypeError: Cannot read property 'title' of undefined Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.<anonymous> (models/activities.js:126:28) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at packages/matb33collection-hooks.js:422:18 Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Array.forEach (<anonymous>) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Function..each..forEach (packages/underscore.js:139:11) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at after (packages/matb33_collection-hooks.js:421:9) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.<anonymous> (packages/matb33_collection-hooks.js:436:12) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.collection.<computed> [as insert] (packages/matb33_collection-hooks.js:150:21) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at ns.Collection.insert (packages/mongo/collection.js:520:39) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at ns.Collection.Mongo.Collection.<computed> [as insert] (packages/aldeed_collection2-core.js:232:19) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.<anonymous> (models/lists.js:382:16) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at packages/matb33_collection-hooks.js:598:28 Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Array.forEach (<anonymous>) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Function..each..forEach (packages/underscore.js:139:11) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at packages/matb33_collection-hooks.js:597:11 Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Array.forEach (<anonymous>) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Function..each..forEach (packages/underscore.js:139:11) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.<anonymous> (packages/matb33_collection-hooks.js:596:9) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.collection.<computed> [as remove] (packages/matb33_collection-hooks.js:150:21) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at ns.Collection.remove (packages/mongo/collection.js:620:31) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at models/boards.js:1190:15 Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Array.forEach (<anonymous>) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at boardRemover (models/boards.js:1188:62) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Object.<anonymous> (models/boards.js:1394:5) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at packages/matb33_collection-hooks.js:598:28 Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Array.forEach (<anonymous>) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Function..each._.forEach (packages/underscore.js:139:11) Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at packages/matb33_collection-hooks.js:597:11 Mar 1 17:06:42 ip-172-31-35-186 wekan.wekan[30813]: at Array.forEach (<anonymous>)

      • reply
      • like

      Hmm? It can not remove board that does not have title

        • reply
        • like

        all boards are named

          • reply
          • like

          I'll look at those code lines

            • reply
            • like

            In my db we have campaigns and under campaigns we have phases

              • reply
              • like

              I add those together when I name the board

                • reply
                • like

                <campaignname> - <phasename>

                  • reply
                  • like

                  that error does not happen is webhooks previously uploaded are disabled

                    • reply
                    • like

                    (maybe another hint) (not sure)

                      • reply
                      • like

                      that activity.js has code params.board = board.title;

                        • reply
                        • like

                        it complains that title is not set

                          • reply
                          • like

                          for some reason

                            • reply
                            • like

                            but there is also above let board = null;

                              • reply
                              • like

                              I'll check with git blame

                                • reply
                                • like

                                I am only setting the board name in the api

                                  • reply
                                  • like

                                  is there something else I have to do?

                                    • reply
                                    • like

                                    my question is why when webhooks are disabled does this error not happen

                                      • reply
                                      • like

                                      I mean I build two tables just to capture all the names and ids that come back so I can track and change everything

                                        • reply
                                        • like

                                        I recursivelly call each command in this order

                                          • reply
                                          • like

                                          itemtype: 0|index | [ <1 empty item>, 0|index | 'board', 0|index | 'user', 0|index | 'integration', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'card', 0|index | 'card', 0|index | 'card', 0|index | 'board', 0|index | 'user', 0|index | 'integration', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'card', 0|index | 'card', 0|index | 'card', 0|index | 'board', 0|index | 'user', 0|index | 'integration', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'list', 0|index | 'card', 0|index | 'card', 0|index | 'card' ],

                                            • reply
                                            • like

                                            I did make some changes, for me GUI deletes do work when there is webhook

                                              • reply
                                              • like

                                              I think I'll make release and then let's see is there any errors anymore

                                                • reply
                                                • like

                                                when that info page date changes I will refresh and try right away

                                                  • reply
                                                  • like