Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #1975

Merged
merged 8 commits into from
Nov 22, 2023
Merged

Development #1975

merged 8 commits into from
Nov 22, 2023

Conversation

HardeepAsrani
Copy link
Member

Closes #1973

### Bug Fixes
- **Fixes Performance Issue**: Fixes an issue with Otter making repeated calls to Rest API and slowing down the editor.

pirate-bot and others added 6 commits November 18, 2023 06:10
The useSettings hook repeated calls to settings API after a recent version, probably after AI Content creator as that hooks to function to each block.

After trying various methods, I settled on this one as it seems to work with all the current usage of useSettings that we have in Otter.

I also tried to use a better implementation but those seem to not always work with the various use cases that we have with Otter. (as in using the Data Store for saving/retrieving the data)

In the future, I'd avoid using useSettings in plugins as now Gutenebrg has built-in methods to use Settings API from the store, and as we work on different parts of Otter, we can try to remove the existing usage of useSettings.
fix: otter making repeated api calls
@pirate-bot
Copy link
Contributor

pirate-bot commented Nov 21, 2023

Bundle Size Diff

Package Old Size New Size Diff
Animations 284.71 KB 284.71 KB 0 B (0.00%)
Blocks 1.5 MB 1.5 MB 444 B (0.03%)
CSS 91.71 KB 91.71 KB 0 B (0.00%)
Dashboard 176.79 KB 176.79 KB -6 B (-0.00%)
Export Import 89.53 KB 89.53 KB 0 B (0.00%)
Pro 354.15 KB 354.14 KB -12 B (-0.00%)

@pirate-bot
Copy link
Contributor

pirate-bot commented Nov 21, 2023

Plugin build for 25efcd0 is ready 🛎️!

@pirate-bot
Copy link
Contributor

pirate-bot commented Nov 21, 2023

E2E Tests

Playwright Test Status:

Performance Results serverResponse: 204.45, firstPaint: 597.55, domContentLoaded: 1727.35, loaded: 1729.5, firstContentfulPaint: 10946, firstBlock: 18279.5, type: 43.6, minType: 40.99, maxType: 46.62, typeContainer: 13.89, minTypeContainer: 12.01, maxTypeContainer: 16.82, focus: 65.43, minFocus: 58.17, maxFocus: 74.59, inserterOpen: 27.79, minInserterOpen: 23.73, maxInserterOpen: 33.06, inserterSearch: 8.79, minInserterSearch: 8.04, maxInserterSearch: 10.49, inserterHover: 41.13, minInserterHover: 36.92, maxInserterHover: 45.4, listViewOpen: 159.99, minListViewOpen: 137.95, maxListViewOpen: 174.77

@irinelenache
Copy link
Contributor

@HardeepAsrani Tested and the Patterns and OpenAI API work fine 👍
Regarding the Stripe API, this is how it behaves when i add it directly in the editor https://vertis.d.pr/v/Uc6U1P

@HardeepAsrani
Copy link
Member Author

@irinelenache Thank you, I've updated it. Can you try again? Thank you! Make sure to also test non-Stripe part again to confirm the changes didn't cause anything already tested from working. I tested on my side but having a second pair of eyes helps.

@irinelenache
Copy link
Contributor

@HardeepAsrani Tested and everything's fine now 🚀

@HardeepAsrani HardeepAsrani merged commit fdab03f into master Nov 22, 2023
12 checks passed
@pirate-bot
Copy link
Contributor

🎉 This PR is included in version 2.5.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Otter Blocks causing exessive REST requets in the Editor
3 participants