Public: anyone can read this; the crew can change it.
A test pins app-note moderation: a banned visitor's notes leave the app's list, and unbanning brings them back #6792
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/core/app_notes.tsholds the notes visitors leave in an app, withhideNote,banVisitor,unbanVisitorandbannedNotes; none is called by a test directly.Done when a new test file proves, with two visitors' notes on one app and one on another app:
notesOfApplists all of the app's notes and none of the other app's.hideNoteremoves one note fromnotesOfAppand from the visitor's ownnotesOfas the module documents.banVisitorremoves that visitor's notes fromnotesOfAppand lists them inbannedNotes, only for that app;unbanVisitorrestores them.limitarguments cap each list.Test only; a bug it finds is fixed in the same pull.