twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
16.06k stars 1.82k forks source link

Replications in Kanban Modus #4793

Closed gabriel-morais closed 4 months ago

gabriel-morais commented 6 months ago

Bug Description

Replications in the "Opportunities" page in Kanban Modus.

objects/opportunities

Bildschirmfoto 2024-04-03 um 21 33 36
Flexusma commented 6 months ago

I just wanted to open an issue for this :D. Experiencing the same thing

charlesBochet commented 6 months ago

Hi @Flexusma @gabriel-morais How is this happening? Any thing special you are doing so I can reproduce?

Flexusma commented 6 months ago

This happened to me after adding custom fields to the opportunities model (2x rating type) and then trying to add these to the default kanban view. After deleting the view and recreating it by myself it seems to work fine. Looking at the xhr/console logs it seems like an issue with multiple eventhanders firing; At times I saw 2-3x identical graphql requests.

Hope this helps :)

Flexusma commented 6 months ago

I take it back. I just had the kanban view open for a couple minutes and added a company tab and the api got absolutely spammed

grafik
Flexusma commented 6 months ago

Just trying to remove a single of these elements (single click) causes 5+ requests

grafik
charlesBochet commented 6 months ago

Wow! Ok, so it's happening when you add fields on data model. Taking a look!

Flexusma commented 6 months ago

I'm not sure it has to do with the data-model. I didn't make any changes to the data-model in the session the screenshots are from. I just had it sitting for a while after logging in, then proceeded to remove/add a field to the kanban view.

charlesBochet commented 6 months ago

I cannot reproduce Are you self hosting? If yes on what branch are you?

Flexusma commented 6 months ago

I am indeed selfhosting. Latest docker image (sha256:80a9fa70925f82060e3cd80e994d99a7f2bd66f163dea9595b255c706be14aa9)

charlesBochet commented 6 months ago

Weird, I cannot reproduce on the latest version of main. Let's wait for the 0.4.0 to be out and retry with this one

FelixMalfait commented 4 months ago

I spent some time trying to reproduce this following you instructions @Flexusma but couldn't. I guess this has been solved so I will be closing the issue. Please re-open if you ever see this on a fresh install 🤨. Thanks to both of you for the report!