Commit graph

3270 commits

Author SHA1 Message Date
Lance Edgar 9c3f99e8e5 Allow config to force hostname for use with collectd output 2022-08-21 11:40:55 -05:00
Lance Edgar 3ef03a48b5 Couple of datasync tweaks 2022-08-21 11:31:56 -05:00
Lance Edgar 07706cb273 Add --system arg for rattail upgrade command 2022-08-21 10:07:51 -05:00
Lance Edgar c4bdc36a43 Avoid deprecated calls when running datasync checks 2022-08-21 09:46:56 -05:00
Lance Edgar 740a6704f0 Use custom "system title" for upgrade success/failure emails 2022-08-20 23:06:30 -05:00
Lance Edgar aca523697c Allow an "upgrade" to target "any" system
some more polish needed yet i'm sure, but this is the gist

also added `AppHandler.get_upgrade_handler()`

also added `AppHandler.short_session()`
2022-08-20 17:35:00 -05:00
Lance Edgar 75ea593d06 Update changelog 2022-08-18 17:28:15 -05:00
Lance Edgar 17b86cbfec Add logic to auto-correct unit vs. case when receiving from invoice 2022-08-18 17:27:02 -05:00
Lance Edgar f7718fe59f Add basic Luigi handler logic 2022-08-18 15:11:01 -05:00
Lance Edgar b42b139e3f Update changelog 2022-08-17 21:28:26 -05:00
Lance Edgar 3e03dfcee7 Require supervisor process name, if fetching info 2022-08-17 21:27:22 -05:00
Lance Edgar f0ce975bc2 Add setting etc. for user feedback to request reply email 2022-08-17 21:07:28 -05:00
Lance Edgar 7fc606903f Add datasync handler class; let it talk to supervisor
seems like we maybe shouldn't assume presence of (or access to)
supervisor, but in practice so far it's a safe bet...
2022-08-15 21:01:57 -05:00
Lance Edgar b28d21ef05 Detect when output path is a folder, for rattail make-config 2022-08-14 13:55:09 -05:00
Lance Edgar 90d1a7f086 Update changelog 2022-08-14 13:29:49 -05:00
Lance Edgar 936675fa95 Fix regression bug 2022-08-14 13:29:10 -05:00
Lance Edgar b1b058a5b3 Update changelog 2022-08-14 10:16:44 -05:00
Lance Edgar 7c76a7839e Refactor usage of get_vendor() lookup 2022-08-13 23:55:30 -05:00
Lance Edgar 4607425f40 Remove unique constraint for Brand.name
i believe i only ever added that b/c of the simple assumption that it
would hold true.  but it can cause problems with some types of
datasync / import operations, e.g. when a brand is renamed in another
system etc.

i could not think of any practical *benefit* of the unique constraint
and so it now goes away.  in practice then some brand records may have
"duplicate" names for brief periods of time, while datasync is
catching up some types of changes.
2022-08-12 19:47:58 -05:00
Lance Edgar 79a21ddabc Add process_changes_proper() method for datasync consumers
to allow for better inheritance / overriding as needed
2022-08-12 19:06:27 -05:00
Lance Edgar 2488c84bd8 Update changelog 2022-08-12 18:28:59 -05:00
Lance Edgar cc936c845b Allow for case where none of importer's fields are "simple" 2022-08-12 16:19:21 -05:00
Lance Edgar a8729a5bf9 Add the MergeMixin class, for common logic among feature handlers
also add basic merge support for product handler
2022-08-12 14:19:41 -05:00
Lance Edgar d7502cf7db Update changelog 2022-08-10 18:56:52 -05:00
Lance Edgar d436dd22a2 Add basic model, handler for work orders
much more to come later i'm sure
2022-08-09 22:55:59 -05:00
Lance Edgar 726e16ea1e Add TODO comment
refs #10
2022-08-09 17:14:47 -05:00
Lance Edgar 2603839930 Try to detect tab- vs. comma-delimited CSV for handheld batch 2022-08-09 16:33:13 -05:00
Lance Edgar 78b401779b Raise error if invoice2data is not able to find matching template 2022-08-09 15:04:34 -05:00
Lance Edgar a283988896 Add choice_uses_dropdown() method for customer handler 2022-08-09 14:35:57 -05:00
Lance Edgar 1ab42e5245 Update changelog 2022-08-08 18:12:51 -05:00
Lance Edgar b663d44e52 Fix how "available" email profiles are got
must first get "all" and then filter out, even if not using entry points
2022-08-08 15:49:38 -05:00
Lance Edgar a42594baca Update changelog 2022-08-08 09:41:50 -05:00
Lance Edgar 133fb5d265 Add support for alerting when sending an email fails
granted, if the first email failed for certain reasons (e.g. network
down) then the subsequent alert would also fail...  so this may not be
very useful but we'll see
2022-08-07 18:55:12 -05:00
Lance Edgar 805ef57215 Invalidate beaker config cache when setting is deleted 2022-08-07 18:26:18 -05:00
Lance Edgar 934b19e9fe Make sure cache is invalidated when purging datasync settings 2022-08-07 18:18:55 -05:00
Lance Edgar db3e54897c Add force_create param for AppHandler.save_setting()
for those times you know you're adding a new setting
2022-08-07 18:18:16 -05:00
Lance Edgar d3061e7db5 Add config snippet for preventing duplicate error emails from web apps 2022-08-07 16:12:10 -05:00
Lance Edgar b2897a1c65 Add get_single_host_object() to importer base class
not all importers will need to implement this; though some may for
sake of datasync and similar
2022-08-07 16:11:26 -05:00
Lance Edgar 52c0fc4931 Update changelog 2022-08-07 11:55:30 -05:00
Lance Edgar 2a1fdf905a Tweak deprecation warnings 2022-08-07 11:54:25 -05:00
Lance Edgar 029db19184 Lower log level when mailmon fails to check for / process messages
pretty much all of the emails received so far are inconsequential and
have to do with gmail auto-expiring sessions etc.
2022-08-07 10:36:14 -05:00
Lance Edgar e6366248da Replace deprecated method call 2022-08-07 10:28:38 -05:00
Lance Edgar a09ea35738 Update changelog 2022-08-07 10:09:28 -05:00
Lance Edgar 54c3d0eae3 Honor the configured email collection module(s), even w/ entry points
entry points make for an obvious default collection, but if config
declares a particular list of modules, that should win
2022-08-06 22:50:37 -05:00
Lance Edgar 890ec80b73 Try to use app-specific namespace for beaker config caching
otherwise some backends (memcached) may confuse settings across
multiple apps, e.g. for me in dev
2022-08-06 21:39:25 -05:00
Lance Edgar 3719c6cee6 Update changelog 2022-08-06 20:47:35 -05:00
Lance Edgar 2bf25d54ba Add support for memcached as beaker config cache backend
technically this is for other backends too, i just tried memcached
2022-08-06 20:20:57 -05:00
Lance Edgar 4f67020ec3 Add entry points support for locating email profiles
this simplifies adding support for new email profiles in custom apps,
when they're added to underlying packages
2022-08-06 18:26:41 -05:00
Lance Edgar 09a93f57b9 Update changelog 2022-08-05 20:10:15 -05:00
Lance Edgar d8a102cb73 Add basic rattail postfix-summary command
hopefully will help track down mail problems when they occur.  note
that this may require configuring `sudoers` to work correctly
2022-08-05 20:05:19 -05:00