Skip to content

fix(sjshire_wa_gov_au): migrate to t1cloud IntraMaps session flow#7050

Merged
markvp merged 1 commit into
mampfes:release/3.0.0from
markvp:fix/sjshire-wa-gov-au-json
Jul 23, 2026
Merged

fix(sjshire_wa_gov_au): migrate to t1cloud IntraMaps session flow#7050
markvp merged 1 commit into
mampfes:release/3.0.0from
markvp:fix/sjshire-wa-gov-au-json

Conversation

@markvp

@markvp markvp commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Part of #7046.

The Shire of Serpentine Jarrahdale moved its map off the self-hosted maps.sjshire.wa.gov.au IntraMaps server onto TechnologyOne's SaaS platform (ser.spatial.t1cloud.com). The old apikey Integration API endpoint is gone: it now returns the MapBuilder HTML shell, so every fetch failed with JSONDecodeError: Expecting value: line 1 column 1 (char 0).

This switches the source to the stateful session handshake the sibling WA councils on the same platform already use (IntraMapsRetriever + MapsClientConfig, as in kwinana_wa_gov_au), pointed at the new host/project/module.

The infoPanels field names are unchanged (WasteCollectionDay, RecycleDay), but the "this week" recycle variant now arrives with the day and "this" run together (MondayThis Week) while "next week" keeps the space; the suffix is now stripped with a regex so both forms resolve.

Fresh cassettes recorded (live, from within Australia): 39 collections per test case (26 weekly general + 13 fortnightly recycling).

  • test_declared_waste_types.py -k sjshire_wa_gov_au: 5 passed
  • test_source_components.py: 10 passed

The shire moved its map off the self-hosted maps.sjshire.wa.gov.au
IntraMaps server onto TechnologyOne's SaaS platform at
ser.spatial.t1cloud.com. The old apikey Integration API endpoint is gone
(it now returns the MapBuilder HTML shell, so every fetch failed with
JSONDecodeError). Switch to the stateful session handshake the sibling WA
councils on the same platform use (IntraMapsRetriever + MapsClientConfig,
as in kwinana_wa_gov_au).

The infoPanels field names are unchanged (WasteCollectionDay, RecycleDay),
but the "this week" recycle variant now arrives with the day and "this"
run together ("MondayThis Week") while "next week" keeps the space
("Tuesday Next Week"); parse the suffix with a regex so both forms
resolve. Record fresh cassettes (39 collections per test case).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@markvp
markvp merged commit 9997bde into mampfes:release/3.0.0 Jul 23, 2026
2 checks passed
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.

1 participant