3f39a5d8c6
new BUG for clearing out pa_user_state in DEV rebuild data
Damien De Paoli2022-02-27 00:39:39 +11:00
e9ab49c60a
with viewer, unmatched face now has img data / thumbnail, so we know what it really looks like when we choose to override - still major WIP, tables.sql also has some override types, but not convinced I have design yet
Damien De Paoli2022-02-06 23:21:23 +11:00
645d419748
moved JoblogSearch to internal/js/ as it does not need any jinja processing, added button and hotkey to show logs, and brief logs into dbox - it works, but needs prettying up
Damien De Paoli2022-02-06 11:36:25 +11:00
83eff02910
added plumbing for viewer to have a joblog search for the current file
Damien De Paoli2022-02-05 23:23:10 +11:00
10cbee450f
framework for a left-click menu per face that calls up a DBox with basics -- needs much more love
Damien De Paoli2022-02-04 22:33:11 +11:00
694aef038b
if we use run_ai_on_path, then we remove all existing matches on the path, then go again -- allows us to change threshold and reset
Damien De Paoli2022-02-04 22:03:04 +11:00
8ef3a97eb7
use run_ai_on_path as job type, rather than find ent and pass it to run_ai_on
Damien De Paoli2022-02-04 21:57:13 +11:00
e16f7dbc30
fixed bug when get of a view is for a non-search, now that I have added search to pa_user_state ORM query
Damien De Paoli2022-02-03 21:16:51 +11:00
e1a6348967
face_size_limit added so we ignore faces that are too small
Damien De Paoli2022-02-02 21:12:14 +11:00
a830e8dc92
viewing same eid but different search, etc. caused BUG-84 -- Fixed now as we look for a pa_user_state of View, eid=<eid>, orig_search_term=<...>
Damien De Paoli2022-02-02 18:51:02 +11:00
3d829a6118
viewing same eid but different search, etc. caused BUG-84 -- Fixed now as we look for a pa_user_state of View, eid=<eid>, orig_search_term=<...>
Damien De Paoli2022-02-02 18:50:48 +11:00
b38e4fa0bb
if we do confuse the viewing / states AND we are in prod, then delete states and tell user to get a new tab / try again -- lame but it will work as a catch all
Damien De Paoli2022-02-02 18:49:55 +11:00
a09188d811
fixed BUG-84, only exit fullscreen if we are in fullscreen and we set fullscreen var to False, pretty much only when in FS and we hit the "F" key
Damien De Paoli2022-02-02 18:48:06 +11:00
79a817fa90
removed useless [0] for face_locn in refimg code
Damien De Paoli2022-01-31 21:08:33 +11:00
47b9e13a53
use tmp_locn, to remove any chance of accidentally overwriting face.locn - see /viewlist issues earlier
Damien De Paoli2022-01-31 21:08:19 +11:00
c6efd29a48
removed fullscreen and added default_search_noo
Damien De Paoli2022-01-30 23:02:42 +11:00
075fa2b6f4
remove fullscreen settings from DB, we cant use it anyway - browsers cannot load a page in fs mode
Damien De Paoli2022-01-30 23:01:59 +11:00
272ce5e010
remove SetViewingOptions, as its not needed any more, search gets values from pa_user table
Damien De Paoli2022-01-30 23:01:02 +11:00
b4c0a25760
allow F in viewer to toggle fullscreen, rather than have to use Esc to exit fullscreen
Damien De Paoli2022-01-30 22:55:40 +11:00
776f429ce4
most noo/search issues and next/prev bugs fixed
Damien De Paoli2022-01-29 18:55:20 +11:00
24e49a613c
now use eval() for GetEntries*Fold*, and much better fix for bug where next/prev was breaking with inputs with spaces in names -- dont need those inputs anyway, JUST pass next or prev and the rest comes from pa_user_state now
Damien De Paoli2022-01-29 18:54:48 +11:00
cce78b019c
fix up issue with various fields for a View using last View values, rather than orig_ptype values -- which can now change as we change noo/folders
Damien De Paoli2022-01-29 18:54:31 +11:00
7a17d91779
now use eval() for GetEntries*Fold*, and much better fix for bug where next/prev was breaking with inputs with spaces in names -- dont need those inputs anyway, JUST pass next or prev and the rest comes from pa_user_state now
Damien De Paoli2022-01-29 18:53:30 +11:00
8e82271e2a
start of noo for Search, and rewrite of GetEnt* to use eval(), search and flat done, but also fixed OLD bug I just noticed where prev/next buttons would not work when sorting by "A to Z", etc. as the value of the form.input has a space in it and serializeArray() was not dealing with it properly
Damien De Paoli2022-01-29 18:06:21 +11:00
fee993711f
hacked /files_ip for now, this whole page is a bit of a mess, not sure we keep it - and its a kludge to assume its in the file_ip path -- only will work if img is in import path and we are viewing in flat mode, but at least this means we dont break the app, just get a confused viewer message. Also use tmp_locn rather than face.locn for viewlist to fix BUG-82
Damien De Paoli2022-01-28 20:48:56 +11:00
3903f7704c
remove debugs, and added last_used to pa_user_state
Damien De Paoli2022-01-28 19:58:40 +11:00
f509786977
remove debugs, only calc num_entries in Flat view once
Damien De Paoli2022-01-28 19:57:48 +11:00
47039ec35c
partial fix for various BUGs with going past the end of a viewing list... we now keep num_entries (of files) in pa_user_state, and use it to stop going before first or past last entry, even from viewlist, so this fixes many isseus... Final bug(s) are relating to multiple Dirs in a Path and its feeling too complex for no real gain, going to remove the feature, but for now, this version works / can be made to PROD
Damien De Paoli2022-01-28 15:52:35 +11:00
297b12b2b1
fix bug where viewer does not disable ra / la if viewlist causes us to land on first/last image
Damien De Paoli2022-01-28 14:45:07 +11:00
3acc967101
fix up not sending import/storage versions of noo/folders
Damien De Paoli2022-01-28 13:25:55 +11:00
0751cc6010
clarified bug-82, fixed issue with AI scan optimising still scanning when it should not, finalised back button work for view/viewlist
Damien De Paoli2022-01-27 21:44:29 +11:00
07b339f5ab
current, first_eid, last_eid now work for Flat view of Paths, folder view next
Damien De Paoli2022-01-27 17:06:31 +11:00
55724ccd59
removed use of last_entry_in_db (boolean) and replaced with use of current/first_eid/last_eid in PA_USER_STATE so it persists across reloads/back buttons, and allows full use of ajax data retrieval in the background for the viewer (so fullscreen stays across page loads), and the next/prev buttons are set on the image load, not after they have been pressed "one too many times"
Damien De Paoli2022-01-27 14:27:52 +11:00
08ca9b4e74
partial implementation of first_eid, last_eid -- I think the vals work -- they do for searches anyway, but not stored in pa_user_state yet
Damien De Paoli2022-01-25 00:48:14 +11:00
65ebfe2d31
DONE - todo to have force rescan delete face from DB
Damien De Paoli2022-01-23 14:54:49 +11:00
8ac9af7067
fixes for pa_user_state and distinct files fix bug-81 and old BUG-56
Damien De Paoli2022-01-23 14:44:57 +11:00
0f44af4ec3
clean up of unneeded viewing hidden vars, now we retrieve data from pa_user_state
Damien De Paoli2022-01-23 14:41:54 +11:00
868ae25e6d
quick fix for BUG-81 / need to test with PROD dataset
Damien De Paoli2022-01-23 14:41:32 +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
Damien De Paoli2022-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
Damien De Paoli2022-01-22 21:36:58 +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
Damien De Paoli2022-01-21 16:48:05 +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 :)
Damien De Paoli2022-01-20 17:47:46 +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 :)
Damien De Paoli2022-01-20 17:25:01 +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
Damien De Paoli2022-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
Damien De Paoli2022-01-20 14:13:50 +11:00
94780119c4
back out new viewer, it does not work in PROD for storage at all
Damien De Paoli2022-01-20 11:37:55 +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
Damien De Paoli2022-01-20 11:26:09 +11:00
b5f6a33518
made stale jobs POST redirect to /jobs, more back-forward button cleanups and honestly a better Ux anyway
Damien De Paoli2022-01-20 10:10:32 +11:00
04726ed386
redirecting jobs to /jobs after they run, more work with back/forward
Damien De Paoli2022-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
Damien De Paoli2022-01-19 22:40:47 +11:00
a2091f0194
remove onpopstate stuff, and updated TODO with better way to deal with this
Damien De Paoli2022-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
Damien De Paoli2022-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)
Damien De Paoli2022-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
Damien De Paoli2022-01-18 22:11:39 +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
Damien De Paoli2022-01-18 22:01:39 +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.
Damien De Paoli2022-01-18 20:59:39 +11:00
28f15ee4e6
fixed sort order to work with datatables sorting
Damien De Paoli2022-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
Damien De Paoli2022-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
Damien De Paoli2022-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
Damien De Paoli2022-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
Damien De Paoli2022-01-16 01:26:04 +11:00