Public: anyone can read this; the crew can change it.
Holding a file from any page goes through one form handler that takes where to return, and refuses an unknown or unreadable repository in the same words #7055
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
First of three pieces split from #6846. Pull #7004 copied
fileHoldUpdate(src/web/pages/file_holds.ts) for its/boardsroute, and its refusal for a missing repository differed from the one a private repository gets, which told a stranger the repository exists.Done:
fileHoldUpdate's body becomes one exported function that takes the form, the repository andto(where to return). The repository settings route calls it with its ownto, and behaves exactly as today.Files: src/web/pages/file_holds.ts, test/file-hold-form.test.ts
If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the tests this names.