twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
20.11k stars 2.24k forks source link

2 windows are opened when exporting records for the first time [Linux] #6729

Open BOHEUS opened 2 months ago

BOHEUS commented 2 months ago

Scenario:

  1. Log in
  2. Go to any object page (e.g. Companies)
  3. Click Options > Export

Actual: 2 windows requesting file are opened Expected: 1 window requesting file should be opened

Context

Seems to appear only on Linux

ehconitin commented 2 months ago

Couldnt reproduce this bug. Could you share a screen recording of the mentioned bug.

BOHEUS commented 2 months ago

@ehconitin Screencast from 2024-08-24 12-14-12.webm

ehconitin commented 2 months ago

@charlesBochet

Could you take a look at this please. here useEffect seems to be triggering twice on the first call only. is it beacuse of fetchMoreRecordsWithPagination? weird bug.

Bonapara commented 2 months ago

Could not reproduce it either

ehconitin commented 2 months ago

I was able to reproduce this Thomas. Do you have your download location set already?

Bonapara commented 2 months ago

Maybe it's an issue specific to Windows

BOHEUS commented 2 months ago

@Bonapara I'm using Linux, not Windows 😂

Bonapara commented 2 months ago

Are you on Linux too @ehconitin?

ehconitin commented 2 months ago

Yep, linux!

charlesBochet commented 2 months ago

Weird one, I don't have Linux could you guys investigate to try to find the root cause?

BOHEUS commented 1 day ago

@Bonapara @charlesBochet this issue becomes even more clear when exporting records using standard actions from right menu, I managed to get 5 files downloaded at the same time (I'm not even sure how :laughing:)

BOHEUS commented 1 day ago

Video just in case (sadly didn't manage to download 5 files)

https://github.com/user-attachments/assets/200d3b7c-12af-42bb-8551-b970ea93eef9