Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar
3b00bd5b28 Move tests out of the installed package set
this seems to be better practice.  from what i can tell this is a
clean move with no breakage..  and built package files no longer seem
to include test modules
2021-12-30 21:03:23 -06:00
Lance Edgar
9c782efa06 Remove some config for nosetests
buildbot is using only pytest now, but will leave nose in the test
dependencies until other packages are updated, e.g. tailbone
2021-12-30 20:11:17 -06:00
Lance Edgar
70309886a5 Run tests for py37 by default with tox 2021-12-30 17:58:17 -06:00
Lance Edgar
71e9aa401c Use pytest-cov with tox, for coverage 2021-12-30 17:31:52 -06:00
Lance Edgar
2a730e9e68 Use pytest instead of nosetests for all normal tox tests 2021-12-30 16:56:36 -06:00
Lance Edgar
aaaca04053 Use pytest instead of nosetests for tox python 2.7
if this works okay then will update others
2021-12-30 16:48:16 -06:00
Lance Edgar
ff46d4d1e7 Add pytest to the mix, tweak tests to work with it 2021-12-30 16:45:45 -06:00
Lance Edgar
3619e58c1e Deprecate the name NewDataSyncConsumer and update docs 2021-12-30 15:48:50 -06:00
Lance Edgar
eea7da3e2b Let datasync consumers declare handler key instead of spec
to leverage "designated import handler" config
2021-12-30 13:12:07 -06:00
Lance Edgar
4b6b978678 Fix a couple of dynamic class names, for python2 2021-12-30 13:11:23 -06:00
Lance Edgar
cb5712a899 Update changelog 2021-12-29 11:12:41 -06:00
Lance Edgar
3129942279 Add basic "resolve" support for person, product from new custorder 2021-12-23 20:24:25 -06:00
Lance Edgar
c330f7fbc2 Move main product lookup logic to products handler
instead of base class for batch handlers

this also adds optional "type 2 upc" lookup logic, which may or may
not be sufficient for all use cases...
2021-12-23 14:49:01 -06:00
Lance Edgar
116c756e7a Remove unused module rattail.db.diffs 2021-12-23 13:58:36 -06:00
Lance Edgar
90ef99accd Update changelog 2021-12-23 12:41:21 -06:00
Lance Edgar
46ed8c369e Remove deprecated "dbsync" logic
that has been superseded by "datasync" for years now...
2021-12-23 12:31:23 -06:00
Lance Edgar
e2dafac8b0 Remove support for "daemonize" option in filemon, datasync etc.
supervisor lets us behave like a daemon just fine
2021-12-23 12:26:48 -06:00
Lance Edgar
7524de61bf Add error delay for mailmon, continuum comment for bounce handling 2021-12-23 12:20:33 -06:00
Lance Edgar
ebea1f019d Refactor mailmon daemon structure to minimize IMAP connections
now just one thread per IMAP account, instead of one per monitored
folder.  still uses one thread per "action" for each monitored folder,
and lastrun settings should not need to change i think...
2021-12-22 20:07:50 -06:00
Lance Edgar
1910128473 Store copy of msg file just for bouncer, when using 2021-12-22 17:54:53 -06:00
Lance Edgar
4c19bc4118 Add basic "pending product" support for new custorder batch 2021-12-22 16:30:38 -06:00
Lance Edgar
c53541f3c8 Make config.getint() smarter about using default value
if setting is present in db, but empty, we should still return default
2021-12-22 11:15:09 -06:00
Lance Edgar
08887b7e09 Add load_object() convenience method for AppHandler 2021-12-20 19:22:39 -06:00
Lance Edgar
80219d2f46 Update changelog 2021-12-20 18:03:12 -06:00
Lance Edgar
1630665374 Add way to handle an email bounce via filemon 2021-12-20 18:02:15 -06:00
Lance Edgar
dfcfaaabc7 Update changelog 2021-12-20 16:47:48 -06:00
Lance Edgar
b02cb29ac3 Set app attribute for problem report handler, pass to email context 2021-12-20 16:03:40 -06:00
Lance Edgar
0f6c5a5400 Update changelog 2021-12-20 14:26:58 -06:00
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