Commit graph

3270 commits

Author SHA1 Message Date
Lance Edgar d04c2958c0 Make app.get_all_import_handlers() a bit smarter
should fetch all "designated" handlers in addition to those which are
officially registered
2021-12-17 20:26:41 -06:00
Lance Edgar 768cccd9ab Update changelog 2021-12-17 09:16:21 -06:00
Lance Edgar f6a491e47f Add basic time-related methods to AppHandler 2021-12-16 21:35:27 -06:00
Lance Edgar 2cb0363ea6 Expose settings for tailbone vue.js and buefy versions 2021-12-16 14:53:48 -06:00
Lance Edgar 5aeec98875 Add setting for tailbone grid "sticky headers" 2021-12-16 14:15:52 -06:00
Lance Edgar 6fc7c51da4 Assign enum and app attrs in datasync consumer constructor 2021-12-16 13:27:40 -06:00
Lance Edgar d6747b34ca Update changelog 2021-12-14 20:04:32 -06:00
Lance Edgar 1ef1a1360b Revert "Always "require" config files when making config object"
This reverts commit fef2d29a0c.

that was nothing but trouble at this point, maybe can lock it down a
bit more again in the future
2021-12-14 20:03:08 -06:00
Lance Edgar acdd8228a3 Default to false for all config flags in purchase batch handler
b/c a flag setting should never default to true, b/c lack of config
should imply false
2021-12-13 20:08:23 -06:00
Lance Edgar 213df9e651 Add "missing" tallies for receiving, plus allow un-declare credit
this adds various other things meant to improve the desktop receiving
workflow a bit
2021-12-13 17:51:41 -06:00
Lance Edgar c0ea6f304a Let config know if/when versioning has been enabled
and check that when running `rattail import-versions` command
2021-12-11 15:40:17 -06:00
Lance Edgar 051e79318f Update changelog 2021-12-11 15:00:31 -06:00
Lance Edgar 931a3fda45 Let progress be passed in late, when running problem report 2021-12-11 13:59:27 -06:00
Lance Edgar 85aa75644f Allow running a problem report just to get results, but avoid email 2021-12-11 13:54:57 -06:00
Lance Edgar c1ad5d4bca Fix calculation of seconds since last run for datasync watcher
in my dev setup i was getting "OK" status for watchers dead for
days..turns out `timedelta.seconds` was not enough to check for, on
account of there also being `timedelta.days`
2021-12-11 11:41:07 -06:00
Lance Edgar 1a1086b68d Update changelog 2021-12-09 12:13:06 -06:00
Lance Edgar f6c4859c48 Add default logic for purchase batch make_row_from_po_item() 2021-12-08 21:57:46 -06:00
Lance Edgar 8f4ecdd362 Add some purchase order abstractions to purchase batch handler 2021-12-08 20:25:33 -06:00
Lance Edgar a2ef81f5a1 Update changelog 2021-12-08 15:53:02 -06:00
Lance Edgar 96b0841536 Add pre_process_changes() and post_process_changes() for datasync 2021-12-08 15:44:40 -06:00
Lance Edgar d1aebbf76a Use python's importlib instead of doing our own thing
at least, where possible.  hoping this fixes some recently-noticed
"quirks" where the module doesn't appear fully loaded
2021-12-07 19:56:03 -06:00
Lance Edgar dd9708c79a Add get_problem_report_handler() method to AppHandler
and other related tweaks for sake of exposing these in web app
2021-12-07 17:44:52 -06:00
Lance Edgar f59611a2fc Update changelog 2021-12-07 13:18:20 -06:00
Lance Edgar 611489fe59 Set the model attr when making new AppHandler object
or at least try, and ignore errors, which will likely happen if
e.g. the DB layer is not installed
2021-12-07 13:11:52 -06:00
Lance Edgar bc3b9ea2f8 Bugfix 2021-12-07 12:09:13 -06:00
Lance Edgar 54d96fb3dc Update changelog 2021-12-07 11:34:47 -06:00
Lance Edgar ebba1c0c29 Make config object required, for Report constructor 2021-12-07 11:25:21 -06:00
Lance Edgar 570743f072 Add get_active_stores() method for app handler 2021-12-07 11:24:57 -06:00
Lance Edgar 3d4bd0c5c0 Mark only certain handlers as being safe for web app
until the web tool is more robust, then can mark more as it improves
2021-12-06 21:25:48 -06:00
Lance Edgar b639ce7e43 Fix some tests 2021-12-06 21:15:45 -06:00
Lance Edgar 369451c7c4 OMG a ridiculous commit to overhaul import handler config etc.
- add `AppHandler.get_designated_import_handlers()` and friends
- exit w/ code 1 when command line makes no sense and must print help
- register all core import/export handlers via setup.py and config
- use "handler key" lookup for all core import/export commands
- stop displaying model list in help for import/export command
- migrate datasync "change" permissions, per tailbone changes
- log warning w/ traceback if loading entry point fails
2021-12-06 19:59:31 -06:00
Lance Edgar 2648f25c14 Add some methods/attrs to import handlers, for exposing in web app
not complete but a good start
2021-12-05 17:15:34 -06:00
Lance Edgar fb75927662 Update changelog 2021-12-03 09:43:38 -06:00
Lance Edgar 113378dea2 Use common logic for basic product refresh in label batch 2021-12-02 14:40:01 -06:00
Lance Edgar 0bb3b4bd05 Make stale timeout configurable, change default for datasync/collectd 2021-11-30 16:33:27 -06:00
Lance Edgar b427eaeb3e Update changelog 2021-11-29 21:02:24 -06:00
Lance Edgar fef2d29a0c Always "require" config files when making config object
from there, those files may just "include" or may also "require" other
files.  but the initial ones seem to important not to require
2021-11-29 19:26:21 -06:00
Lance Edgar 46855c6c2a Add rattail datasync remove-settings command
mostly for use when cloning production database to stage/testing, so
you'd want to configure datasync via files only in those environments
2021-11-29 19:25:25 -06:00
Lance Edgar e6638df132 Allow loading "disabled" datasync profiles, if caller specifies
this is for sake of web app configuration tool, so it can show all
profiles enabled or not
2021-11-29 17:13:39 -06:00
Lance Edgar 6385cc948c Update changelog 2021-11-28 10:58:50 -06:00
Lance Edgar 3d8590230e Include current time in datasync/collectd output 2021-11-28 10:57:32 -06:00
Lance Edgar 66d7910770 Add some sale pricing logic for custorder batch 2021-11-27 19:07:33 -06:00
Lance Edgar e6356d9360 Add setting for receiving from PO w/ invoice 2021-11-27 17:42:24 -06:00
Lance Edgar fdaacdc4ac Update changelog 2021-11-27 15:16:39 -06:00
Lance Edgar 89783e0a0d Add basic stale queue detection for datasync/collectd 2021-11-27 15:15:29 -06:00
Lance Edgar 6a2454c212 Only specify interval if we receive one from collectd 2021-11-27 15:15:17 -06:00
Lance Edgar 6b35ca5ada Update changelog 2021-11-27 14:39:15 -06:00
Lance Edgar be24d23682 Add workarounds if collectd does not pass env variables (?)
not clear why it wouldn't do that, but was getting key errors when i
assumed the values were there...
2021-11-27 14:38:11 -06:00
Lance Edgar 958731e13c Update changelog 2021-11-27 14:01:32 -06:00
Lance Edgar 37a23bf35e Add rattail datasync collectd sub-sub-command
still just proving concepts, but this seems like the right direction..
2021-11-27 14:00:07 -06:00