-
Notifications
You must be signed in to change notification settings - Fork 21
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
Investigate slow requests to ads/accounts #2674
Comments
After a bit of investigation, I'm not convinced that the current implementation is considerably worse than the previous in terms of handling slow responses to get existing accounts. Currently, the GoogleAdsAccountCard will show a spinner until the API response resolves. If the response errors, the spinner persists: Now a spinner is shown on the combo card until the existing accounts can be resolved. If the ads accounts error during resolution then only the MC connection card is displayed since the existing Ads accounts cannot be displayed: In both cases, if there is an error, a toast error message is shown that describes the problem that has occurred. Just to be sure, I've investigated how the API requests are triggered to make sure we're not delaying the requests in some way (e.g., requesting existing MC accounts and Ads accounts in parallel, etc.) and couldn't find any clear opportunities for improvement. |
Interesting! Yes, I guess that use case would a bit different now. With the new design, we need to know if there are existing accounts in order to determine which card actions to show, i.e., whether we should show an edit button to show the individual connected accounts and the UI to switch, or whether we should just show the button to switch Google accounts, etc. I'm unsure how we can avoid this extra request without a big refactor of how the combo card is constructed at this stage. |
During a review of #2653, @mikkamp made the following observation about slow requests to ads/accounts:
Acceptance Criteria
The text was updated successfully, but these errors were encountered: