Commit Graph
93 Commits
Author SHA1 Message Date
James Smith 04b42c0b1e pass record to deserializers to check permissions 2025-11-25 15:54:09 +00:00
James Smith 8318030266 pass current user to form and API deserializers 2025-11-25 13:45:14 +00:00
James Smith 315728ef08 Always paginate list pages 2025-11-05 14:26:18 +00:00
James Smith e65f2fb3a3 DRY up sorting into a concern 2025-11-05 09:33:41 +00:00
James Smith d6bdc39f24 move creator filtering into filterservice, and apply owner filter 2025-11-04 15:27:45 +00:00
James Smith 53d5074f58 set owner using new attribute 2025-10-10 10:24:45 +01:00
James Smith 238dd9aae0 add routes for getting creator avatar and banner 2025-09-23 13:12:20 +01:00
James Smith a2c39ac5bf replace deprecated unprocessable_entity 2025-08-21 20:05:17 +01:00
James Smith 849dc49269 remove @filter_tags var 2025-07-29 14:37:52 +01:00
James Smith ad10c170bf use filter object directly instead of concern method 2025-07-29 14:37:52 +01:00
James Smith 2c68979c60 use FilterService#any? in logic checks 2025-07-29 14:37:51 +01:00
James Smith 23709481e1 add sync action to handle link sync clicks 2025-07-15 16:45:24 +01:00
James Smith 2b8497ff03 hide filtered tags on creator and collection lists when signed out 2025-06-23 16:46:04 +01:00
James Smith 8527183664 add indexable meta for creators and collections 2025-06-20 14:23:04 +01:00
James Smith ff163f7751 handle failed creates 2025-06-12 12:00:55 +01:00
James Smith ab57e7a172 fix status on failed update 2025-06-12 11:53:11 +01:00
James Smith 53860e1604 Move common form preparation code into view template
Not ideal, but DRYer and it is view-specific stuff. Can move into component later.
2025-06-12 11:47:21 +01:00
James Smith 885253cf3f Remove no longer needed allow_api_access method 2025-05-02 15:55:40 +01:00
James Smith 23d975edbc shortcut filtering if no filters are specified 2025-05-01 22:37:55 +01:00
James Smith 5faf02e565 add form creator deserializer 2025-04-12 17:04:46 +01:00
James Smith 570e191caa get 422 responses working correctly 2025-04-11 23:28:05 +01:00
James Smith 03d52b3670 get params from API requests correctly 2025-04-11 23:22:34 +01:00
James Smith f52182ed88 fix creator update not happening for API requests 2025-04-11 23:19:50 +01:00
James Smith ebbdd03992 add create and update methods for creators 2025-04-11 17:49:01 +01:00
James Smith 0fc50627ad add creator#delete API endpoint 2025-04-11 13:02:49 +01:00
James Smith 71349674de Change API to use vendor-specific content type, including version 2025-04-11 12:14:28 +01:00
James Smith c07541ce4d Support public scope, where there is no authenticated resource owner 2025-04-10 13:48:21 +01:00
James Smith 9196e9aa18 refactor API auth to allow per-action setting of scope 2025-04-10 13:31:07 +01:00
James Smith 6f700558e4 Hide "unassigned" creator/collection if empty 2025-03-25 20:39:54 +00:00
James Smith e25203f3d0 use olsd slug if validation fails 2025-03-25 09:53:18 +00:00
James Smith 423a9245a4 add failure handling for creator updates 2025-03-25 09:53:18 +00:00
James Smith 9ed182a62b make slug editable 2025-03-25 09:53:18 +00:00
James Smith 71420217b7 add basic creator endpoint and serializer 2025-03-20 09:25:59 +00:00
James Smith e4f839687a add API for creator and collection lists 2025-03-20 09:25:59 +00:00
James Smith e871dc6658 add oembed responses for creator and collection 2025-03-10 14:19:48 +00:00
James Smith d7d65ae62d optimise N+1 queries with bullet 2025-03-04 15:35:27 +00:00
James Smith d897db37b5 add missing policy_scope calls in controllers 2025-02-27 10:19:45 +00:00
James Smith 1ed195b444 add additional filters (not shown in sidebar) for creator profile page 2024-10-21 10:43:14 +01:00
James Smith 14c2540bf0 render model list on creator URL 2024-10-21 09:14:13 +01:00
James Smith 0f7597b7fb set owner at creation time for creator and collection
resolves #2744
2024-10-11 10:08:00 +01:00
James Smith 7f5c46c78f sort objects in lists by lowercase name 2024-09-24 13:31:37 +01:00
James Smith 6feb5019f4 remove default scopes to avoid errors on PostgreSQL 2024-09-23 19:10:16 +01:00
James Smith f4306c9e1d make object ordering case-insensitive 2024-09-23 11:01:49 +01:00
James Smith 2c7c0b00ff rename to find_param 2024-09-22 19:43:34 +01:00
James Smith 2f093774dd use DRYer from_param instead of find_by all over the place 2024-09-22 12:04:57 +01:00
James Smith 52930c7691 raise exceptions as expected for failed finds 2024-09-17 17:18:07 +01:00
James Smith 7e4287a662 rename return_to option 2024-09-13 12:58:29 +01:00
James Smith 005fb333a0 return to URL from session after creation 2024-09-13 12:38:48 +01:00
James Smith a0283cf7ef Link tags on model page to list
resolves #1554
2024-09-13 10:36:29 +01:00
James Smith 95bcca3ecf fix distinct queries 2024-09-07 10:53:01 +01:00