Skip to content

Hosts can edit their group's postcode - #917

Open
edwh wants to merge 6 commits into
developfrom
hosts-edit-group-postcode
Open

edwh wants to merge 6 commits into
developfrom
hosts-edit-group-postcode

Conversation

@edwh

@edwh edwh commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Before: only administrators and network coordinators could change a group's postcode. Hosts saw it read-only, although they usually know it best.
  • After: hosts can edit their group's postcode on the group edit page. The area field stays admin/coordinator only, because coordinators sometimes fill it in a particular way.
  • Postcode length: postcodes are now limited to 32 characters, in the form and on the server. That's the size of the database column; before, nothing stopped a longer one being entered.

The other changes that were in this PR (saving a group changing only the fields sent, the Archive action, the timezone check) are now in #930.

Code Quality Review

  • The server only saves the postcode when the request includes it, so other kinds of group update don't blank it.

Test Plan

  • PHPUnit: a host can change the postcode but not the area; a postcode over 32 characters is refused.
  • Jest: group components (108 tests).
  • CI

edwh and others added 3 commits September 23, 2026 16:05
Previously only admins and network coordinators could, although hosts set it
when creating the group. Area stays admin/coordinator only. The postcode is
only written when the request sends it, so partial updates don't blank it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- updateGroupv2 updates only the fields present in the request (location
  brings its geocoded lat/lng/country with it). A partial update previously
  blanked everything else: e.g. sending just phone wiped the name, location,
  coordinates, description, website, timezone, email and network_data.
- A future-event timezone change only happens when timezone is sent;
  omitting it no longer counts as a change to null.
- The Archive group action sends only {id, archived_at}. It sent the whole
  store group back, which saved network_data as "[object Object]".

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@edwh edwh changed the title Hosts can edit their group's postcode Group updates change only the fields sent; hosts can edit postcode Sep 25, 2026
@edwh edwh mentioned this pull request Oct 1, 2026
3 of 4 tasks
@edwh edwh changed the title Group updates change only the fields sent; hosts can edit postcode Hosts can edit their group's postcode Oct 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Oct 1, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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