We've observed an issue with excessive requests being sent to the `/api/v1/apikey-status` endpoint, leading to server performance problems. For instance, `hook_form_node_form_alter()` sends this request for the edited node, and `hook_field_widget_complete_form_alter()` sends the same request multiple times, once for each field/widget on the currently edited node. Much of this seems unnecessary. Sending an API request to check apiKey validity and then deciding whether to display the iframe or not for each field doesn't seem necessary.

Moreover, the mentioned project has `drupal/autosave_form` module active, compounding the issue by triggering these requests every 4-5 seconds.

CommentFileSizeAuthor
#3 3418906-3.patch4.46 KBdejan0
#2 3418906-2.patch4.64 KBdejan0
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dejan0 created an issue. See original summary.

dejan0’s picture

FileSize
4.64 KB

please find the patch that removes most of those API calls

dejan0’s picture

FileSize
4.46 KB

re-roll the patch against older drupal/sidekick version

shyam-sawhney’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.