Repository navigation
Conversation
… what it changes Edits of an organization's fields, overview, logo, extras and members save the fields they change (save_only). So does a logo upload, for an organization, a person, a source or a collection, and it records who did it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
…ories follow its status only when that's saved A save that names other fields leaves the repositories' status as it is. Editing an organization's extras records who did it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
…IO_EXTERNAL_ENDPOINT The address of a logo or banner is on the endpoint that browsers reach, as signed downloads already are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
…ves nothing else about the person Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
|
Reviews: two Codex passes for defects (codex-cli 0.171.0), a Codex check of the commits made after them, a simplification review and a review of the access rules. The first pass led to 2943a31. Two P1s are declined, with the reasons on the ticket. Nothing was cut, and the last check is clean. The findings and answers are on OpenConceptLab/ocl_online#881. |
snyaggarwal
left a comment
There was a problem hiding this comment.
Approve. Merge order: after #1129, on which it's stacked (and so after #1116).
With the banner checkpoint: the overview serializer now asks set_banner only when overview is in the request, so a PATCH without it is a no-op and is never refused. That fixes the FC.1 case raised on #1116. Saving only overview means a concurrent rename or logo upload can't write back an older overview, which takes care of #1116's F1.2. An overview edit racing a banner removal can still keep the banner it loaded (#1116's F1.1, accepted). set_banner_image in #1129 still saves the row it loaded under its lock, so a full save there is correct.
Other checks
save_onlysaves the given fields plusupdated_at(andupdated_bywhen given), then reloads the row. The organization's own update dropspublic_accesswhen it's the value it loaded, so an access change saved meanwhile stays. Tested for every organization route, and for joining and leaving.propagate_owner_statusreturns early only whenupdate_fieldsexcludesis_active.soft_delete,undeleteanddeactivatedo full saves, so status still propagates (tested both ways).upload_base64_logohas one caller,BaseLogoView, which is updated. Repository logo saves now write onlylogo_path.- The MinIO change makes
public_url_foragree with signed downloads. It also makes #1129's exact-address check consistent within one setup.
Already raised and answered on the ticket, and I agree: F1.2 (two concurrent edits of different extras), F1.3 (joining or leaving updates only the time), F1.6 (MinIO addresses of earlier uploads; no release has banner uploads).
Nit: the MinIO address fix is outside this PR's title. One line in the description would help whoever reads the release notes.
Ref OpenConceptLab/ocl_online#881. Stacked on #1129, which goes first.
save_onlydoes it, then reads the row back, so the response shows the organization as it is.MINIO_EXTERNAL_ENDPOINTwhen it's set, as signed downloads do.There's no migration and no new setting.
Tests: all pass, 4,308 without Elasticsearch and 815 with it, and
pylint -j0 core/exits 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3