Commit graph

29 commits

Author SHA1 Message Date
7473af4163
enforce text ownership on node endpoints
getNodesOfText, createNode, and bulkCreateNodes now require
the session user, look up the target text, and respond 403
unless the user owns the text or is an admin. paves the way
for moving these endpoints out of the admin-only group.
2026-05-02 21:45:47 +03:00
8a90c5bab4
refactor bulk create nodes controller to catch BadRequestException 2026-04-19 23:37:40 +03:00
1761bfad7f
refactor create node controller to catch BadRequestException 2026-04-19 23:37:12 +03:00
38b7a0adb8
add count validation in bulk create nodes use case 2026-04-19 23:36:37 +03:00
99c320b28f
add @throws BadRequestException to create node 2026-04-19 23:23:03 +03:00
1199fcbff3
add @throws BadRequestException to bulk create nodes 2026-04-19 23:22:56 +03:00
ff721d9137
add null guards in create node use case 2026-04-19 23:11:15 +03:00
23f4e70e57
make CreateNodeRequest properties nullable 2026-04-19 23:10:58 +03:00
1f76fc08b6
add null guards in bulk create nodes use case 2026-04-19 23:10:10 +03:00
337017fc52
make BulkCreateNodesRequest properties nullable 2026-04-19 23:09:52 +03:00
189493b045
php cs fixer 2026-04-19 23:07:48 +03:00
53cb002d0d
implement node controller method for bulk create nodes 2026-04-18 23:05:14 +03:00
ce56e460ff
add use case and request 2026-04-18 23:04:56 +03:00
628c633823
change the way data is accessed from request in node controller 2026-04-18 22:00:24 +03:00
bdf386e510
implement create node method in node controller 2026-04-18 21:33:41 +03:00
f5a8b8447f
rename route for nodes and adjust calls to route 2026-04-18 21:01:02 +03:00
a092ee8840
json node repo 2026-04-17 11:30:17 +03:00
38d06fce43
refactor getNodes into a new NodeController and update refs 2026-04-17 11:29:55 +03:00
d1eb648b73
test and impl that only one root node exists per text
in practice this means only one node with a null parentNode
2026-02-21 22:44:18 +02:00
4f83ae7926
add find by text id method to node repo w/ impl 2026-02-21 22:43:55 +02:00
143a4ffe39
test nonexistant parent node id throws exception 2026-02-21 22:23:30 +02:00
021a2a6f15
add parent node to node, fix type of null 2026-02-21 22:17:59 +02:00
483110f773
add find method to node repo and impl to fake repo 2026-02-21 22:14:10 +02:00
b3453a4604
throw exception if text doesnt exist 2026-02-21 21:08:42 +02:00
c0994d806e
add text to node 2026-02-20 12:01:53 +02:00
e55133ceac
dto for the create method of node 2026-02-19 21:26:01 +02:00
3d0d07385c
node repo 2026-02-19 21:25:50 +02:00
bd1520c2ca
create node with request dto 2026-02-19 21:25:37 +02:00
3ddca5687b
node entity 2026-02-19 21:25:26 +02:00