Commit Graph
278 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 1e6e5c4534 Add another layer of path sanitization with zaru 2025-11-25 12:12:21 +00:00
James Smith fabb5d0dc6 Sanitize upload filenames to prevent path traversal 2025-11-25 12:09:12 +00:00
James Smith 65a5ef0bd7 prevent downloading files with only preview access 2025-11-18 11:15:03 +00:00
James Smith 315728ef08 Always paginate list pages 2025-11-05 14:26:18 +00:00
James Smith eca2bdd137 remove compact 2025-11-04 00:49:16 +00:00
James Smith a80c58d9b1 standardise on tag_list 2025-11-04 00:48:49 +00:00
James Smith 01c462a0f0 fix tags in upload 2025-11-04 00:04:10 +00:00
James Smith e010f5870d run model validations on upload 2025-11-03 23:34:34 +00:00
James Smith 40820e215c If not all files are archives, enqueue only a single processing job to create a single model with all files. 2025-10-22 15:10:18 +01:00
James Smith 9772bf15dd DRY up file data creation 2025-10-22 13:08:21 +01:00
James Smith 24aa2b7028 refactor common file creaion params into separate var 2025-10-22 12:43:24 +01:00
James Smith ef0f68b77f Allow name to be specified during model upload 2025-10-22 12:19:07 +01:00
James Smith c713e1b4bd Select and apply permission preset during upload 2025-10-10 12:04:03 +01:00
James Smith df45386dd6 Add links to other search methods in search help
resolves #4717
2025-09-17 14:09:43 +01:00
James Smith a2c39ac5bf replace deprecated unprocessable_entity 2025-08-21 20:05:17 +01:00
James Smith fdd3805208 remove organize option from bulk editor 2025-08-15 17:37:01 +01:00
James Smith ad10c170bf use filter object directly instead of concern method 2025-07-29 14:37:52 +01:00
James Smith c7f1a69426 use filter service params in various view partials 2025-07-29 14:37:51 +01:00
James Smith 07efcd538a Match known links if entered in search bar 2025-07-18 13:56:18 +01:00
James Smith b26bc7c088 check links can be imported before redirecting to import page 2025-07-18 09:46:04 +01:00
James Smith 5ac8be7b5c add import controller to handle UI flow 2025-07-17 14:24:45 +01:00
James Smith 23709481e1 add sync action to handle link sync clicks 2025-07-15 16:45:24 +01:00
James Smith 3d676b1469 Create intermediate "configure merge" page to choose target if not specified 2025-07-03 12:45:38 +01:00
James Smith 344c40bbb5 refactor merge code into controller concern
keeps things tidier
2025-07-03 12:45:38 +01:00
James Smith 9da58b5b6e change indexable config to proper method 2025-07-03 12:33:29 +01:00
James Smith 8bd7750d6a handle form-encoded model selections in merge action
So that we can handle data from bulk edit directly
2025-07-03 12:33:29 +01:00
James Smith 919944d845 show target selection form on merge if necessary 2025-07-03 12:33:29 +01:00
James Smith e3dba5d7c9 refactor merge controller method 2025-07-03 12:33:28 +01:00
James Smith d857eb6df8 move model merge action to model route collection instead of member 2025-07-03 12:33:28 +01:00
James Smith 7800d5124d swap round merge in controller 2025-07-03 12:33:28 +01:00
James Smith 27c3bdc988 refactor merge methods to be more flexible 2025-07-03 12:33:28 +01:00
James Smith 42d4e6c346 Don't show non-editable models in the bulk edit list 2025-07-03 12:21:23 +01:00
James Smith c03f113cfe remove client-provided size and type from upload APIs, not required any more 2025-06-26 10:37:41 +01:00
James Smith 8fbbc6f5f0 Add model creation API for uploaded files 2025-06-25 17:15:12 +01:00
James Smith 6d78968cd2 split file and model upload deserializers 2025-06-25 17:15:12 +01:00
James Smith 726b08748c move upload params into a form deserializer 2025-06-25 17:15:11 +01:00
James Smith bd3e14e695 use strong parameters in upload, and fix "sensitive" flag not being processed 2025-06-25 17:15:11 +01:00
James Smith cb86a1e40e Change from JSON to normal form encoded params for uploading 2025-06-25 17:15:11 +01:00
James Smith c8cd32e121 don't use card_list_page layout for model show 2025-06-22 22:23:22 +01:00
James Smith 5d85da9940 make sure model indexing tags take paging into account 2025-06-20 14:30:21 +01:00
James Smith c21a5129a4 set indexable data for models 2025-06-20 13:21:26 +01:00
James Smith 8d3dd2ac96 Fix error reporting in model form 2025-06-17 09:40:03 +01:00
James Smith e316e75d6f set default creator var if there's only one 2025-06-13 10:38:15 +01:00
James Smith 811aea57ba Only display local creators and collections in form selections 2025-06-13 10:26:42 +01:00
James Smith bfdb988664 add rate limit for model creation 2025-06-09 21:17:40 +01:00
James Smith 15c085aeeb Only show editable creators and collections in edit forms 2025-06-02 16:54:19 +01:00
James Smith 9d15420de8 Add info box for preview models 2025-05-22 13:44:02 +01:00
James Smith 3319d44819 enforce policy_scopes on ModelFiles 2025-05-21 17:23:53 +01:00