tprouvot / Salesforce-Inspector-reloaded

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
https://chrome.google.com/webstore/detail/salesforce-inspector-relo/hpijlohoihegkfehhibggnkbjhoemldh
MIT License
183 stars 58 forks source link

[data-export] The UI freezes when typing LinkedEntity.Name #506

Open MaherSaleem opened 1 month ago

MaherSaleem commented 1 month ago

Make sure to read the troubleshooting section before creating an issue

Describe the bug I was trying to write this soql query Select Id, ContentDocumentId, LinkedEntity.Name from ContentDocumentLink where ContentDocumentId ='...', then the UI started to load a lot of objects as you can see, then it was freezing and I needed to reload the page. Note that reloading the page and pasting the exact query will work fine. the bug just happens when the cursor is at "LinkedEntity.Name" area image

To Reproduce Steps to reproduce the behavior:

  1. Go to "Data Export"
  2. type the soql query Select Id, ContentDocumentId, LinkedEntity.Name from ContentDocumentLink where ContentDocumentId ='...'
  3. put the cursor at the Nameinside LinkedEntity.Name
  4. the UI will freeze

Expected behavior It should not freeze

Screenshots image

Desktop (please complete the following information):

tprouvot commented 1 month ago

Hi @MaherSaleem,

Thanks for raising this issue, I've already faced it. Long story short, the LinkedEntity is a polymorphic field which can be almost every object of the org which that cause the issue. I may have to limit the loading when too many references are found.