Commit graph

2493 commits

Author SHA1 Message Date
Lance Edgar 475cdf6450 Add unit cost diff, related status for vendor invoice batch rows
i.e. diff between invoice cost vs. whatever we currently have on file
2019-10-09 15:57:31 -05:00
Lance Edgar f0535b84c0 Efficiency tweaks for vendor catalog batch creation 2019-10-09 15:13:29 -05:00
Lance Edgar 24d4ca6144 Add "preferred vendor" flags for vendor catalog batch rows
we can set the `is_preferred_vendor` flag, but handler logic must be
responsible for `make_preferred_vendor`
2019-10-09 14:55:10 -05:00
Lance Edgar fe31e594d9 Add unit cost diff percentage for vendor catalog batch rows 2019-10-09 14:15:12 -05:00
Lance Edgar 3b895179b1 Make pricing batch population more robust for UPC/product 2019-10-08 21:58:55 -05:00
Lance Edgar d7f0b612c2 Add generic JSON params field to core batch schema
handlers can do with it what they will, but hopefully cuts down on need for
some other schema changes for custom batch types
2019-10-08 18:02:18 -05:00
Lance Edgar 874cf594c1 Improve importer logic for "Global" objects, for sake of datasync
specifically, we must (again) check the `local_only` flag when normalizing the
host object, since datasync will see "all" objects
2019-10-07 17:38:50 -05:00
Lance Edgar 1031d6b744 Update changelog 2019-10-07 11:55:54 -05:00
Lance Edgar 1eb412e443 Add local_only flag for Person, User, plus "Global" importers 2019-10-04 22:30:43 -05:00
Lance Edgar 6a2884864d Tweak Luigi summary filter logic for detecting "all good" message 2019-10-04 14:59:00 -05:00
Lance Edgar fe6abdc452 Update changelog 2019-10-04 14:31:15 -05:00
Lance Edgar 32f95a78e4 Provide default/fallback node title for importers' sake 2019-10-04 14:11:59 -05:00
Lance Edgar 3ae42262f0 Add remove_email() etc. for ContactMixin 2019-10-02 18:10:43 -05:00
Lance Edgar 6555d97183 Update changelog 2019-10-02 11:07:59 -05:00
Lance Edgar 90fa901624 Convert command output to unicode...for real
hm, i didn't realize `str()` no longer decoded?
2019-09-30 14:34:32 -05:00
Lance Edgar 03a5f49b9c Convert command output to Unicode, for run-n-mail
but only for python3 i guess, since wasn't necessary until now...
2019-09-30 14:29:08 -05:00
Lance Edgar e098c6a76e Provide default app title when generating mail
when mail is being sent, is no time to throw an error just b/c config is
missing the app title...
2019-09-30 13:56:14 -05:00
Lance Edgar ec470cc769 Add WarnSummaryIfProblems logging filter for Luigi 2019-09-30 13:27:35 -05:00
Lance Edgar 076a9d996b Add --groups arg to rattail make-user command
for auto-assigning user to arbitrary roles
2019-09-30 12:48:03 -05:00
Lance Edgar bff20842b5 Declare 'sys' to be a built-in mysql db name, for rattail backup 2019-09-25 19:25:47 -05:00
Lance Edgar 8febb25537 Update changelog 2019-09-24 14:25:16 -05:00
Lance Edgar fa5a15b70e Add progress support for some Excel writer methods 2019-09-20 17:24:51 -05:00
Lance Edgar 602ebd8fcc Add default_importers_only flag for datasync consumers 2019-09-20 15:08:59 -05:00
Lance Edgar c7b58c5fd3 Add util.simple_error() for basic rendering of error message
just a bit of convenience for myself
2019-09-19 20:18:14 -05:00
Lance Edgar 28582c5b68 Update changelog 2019-09-18 11:10:19 -05:00
Lance Edgar 1385536a01 Add get_product_by_scancode() API function; leverage in batch handler 2019-09-18 11:09:08 -05:00
Lance Edgar 8d0884523c Fix code typo for "new batch" templates 2019-09-17 17:34:46 -05:00
Lance Edgar 5c6a0c15f5 Don't try to locate product if empty "entry" provided, for batch handlers 2019-09-17 17:34:04 -05:00
Lance Edgar d4bb4397dd Strip whitespace from fieldnames by default, for ExcelReader
caller can always disable that, but seems like more of a gotcha the other way
2019-09-17 17:33:20 -05:00
Lance Edgar e870845818 Update changelog 2019-09-17 15:18:44 -05:00
Lance Edgar 4d0e375af2 Add ImportHandler.extra_importer_kwargs and associated logic
sometimes you just need a way to do that kind of thing...
2019-09-17 14:11:27 -05:00
Lance Edgar d79ee28c54 Retain reference to "used" importer instances, when running via handler
sometimes a caller would like to take advantage of the "full" handler logic,
but then subsequently needs to access certain state data from the importer
instance.  this lets them do that, although perhaps it's an anti-pattern?
2019-09-17 13:46:51 -05:00
Lance Edgar e30e0c295c Allow config to define where db dumps go for backup 2019-09-16 13:32:41 -05:00
Lance Edgar 1b5e11d65a Add 'backup' requirements extra
mainly just for borg of course
2019-09-12 21:04:40 -05:00
Lance Edgar 83f7376c8b Provide a basic set of default "excludes" if none configured, for backup
this idea needs expanding upon but a starting point only for now
2019-09-12 14:52:43 -05:00
Lance Edgar 3180e817d2 Return empty list by default, for file backup "excludes" 2019-09-12 14:48:58 -05:00
Lance Edgar 5e90a6f355 Add --no-dump-tables arg, plus config option for rattail backup 2019-09-11 20:55:08 -05:00
Lance Edgar a12a8e352d Let config define "hostname" for use with naming Borg archives 2019-09-11 19:41:05 -05:00
Lance Edgar dae2a3fb51 Fix borg archive name prefix (syntax bugs) 2019-09-11 18:04:42 -05:00
Lance Edgar 423ac4a76f Fix syntax bugs 2019-09-11 18:00:07 -05:00
Lance Edgar c605909159 Use proper hostname for borg prune command 2019-09-11 17:59:08 -05:00
Lance Edgar 573bccf981 Add borg prune command to rattail backup --borg logic 2019-09-11 17:54:01 -05:00
Lance Edgar e9bf8c31c6 Fall back to empty string for remote borg path
since can't pass None for environment variable
2019-09-11 17:28:12 -05:00
Lance Edgar 639a4c502b Add support for Borg backups, in rattail backup
can now create Borg archives on multiple "remotes" per config.  obviously
assumes presence of Borg...
2019-09-11 16:21:20 -05:00
Lance Edgar 79cf304917 Add --dump-tables arg for rattail backup command 2019-09-11 13:44:21 -05:00
Lance Edgar 2c551f0653 Update changelog 2019-09-10 17:59:24 -05:00
Lance Edgar c0b59ec476 Add basis for a trainwreck prune command, to prune old data
i.e. from the 'default' database typically, after it's been exported to the
appropriate 'year' database
2019-09-10 17:56:42 -05:00
Lance Edgar 3098cf9b98 Update changelog 2019-09-09 18:28:08 -05:00
Lance Edgar cb69857135 Suppress output when checking for existence of psql
for `rattail backup` command
2019-09-07 18:41:37 -05:00
Lance Edgar df339e651c Tweak command help for rattail backup
to clarify that you can still "exclude" things from rsync, even if you also
specify what to "include"
2019-09-05 20:08:18 -05:00