Repository navigation
Conversation
- 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>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Assessment: API update consistency and backwards compatibilityReviewed at head c5a1882. CI is green. Recommendation: merge, with two small follow-ups noted below. Clients and compatibility
Field semantics (omit / empty / null)The app runs
The only way to lose the ability to clear a field is to omit the key. Neither the Vue form nor the Nuxt form does that for a field the user can empty. Note that Archive
Consistency with other endpoints
Test gapsCovered: a host sending only Not covered:
Why the earlier attempt was revertedCommit de5e718 was reverted by 759b85d with no stated reason. The context is that #917 was being cut down to the host postcode change, and its body now says these changes "are now in #930". No bug was found in the original. Its code differs from this PR only in how postcode is handled, and postcode now lives in #917 behind RecommendationMerge. It fixes the corruption from the Archive action, it is required by the Nuxt client, and it keeps the ability to clear any field by sending it. Two follow-ups, neither a blocker:
Also worth adding the tests listed above, especially 1, 2 and 8. |
# Conflicts: # resources/js/components/GroupActions.test.js Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ges, host limits and approval Approving a group now notifies nearby volunteers from the group's saved position, so an approval that doesn't resend the location still notifies them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@edwh Two things before merging:
|
… timezone leaves events alone
- PATCH /api/v2/events/{id} changes only the fields the request sends, like groups. Start, end, title and
description are required only when sent. Sending one end of the event recalculates the hours from the
saved other end. A location brings its map position.
- The Vue events store sends blanks and booleans so the edit form can still clear the link or turn off online.
- The WordPress event push reads the saved event, not the update payload.
- An empty group timezone no longer sets future events' timezone to empty.
- Tests carry @story refs; manifest regenerated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
@ngm Ready to merge, please. CircleCI and SonarCloud are green.
The description above lists what each endpoint now does. |



Saving a group or an event through the API (
PATCH /api/v2/groups/{id},PATCH /api/v2/events/{id}) changes only the fields the request sends. Both endpoints follow the same rule.Groups
Events
Compatibility
Test plan