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

Fix Form Marketing List ID fetch and improve error handling #1836

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

Soare-Robert-Daniel
Copy link
Contributor

@Soare-Robert-Daniel Soare-Robert-Daniel commented Aug 30, 2023

Closes #1835

Summary

ℹ️ From the last Form update, the internal structure was slightly modified. The relaxed type hint from PHPDocs made the problem invisible to PHPStan.

🔩 The type hint is now more strict.
🐛 Improved error display in Editor.
🔧 Test Provider feature has been simplified.

Screenshots

Showcase the working API and error display.

2023-08-30.11-26-37.mp4

Test instructions

⚠️ You will need a Mailchimp and Sendinblue API Key.

  1. Insert a Form.
  2. Go to marketing integration and use valid API Keys to check the functionality.
  3. Try to use an invalid key format (like a random string) to see if errors appear as notices in the bottom-left corner.

Checklist before the final review

  • Included E2E or unit tests for the changes in this PR.
  • Visual elements are not affected by independent changes.
  • It is at least compatible with the minimum WordPress version.
  • It loads additional script in frontend only if it is required.
  • Does not impact the Core Web Vitals.
  • In case of deprecation, old blocks are safely migrated.
  • It is usable in Widgets and FSE.
  • Copy/Paste is working if the attributes are modified.
  • PR is following the best practices

@Soare-Robert-Daniel Soare-Robert-Daniel self-assigned this Aug 30, 2023
@Soare-Robert-Daniel Soare-Robert-Daniel marked this pull request as ready for review August 30, 2023 08:59
@pirate-bot
Copy link
Contributor

pirate-bot commented Aug 30, 2023

Bundle Size Diff

Package Old Size New Size Diff
Animations 270.81 KB 270.81 KB 0 B (0.00%)
Blocks 1.42 MB 1.42 MB 132 B (0.01%)
CSS 85.28 KB 85.28 KB 0 B (0.00%)
Dashboard 122.49 KB 122.49 KB 0 B (0.00%)
Export Import 83.17 KB 83.17 KB 0 B (0.00%)
Pro 303.34 KB 303.34 KB 0 B (0.00%)

@pirate-bot
Copy link
Contributor

pirate-bot commented Aug 30, 2023

Plugin build for 89f423a is ready 🛎️!

@pirate-bot
Copy link
Contributor

pirate-bot commented Aug 30, 2023

E2E Summary

Typing

Test Average Time (ms) Standard Deviation (ms) Median Time (ms) Quantile for soft limit (%) Quantile for hard limit (%)
Typing 52.88 3.46 51.41 100 (60ms) 100 (80ms)
Values above 60ms ""

@irinelenache
Copy link
Contributor

irinelenache commented Aug 31, 2023

@Soare-Robert-Daniel Tested and the issue is fixed now 🚀
Found some other problem:

  • When i'm using the Test service feature, i'm getting an error even if it works and the otter-form email is added to the contact list. (The behaviour is the same for Sendinblue and Mailchimp)

@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Aug 31, 2023
@Soare-Robert-Daniel Soare-Robert-Daniel linked an issue Aug 31, 2023 that may be closed by this pull request
@irinelenache
Copy link
Contributor

@Soare-Robert-Daniel Checked again and everything's fine now ✔️

@HardeepAsrani HardeepAsrani merged commit 235d058 into development Aug 31, 2023
13 checks passed
@HardeepAsrani HardeepAsrani deleted the fix/form-mailchimp branch August 31, 2023 19:19
@pirate-bot
Copy link
Contributor

🎉 This PR is included in version 2.4.0 🎉

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 Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-checklist-complete The Pull Request checklist is complete. (automatic label) 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.

Mailchimp API not working with the Form block
4 participants