Skip to content

Hold two classes on one phone, switch between them, and watch the widget #116

Closed

Description

@lumenpearson

Part of #109. The feature is #90; six defects four audits found in it are #102.

Not one of the multi-class fixes has been run against a live class. The serious one — a 401 on one class threw the device out of all of them — is closed by a test, and a test is not a school's wifi.

The walkthrough:

  1. connect the phone to two classes and walk between them, looking at the widget after each switch. The widget is told there is new data by a broadcast (DATA_SYNCED) rather than by a dependency, which is the part with no test that can fail honestly;
  2. leave one class while the other is on screen, and check the timetable fingerprint of the one still joined survives — that was a defect once;
  3. let a sync be in flight and leave that class: rows of a left class used to be resurrected by it;
  4. check that a notification from the previous class leaves the shade on a switch.

Then the join modes, which nobody has switched on a live class: put a class into «только по приглашению», make sure a connected phone goes on working, take a personal code with «📱 Подключить телефон» and connect a second phone with it. Switching the mode revokes no device in either direction — three screens promise that out loud, and nobody has watched them keep the promise.

And the 429, which nobody has ever seen: the code screen used to draw «HTTP 429 Too Many Requests» and now says in Russian how long to wait. Reaching it means asking for codes faster than the throttle allows, which is easy enough to do on purpose.

Note the order of memberships has no test that fails if it goes back to being undefined — that is recorded as an honest caveat rather than a defect, and this walkthrough is the only thing that would notice.

Activity

  1. lumenpearson commented on Sep 26, 2026

    @lumenpearson
    OwnerAuthor

    Walked on an emulator (AVD Pixel_10_Pro_XL, API 37 (google_apis_playstore, x86_64, 1344×2992 at 480 dpi), 26–27 September 2026), against a local server («9А», plus «10Б» in Asia/Yekaterinburg) and production («11А»).

    • Joined both, listed with «Показывается сейчас», and both ways out named.
    • The widget follows a switch, but it did not follow a second switch made inside a live Glance session: The widget keeps drawing the previous class when a second redraw lands inside a live Glance session #168, fixed in Walk the app on an emulator, fix what it found, and the owner's tab bar and pickers #186.
    • The production class was invite-only already. Its class code gets 403, which the app words as «Этот класс подключает телефоны только по личному приглашению…», and the release phone that joined it earlier still syncs.
    • A personal code from the live bot's «📱 Подключить телефон» linked the release build: «Телефон привязан · Роль: Владелец · можно редактировать». Replaying the spent code answered 404.
    • The 429 was seen for the first time: «Слишком много попыток. Попробуйте через 15 минут.», with Retry-After: 866.

    Still unobserved: the alarms' re-planning after a switch. Closes with #186.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions