Page MenuHomePhabricator

[S] Strange API traffic pattern from WikipediaApp on payments.wikipedia.org
Closed, ResolvedPublic

Description

Looking at logs on the payments servers, I noticed that WikipediaApp iOS and iPadOS clients tend to make the same GET request to api.php multiple times (typically 3) in the same second. The triple-hit doesn't seem right, is this expected or a bug?

Testing Notes

Please regression test the donate flow and confirm you can still reach the Apple Pay donate form. To Test:

  1. Change device region in iOS Settings to Japan or Spain.
  2. Change device date in iOS Settings to line up with Japan or Spain's campaigns
  3. Ensure you have an card already set up in the Wallet app.
  4. Fresh install the latest Staging Test Flight build. Launch app. On Explore feed, background the app, then foreground, then pull to refresh on Explore to force the app to fetch campaign data.
  5. Visit an article on EN Wikipedia. You should see a campaign modal appear. Tap Donate. You should see an action sheet asking if you want to donate via Apple Pay or other payment method. Tap Apple Pay. Confirm you see the Apple Pay native donate form.
  6. Tap back, then go to app Settings and tap donate. Confirm you see the same action sheet as in step 5. Tap Apple Pay. Confirm you see the Apple Pay native donate form.

Event Timeline

@Jgreen Probably a bug. Is this for the payment methods endpoint? If so, it's possible we are fetching multiple times for each app language they have set up in the app (although I would have expected most users to be at 1). This was the same placement as our previous wikifeeds announcement endpoint. We can look at optimizing this.

@Jgreen Probably a bug. Is this for the payment methods endpoint? If so, it's possible we are fetching multiple times for each app language they have set up in the app (although I would have expected most users to be at 1). This was the same placement as our previous wikifeeds announcement endpoint. We can look at optimizing this.

Yes, that exact URL gets hit several times in a row with no change to the args. I don't think it is causing an issue on our end, but it looked unusual so I figured I'd point it out. Thanks for investigating!

JTannerWMF moved this task from Needs Triage to Bug Backlog on the Wikipedia-iOS-App-Backlog board.
Tsevener renamed this task from Strange API traffic pattern from WikipediaApp on payments.wikipedia.org to [S] Strange API traffic pattern from WikipediaApp on payments.wikipedia.org.May 2 2024, 9:35 PM
Tsevener claimed this task.