Skip to content

Bring the API contract test and cookie-only web view to main - #116

Merged
float3 merged 16 commits into
mainfrom
land-contract-test
Nov 4, 2026
Merged

float3 merged 16 commits into
mainfrom
land-contract-test

Conversation

@float3

@float3 float3 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

#91 (cookie-only web view) and #92 (the API contract test) were merged into ankiquest-networking after that branch had already gone into main through #90, so neither reached main. This merges that branch into main.

Two conflicts, both additive:

Tests: ktlint passes; all com.ichi2.anki.ankiquest tests pass (352) apart from AnkiquestDecksTest's learning-later test, which fails before 4am on main too and is fixed separately.

float3 added 10 commits November 1, 2026 12:49
When the HttpOnly session cookie was installed, the page script now hands
the dashboard only the member name; the token is still handed over when
the cookie could not be installed, as for older servers without
/auth/session.
…sions

AnkiquestCapabilities reads GET /api/capabilities per server, keeps the answer
in memory and preferences with its fetch time, and asks again after six hours,
for another account, and from the poll worker. A server without the endpoint
or with an unreadable answer has no features; an unreachable one keeps the last
known set. The dashboard keeps receiving the token until the server reports
cookie_session, so this works against servers that still need it.
The server's docs/api/examples are committed as test resources and fed to
the code the app reads each answer with. The ankiquest API contract workflow
replaces them with the server's current examples, runs the test daily as
well as on pull requests, and checks the app's art with the server's
exporter.
Check the app against the server's recorded API answers
Keep the token out of the dashboard page once its cookie is installed
…ntract-test

# Conflicts:
#	AnkiDroid/src/main/java/com/ichi2/anki/ankiquest/AnkiquestWebSession.kt
#	AnkiDroid/src/test/java/com/ichi2/anki/ankiquest/AnkiquestSettingsTest.kt
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Snapshot diff report: Previous regressions were resolved by the latest commit.

@float3
float3 merged commit 3dc318a into main Nov 4, 2026
22 checks passed
@float3
float3 deleted the land-contract-test branch November 4, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants