Commit Graph

956 Commits

Author SHA1 Message Date
0f44af4ec3 clean up of unneeded viewing hidden vars, now we retrieve data from pa_user_state 2022-01-23 14:41:54 +11:00
868ae25e6d quick fix for BUG-81 / need to test with PROD dataset 2022-01-23 14:41:32 +11:00
fe35ed0d02 final todo for today 2022-01-23 01:08:17 +11:00
4b89831e0f remove debug 2022-01-23 01:08:00 +11:00
2e4b1ed9d2 defaults in PAuser include noo/folders for import/storage separated, defaults are stored into PAUser in DB, changable in GUI, used as the defaults for new PA_User_States. Also disabled search noo, search folders as they are hard-coded in the ORM retreive anyway 2022-01-22 23:26:14 +11:00
0f4632e240 changing options on files_*, search, also next/prev all now use POST->redirect model, so should allow back/forward browser buttons to work - commit so we can test in PROD 2022-01-22 21:36:58 +11:00
491663f1c9 update comment 2022-01-21 18:21:21 +11:00
b58afa3a5c clean up of states, to support multiple searches/views, and this will at least work for back/forward in prod - I believe. Still needs defaults from prefs, AND, remove unneeded variables from template/* and set those default values based on prefs 2022-01-21 16:48:05 +11:00
a856bcd6b2 clean up of notes, comments, BUGs, etc. 2022-01-20 17:49:58 +11:00
3010f8b6f4 BUG-77 removed, if it happens again will look at it - I think it was a one-off DB artefact of moving versions. BUG-60 tightened up description, BUG-80 removed as a duplicate of BUG-56 -- just the newer form, and since States move its different again, just fix BUG-56 :) 2022-01-20 17:47:46 +11:00
9ca24358d0 fixed BUG-74 and 79 with new States model 2022-01-20 17:37:37 +11:00
78acb9bd66 big clean up of Options -> States, total rework, now actually handles pa_user_state -> States as Import/Storage/Bin/Search or View. If Search has orig_search_term saved. If view, has orig_ptype (and orig_search_term if orig_ptype is Search) -- removed OPT.paths -> these are now worked out when we GetEntries based on pa_user_state. This now allows us to GET all URLs for image viewing allowing me to use the back-button without issues in PROD - well we will see once I commit :) 2022-01-20 17:25:01 +11:00
5461cb4036 improve /view naming 2022-01-20 14:18:27 +11:00
2dab42d712 renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again 2022-01-20 14:14:14 +11:00
4fa7b4b2d3 renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again 2022-01-20 14:13:50 +11:00
94780119c4 back out new viewer, it does not work in PROD for storage at all 2022-01-20 11:37:55 +11:00
10e2c26159 add view_eids in pa_prefs for new GET viewer 2022-01-20 11:37:15 +11:00
30a2fa6d99 quick fix for view being a POST, its now redirected to a GET, but I want to fix up the viewlist properly as well, should work for now though 2022-01-20 11:26:09 +11:00
c800bebaab fix syntax 2022-01-20 10:20:33 +11:00
758be89883 one more optim issue 2022-01-20 10:17:22 +11:00
4b8beb766e I think this was my first sql alchemy :), using much better DB .one() method 2022-01-20 10:17:10 +11:00
fae1c0666d more back-forward button cleanups 2022-01-20 10:16:38 +11:00
b5f6a33518 made stale jobs POST redirect to /jobs, more back-forward button cleanups and honestly a better Ux anyway 2022-01-20 10:10:32 +11:00
04726ed386 redirecting jobs to /jobs after they run, more work with back/forward 2022-01-19 23:16:54 +11:00
505a5fa813 made search a POST to /search be a redirect to a GET /search/<search_term> so that it works with back/forward buttons in the browser 2022-01-19 22:40:47 +11:00
a2091f0194 remove onpopstate stuff, and updated TODO with better way to deal with this 2022-01-19 21:18:50 +11:00
f8cff5f73e make optimisation from scan do run_ai_on_path IF there are newer reference images than the last scan even if we dont find new files in the scan itself 2022-01-19 15:37:27 +11:00
2b923f0b60 fix BUG that made job mgr break in prod (with DEBUG not even defined, its now False in Prod) 2022-01-19 01:20:40 +11:00
2af93312e1 fix minor syntax, and make sure checkdups waits for getfiledetails not run_ai_on, to avoid the ai job failing due to no ref images, and then withdrawing the checkdups and the ai job cannot create a duplicate 2022-01-18 22:11:39 +11:00
5fee1b8e30 remove debugs 2022-01-18 22:02:47 +11:00
b327ddff7b optimise to not go past scan job if it does not find any new files, also now print out if we find new files into scan log, fix up first attempt at debug being off/on with "production" or not 2022-01-18 22:01:39 +11:00
4a1fbf3f44 debug off for prod, on for rest by default 2022-01-18 21:01:47 +11:00
de81db9412 unmatched faces now sorts size of face desc, and is slightly prettier -- still slow and only takes you to the file anyway, might optimise that later. still no code to auto deal with unmatched face, but will add some capabilities next. Also, remembered last dir when file_ip/sp/bin. Also throw error if try to find unknown person - happened since I allowed the back/forward. 2022-01-18 20:59:39 +11:00
4c3aae770d reorder 2022-01-16 14:51:54 +11:00
d65c310f6e remove debug 2022-01-16 14:49:56 +11:00
28f15ee4e6 fixed sort order to work with datatables sorting 2022-01-16 14:49:38 +11:00
d8db522d00 first quick pass of user menu in navbar which shows simple read only prefs content, and a logout option that works 2022-01-16 12:51:42 +11:00
096d4f79cf scans now put AI back on by default, and optimise to only call path-level scans once per path, rather than once per dir in path 2022-01-16 12:51:25 +11:00
684cc27df9 first quick pass of user menu in navbar which shows simple read only prefs content, and a logout option that works 2022-01-16 11:37:49 +11:00
136525a73c put default ref img model back to hog, cnn is dangerous and can still wipe pa_job_mgr on mara with 32G of mem, so just leave it 2022-01-16 01:26:04 +11:00
e03d11b9e1 fixed job refresh issues 2022-01-16 01:17:54 +11:00
fdbef5197d added # matches on show persons page, and fixed issue with search OPT being hardcoded 2022-01-16 01:04:44 +11:00
526c9d50e3 added # matches on show persons page, and fixed issue with search OPT being hardcoded 2022-01-16 00:55:52 +11:00
12726ed186 added # matches on show persons page, and fixed issue with search OPT being hardcoded and not using those in the DB 2022-01-16 00:55:23 +11:00
05f12e78ea extra note on BUG-77 2022-01-16 00:53:28 +11:00
24730901bf M requests added 2022-01-16 00:52:35 +11:00
a3c75c699d fixed BUGs with deleting old files out of the recyle bin, when they were already deleted from the FS and added timeout debugs, still not 100% the scheduled jobs are working 2022-01-15 16:37:40 +11:00
efde03a9c6 minor additions 2022-01-15 16:36:46 +11:00
5a0f4221ab handle deleting properly - e.g. if had a refimg that was used for a match earlier then deal with it, and when deleting a person, dont leave behind orphaned refimgs 2022-01-15 16:36:11 +11:00
081b90e008 remove debugs 2022-01-15 16:35:28 +11:00