appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: The Same events are displayed multiple times

Open RakshaKShetty opened this issue 2 years ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

The Same events are displayed multiple times beacuse same API is called 2 times in network

  • [ ] when user edit the workspace name from general tab the 2 update events are added
  • [ ] when user change website name in general tab the unnecessary events are displayed
  • [ ] when user navigate to member tab from setting menu the 2 events are added
  • [ ] When user clones an app, and renames it, we get two events of the same description

Steps To Reproduce

  1. Login to application
  2. click on setting tab
  3. now in general tab edit website placeholder
  4. click on members&setting menu in home page
  5. click on audit log
  6. The same event is displayed 2 times

Public Sample App

No response

Version

http://ec2-65-2-149-212.ap-south-1.compute.amazonaws.com/applications

RakshaKShetty avatar Sep 08 '22 12:09 RakshaKShetty

These are Appsmith events and audit logs just surfaces these problems up. These would have to be fixed at the source or at BE while recording the events.

IAmAnubhavSaini avatar Sep 09 '22 08:09 IAmAnubhavSaini

These are Appsmith events and audit logs just surfaces these problems up. These would have to be fixed at the source or at BE while recording the events.

@IAmAnubhavSaini We noticed multiple API calls happening for these requests from FE. Any idea why that is happening?

vishnu-gp avatar Sep 11 '22 04:09 vishnu-gp

I have no idea. And this has to be assigned to the pod that is the source of the duplicate events.

IAmAnubhavSaini avatar Sep 15 '22 06:09 IAmAnubhavSaini

This doesn't require a solve. This happens only in the development servers where react renders twice. Based on discussion with @berzerkeer @IAmAnubhavSaini

hiteshjoshi avatar Oct 18 '22 08:10 hiteshjoshi

Hey no @hiteshjoshi , that was not the case. I checked we are not enabling strict mode nor using React 18. So the problem lies somewhere else. We just had that discussion as a possibility but didn't conclude 😅 . So this should be reopened AFAIK.Sorry that this was not communicated to you prior.

berzerkeer avatar Oct 18 '22 09:10 berzerkeer

@trishaanand/@berzerkeer - Is this still an issue we need to solve?

infinitetrooper avatar Jun 06 '23 16:06 infinitetrooper

We see the same problem, launching an app in view mode sents a viewed event for every page of the app even though they are not rendered. And then it sends another one for the active page.

So if i have an app with 3 pages (page1, page2, page3), when i enter the app the audit logs will say (page1,page2,page3,page1).

Consecutive page switches work correctly.

gurel avatar Oct 19 '23 10:10 gurel