╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │646 try std.testing.expect(null != try evt.PatchRev.readById(Repo.DB, repo_opts.hash, moment, &arena, &first_patchrev_id));│ │647 } │ │648 try std.testing.expectError(error.NotFound, evt.currentMoment(repo_opts, &target)); │ │649 + │ │650 + // │ │651 + // edit the patch metadata in the fork │ │652 + // │ │653 + │ │654 + try std.testing.expect(try pch.editDraft(repo_opts, io, allocator, &admin, draft_path, .{ │ │655 + .id = patch_id_hex, │ │656 + .user_id = user_id, │ │657 + .repo_id = repo_id, │ │658 + .title = "explain the answer", │ │659 + .tags = "enhancement documentation", │ │660 + .description = "adds and explains a reusable answer constant", │ │661 + .author = author, │ │662 + .timestamp = 4, │ │663 + })); │ │664 │ │665 // │ │666 // publish the metadata and revision pointer │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │671 .user_id = user_id, │ │672 .repo_id = repo_id, │ │673 .author = author, │ │659 - .timestamp = 3, │ │674 + .timestamp = 5, │ │675 }); │ │676 try pch.publish(repo_opts, io, allocator, &admin, &target, draft_path, .{│ │677 .id = patch_id_hex, │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────╮ │678 .user_id = user_id, │ │679 .repo_id = repo_id, │ │680 .author = author, │ │666 - .timestamp = 4, │ │681 + .timestamp = 6, │ │682 }); │ │683 │ │684 var arena = std.heap.ArenaAllocator.init(allocator);│ ╰─────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │685 defer arena.deinit(); │ │686 const moment = try evt.currentMoment(repo_opts, &target); │ │687 const patch = (try evt.Patch.readById(Repo.DB, repo_opts.hash, moment, &arena, &patch_id)) orelse return error.NotFound; │ │688 + try std.testing.expectEqualStrings("explain the answer", patch.event.title); │ │689 try std.testing.expectEqualStrings(&first_patchrev_hex, &(patch.event.revision orelse return error.NotFound).id); │ │690 try std.testing.expectEqual(.open, patch.event.status); │ │691 try std.testing.expectEqual(null, try evt.PatchRev.readById(Repo.DB, repo_opts.hash, moment, &arena, &first_patchrev_id));│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯