Commit Graph
135 Commits
Author SHA1 Message Date
James Smith 32cacb9891 fix add/remove tags in bulk edit 2024-08-06 13:55:01 +01:00
James Smith 6d342182fe move key-value tag calculations out of view 2024-08-05 22:20:37 +01:00
James Smith ce61a58f03 move more optimal tag select into concern 2024-08-05 22:19:13 +01:00
James Smith 8efaa20de6 move tag list stuff into its own concern 2024-08-05 22:19:13 +01:00
James Smith dada8dcb92 rename ModelFilters concern to Filterable 2024-08-05 17:11:06 +01:00
James Smith cd0c61d50e improve tag performance a bit by only getting count and name when building the list 2024-08-05 17:11:05 +01:00
James Smith a3acb966d8 remove path nesting of models inside libraries 2024-07-30 19:13:17 +01:00
James Smith 03556774d4 rename process_filters to filter_models and combine 2024-07-24 12:08:56 +01:00
James Smith 575cb52d99 rename process_filters_init to be clearer 2024-07-24 11:59:23 +01:00
James Smith 49919356df exclude filtered tags earlier 2024-07-24 10:35:58 +01:00
James Smith 50296ea0f0 remove unused process_filters_tags_fetchall 2024-07-24 10:28:10 +01:00
James Smith b91038ccbf apply sorting and thresholding to tag list 2024-07-24 10:26:47 +01:00
James Smith 905b4ceb05 restore count of unrelated tags 2024-07-24 10:12:05 +01:00
James Smith 37f230d80d generate tag list from filtered models 2024-07-24 10:10:08 +01:00
James Smith 36a23652ad remove @commontags 2024-07-24 09:54:20 +01:00
James Smith e9fe30ba33 only need @addtags in bulk edit 2024-07-24 09:34:31 +01:00
James Smith 6d85881b47 move archive extraction into a background job 2024-06-28 14:59:54 +01:00
James Smith 8f2613bf0d include all subfolders in models created from ZIPs 2024-06-28 14:03:25 +01:00
James Smith c960a578ff scan newly created models immediately 2024-06-28 12:55:44 +01:00
James Smith 4324c09627 add upload endpoint tests
though I'm not sure they work usefully with the routes.rb authentication block
2024-06-28 11:59:59 +01:00
James Smith 95a8ef027e file size is enforced by upload endpoint now 2024-06-28 11:51:44 +01:00
James Smith 1b2eec2337 fix test and handle empty upload data 2024-06-28 11:50:31 +01:00
James Smith 156b466af3 tweak uppy form settings 2024-06-28 10:19:04 +01:00
James Smith c068589096 extract files uploaded into Shrine cache 2024-06-28 10:03:46 +01:00
James Smith ad0cca8949 move uploading into ModelsController new and create actions 2024-06-27 14:41:49 +01:00
James Smith c66094cbb0 optimise model component by passing in policies 2024-04-24 16:21:20 +01:00
James Smith ae058449d1 linting 2024-04-24 12:29:36 +01:00
James Smith 8587c44ced more eager loading for models 2024-04-24 12:25:11 +01:00
James Smith 75b652b9af eager loading for model file data 2024-04-24 11:08:16 +01:00
James Smith 831f167337 don't load library separately, get from model 2024-04-24 11:06:08 +01:00
James Smith 9b45a54ddd early-load library and modelfiles in ModelsController#index 2024-04-24 10:52:33 +01:00
James Smith cacdc500bc Refactor models#bulk_update so we call policy scope
resolves #2061
2024-04-21 17:15:08 +01:00
James Smith b2ff1f0567 show images in a carousel above models 2024-04-13 18:17:56 +01:00
James Smith fd9bbe7e5e change existing model scan jobs/actions to use CheckModelJob 2024-04-08 11:13:48 +01:00
James Smith 46444bd041 force geometric scan 2024-04-04 22:25:46 +01:00
James Smith 0e65dc0454 add ability to scan an individual model 2024-04-04 18:42:57 +01:00
James Smith 964e13b274 set up granular access policy for Models 2024-03-21 22:58:17 +00:00
James Smith 701ceb4cb3 authorisation and request tests for models 2024-03-16 21:16:46 +00:00
James Smith ecf08da655 don't authorize library in models controller 2024-03-15 16:18:55 +00:00
James Smith a24d544e2d authorize models using pundit 2024-03-15 16:18:53 +00:00
James Smith cf22ebfa46 don't redirect back to deleted files or models 2024-03-04 13:47:33 +00:00
James Smith fb79d4056b hide presupported versions in file lists if setting says so 2024-02-09 14:41:28 +00:00
James Smith 0ff3752fb8 can't use alert on render, need to use flash explicitly 2024-02-01 10:49:04 +00:00
James Smith e823ab99ea add notices and alerts for succes and failure of various site actiivities 2024-02-01 10:23:06 +00:00
James Smith 7bf0b7be23 redirect back to some previous pages correctly, for things like scans, problem changes, etc. 2024-02-01 10:17:24 +00:00
James Smith 58843a06ef fix copy/paste error on deletion policy for models 2024-01-30 23:57:22 +00:00
James Smith 53fc89f4a0 if model update fails, go back to form and display errors 2024-01-30 22:15:40 +00:00
James Smith 37e5a297fa add editing and bulk editing of model license 2024-01-28 17:14:01 +00:00
James Smith 47a647ee89 disable model and file deletion in demo mode 2024-01-26 11:36:30 +00:00
James Smith ac32cd3089 change all objects to IDs in jobs
to allow soft-failure if an object is missing by the time it's processed
2023-08-24 22:19:00 +01:00