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
d5a6e39fb9
remove unnecessary uses of #id
2024-09-05 12:30:12 +01:00
James Smith
b23434bacb
lookup models from URLs by public_id
2024-09-05 12:30:12 +01:00
James Smith
fe3bb1dd40
add simple s3 fields to new library form
2024-07-04 13:32:03 +01:00
James Smith
7c801c4dd0
allow storage engine to be set in controller
2024-07-01 15:52:25 +01:00
James Smith
8e2a9958ff
set up granular access policy for Library
2024-03-21 22:58:17 +00:00
James Smith
52655d3a28
authorization for library controller
2024-03-15 23:48:01 +00:00
James Smith
82f8175f04
add policy for library show and index actions
2024-03-15 16:18:53 +00:00
James Smith
343b33d0ba
use instance variable for library in show
2024-03-15 16:18:53 +00:00
James Smith
8bd44b4ce3
remove redundant "*.new.title" keys and replace with "*.general.new"
2024-02-08 23:25:51 +00:00
James Smith
f2d12d90a0
i18n all controllers
2024-02-06 15:37:21 +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
4a8ac033cc
disable library create/edit/destroy in demo mode
2024-01-26 11:33:10 +00:00
James Smith
ac6c1a3301
lint: use find_each instead of all.each in ActiveRecord models
2023-10-10 19:54:04 +01: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
James Smith
3b99eb93e1
Rename LibraryScanJob to DetectFilesystemChangesJob and remove integrity checks
...
now they can be run separately
2023-08-21 15:28:33 +01:00
James Smith
e6df976567
add check_all job which runs analysis and integrity checks on all existing content
2023-07-11 22:56:01 +01:00
Don Eisele
2514dcfeba
Change icon per-library in app menu
2023-03-07 16:05:01 -06:00
Don Eisele
fe640a20c8
lint
2023-03-06 10:31:25 -06:00
Don Eisele
880e7ee9a1
Add search for missing tags in library (settings UI still needs some tweaking)
2023-03-06 10:21:30 -06:00
Don Eisele
7f8cc306fc
Add name/notes/caption to library.
2023-03-04 00:02:08 -06:00
James Smith
ab1fafb3c8
move library scans to their own actions
2023-02-22 17:12:41 +00:00
Don Eisele
0d47880e84
Fix tests to match previous commit. Put a redirect in for /libraries/1 to go to /models?library=1
2023-01-31 21:39:24 -06:00
Don Eisele
bc29a2129e
Restructure:
...
Moved model group actions from libraries#show to models#index (and bulkedit/update)
Features added:
filter models#index by libary
filter models#index by multiple tags at once
filter models#index collection
filter models#index by search query
All four above filters are logically anded together
Bulk editor modified to operate logically the same way for filter sets
Models added in header
Quick Search box added in header
Limits box added in models view
Tags are greyed out if they would result in 0 models if added to current filters.
Helper added:
params_passthrough() Grabs current filters from params() to be able to pass through or merge for use in buttons/links
2023-01-31 19:30:14 -06:00
James Smith
a3c32e1930
lint: don't use find_by_x
2022-12-12 16:38:50 +00:00
James Smith
9b118dd838
refactor fetching of all tags into a Library method
2022-11-19 10:45:40 +00:00
James Smith
0fa5357ded
Add order parameter for library model lists
2022-09-30 23:24:47 +01:00
James Smith
5b380b7947
Move scan button into navigation bar
2022-08-01 13:04:29 +01:00
James Smith
4dca56068c
hide tags that are only used once from the library list
2022-06-26 16:21:00 +01:00
James Smith
055bde6303
change to kaminari pagination to avoid conflicts with will_paginate
2022-06-24 13:55:02 +01:00
James Smith
16d62253d0
fix up model pagination
2022-06-17 17:07:14 +01:00
James Smith
347834d8d7
user user pagination settings instead of config file
2022-06-17 14:39:13 +01:00
Matthew Page
5efcbf3297
show all tags in library taglist
2022-05-11 08:32:21 -07:00
Matthew Page
f4e5846953
Make pagination default, add missing tests, and move all config into config files
2022-04-17 17:54:27 -07:00
Matthew Page
848889a163
fix some lint issues
2022-04-06 17:32:56 -07:00
Matthew Page
2f4252039b
use default per_page
2022-04-06 16:36:46 -07:00
Matthew Page
653e4120d9
add optional pagination to models
2022-04-06 15:58:57 -07:00
James Smith
2b89f4a9cf
change Part to File, and combine with images
2022-01-06 17:14:30 +00:00
James Smith
60fc5d2366
Use delayed_job table to detect if a scan is in progress
...
resolves #31
2021-03-30 23:29:13 +01:00
James Smith
198e5abd2a
Big query speedups by including things and passing them into partials rather than loading from DB every time.
2021-03-30 21:36:26 +01:00
James Smith
e77e216ffd
render form errors for invalid libraries
2021-03-15 23:42:33 +00:00
James Smith
635db7eaaf
Add ability to delete a library
...
Resolves #78
2021-03-14 19:03:12 +00:00
James Smith
ad9a3336b3
fix typo
2021-03-06 00:18:23 +00:00
James Smith
0fdd154602
set title tag to something helpful
2021-03-03 00:29:26 +00:00
James Smith
e849dcf3c6
DRY library controller
2021-02-26 12:11:13 +00:00
James Smith
26e16f4bfb
sort tags by name
2021-02-13 11:37:13 +00:00