Skip to content

Promote preview to main (2026-09-18) - #223

Merged
tobao17 merged 1 commit into
mainfrom
preview
Sep 18, 2026
Merged

tobao17 merged 1 commit into
mainfrom
preview

Conversation

@tobao17

@tobao17 tobao17 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Release preview (UAT-verified, deploy run 34928693409) to PROD: activity copy row names the source folder.

The folder chip never appeared on a media.copy notification, and the
reason is a precedence rule that is correct for every other media event
and backwards for this one.

_stampFolderNames reads the parent id from `dest` first, then `src` —
right for an upload or a move, where dest is where the file ended up in
the workspace being notified. A copy is filed against the SOURCE hub, so
`hubId` resolves to the workspace the file was copied OUT of, while
`dest.parent_id` is a folder in the copier's own personal space. The
lookup therefore paired a destination node id with the source hub id,
matched nothing, and the chip was silently dropped.

Had those ids ever collided it would have been worse than a missing
chip: the row would have named a folder the reader has no access to.

media.copy now reads src first and still falls back to dest, because a
handful of prod rows carry an empty `src` object. Every other event
keeps dest precedence untouched.

Covered by three new cases in activity-folder-name.test.js, which slices
the real method out of this file rather than copying it. Verified they
fail without the change (the chip comes back named "WRONG - copier
private folder") and pass with it: 44 passed, 0 failed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@tobao17
tobao17 merged commit a68785b into main Sep 18, 2026
6 of 7 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.

2 participants