Commit graph

2639 commits

Author SHA1 Message Date
Lance Edgar
13e2f0442b Rename app.get_mail_handler() => app.get_email_handler()
to be consistent with other naming
2021-08-23 10:41:42 -05:00
Lance Edgar
bf865e3e1a Add model for MergePeopleRequest to track people in need of merge
people handler auto-completes the merge request when marge happens
2021-08-19 18:10:47 -05:00
Lance Edgar
53e9692170 Add merge-related methods to PeopleHandler, plus some docs
also deprecate `get_people_handler()` function
2021-08-18 19:30:36 -05:00
Lance Edgar
0cdb664f77 Add auto-doc for rattail.app module 2021-08-18 19:30:32 -05:00
Lance Edgar
d21629f1ba Add more helpful error, if trainwreck import is missing transaction 2021-08-17 16:10:50 -05:00
Lance Edgar
701190e338 Add `app.get_mail_handler()` method 2021-08-16 19:27:53 -05:00
Lance Edgar
753247f759 Update changelog 2021-08-04 13:00:12 -05:00
Lance Edgar
73f72f6050 Fix datasync bug for Rattail -> Rattail "import"
was reading object from local session, which made it appear as though
"no change" needed to be synced
2021-08-04 12:57:19 -05:00
Lance Edgar
62ba7056bf Ignore ProductPriceAssociation changes for legacy Rattail datasync consumer 2021-08-03 10:30:51 -05:00
Lance Edgar
ca81ac39d4 Update changelog 2021-08-01 15:52:55 -05:00
Lance Edgar
afdcda273c Refactor how we handle product "price xref" fields via datasync
now instead of the consumer taking extra steps during processing, the
watcher adds special changes to the queue.  but the consumer still
needs to be configured to include the special importer for them, for now

this also combines shared import/export logic in a base class
2021-08-01 15:45:59 -05:00
Lance Edgar
0957bbe16d Update changelog 2021-07-27 20:11:23 -05:00
Lance Edgar
47672d708c Fix tests per 'dbkey' changes for Rattail -> Rattail importer 2021-07-27 15:49:18 -05:00
Lance Edgar
aab7ade6b2 Add email config for Rattail <-> Rattail data import/export 2021-07-27 11:48:37 -05:00
Lance Edgar
ef92bec06e Improve default subject logic for importer warning emails 2021-07-22 12:02:19 -05:00
Lance Edgar
e2b3e91ee5 Update changelog 2021-07-22 09:25:03 -05:00
Lance Edgar
fcffca72fc Fix super() parent bug 2021-07-22 09:20:38 -05:00
Lance Edgar
62a8f81b63 Update changelog 2021-07-21 20:17:00 -05:00
Lance Edgar
b76c6d4530 Add dict-specific logic for normalizing "local" object
this can be necessary if e.g. an importer always returns the host data
dict instead of a newly-created object, when in dry-run mode
2021-07-21 20:00:09 -05:00
Lance Edgar
bb2d1cca60 Replace "importing" docs overview w/ link to rattail-manual 2021-07-21 18:27:47 -05:00
Lance Edgar
193ec4b194 Update changelog 2021-07-21 14:51:27 -05:00
Lance Edgar
b105addc6d Add special datasync logic for product/price associations
i.e. for rattail -> rattail export, when a product *loses* its current
price, only the product changes, but we don't normally sync those
price uuid fields.  but now we can...though it remains to be seen if
this is sufficient or still can break somehow
2021-07-21 14:43:35 -05:00
Lance Edgar
c2a292c42b Raise error if unknown product scanned for inventory
unless of course the batch can contain unknown products
2021-07-21 10:45:41 -05:00
Lance Edgar
f7c3c8543d Update changelog 2021-07-15 14:14:27 -05:00
Lance Edgar
26b8718dc5 Auto-expand delproduct batch to include unit + all packs
also add `pack_size` for batch rows
2021-07-15 14:12:15 -05:00
Lance Edgar
aac6f08690 Update changelog 2021-06-18 17:52:04 -05:00
Lance Edgar
4ccdbcfbf5 Exclude suggested_price_uuid for rattail->rattail Product import
whoops, missed that one i guess
2021-06-18 17:38:24 -05:00
Lance Edgar
7639305a10 Fix template context for importer diff warning email preview 2021-06-18 13:40:31 -05:00
Lance Edgar
d02157b17c Update changelog 2021-06-18 10:19:58 -05:00
Lance Edgar
1b0e8e0d1d Let config set flags for product importing 2021-06-18 10:18:52 -05:00
Lance Edgar
c0c2eb1c38 Update changelog 2021-06-18 09:32:12 -05:00
Lance Edgar
a3b7c8514b Lower log level when product not found
yikes, just got a ton of email from that little mistake
2021-06-18 09:25:57 -05:00
Lance Edgar
d887a58500 Avoid blank upc when caching products 2021-06-18 09:10:31 -05:00
Lance Edgar
471be90261 Update changelog 2021-06-17 20:05:03 -05:00
Lance Edgar
ffbb7a6675 Add --no-collect-changes arg for importer commands
to cut down on memory usage, when absolutely necessary
2021-06-17 19:33:07 -05:00
Lance Edgar
046fcaf663 Update changelog 2021-06-11 13:33:37 -05:00
Lance Edgar
21a394a8b1 Small tweaks when generating new project 2021-06-11 13:31:32 -05:00
Lance Edgar
9cf4baeffa Add PeopleHandler.ensure_address() method 2021-06-11 13:30:27 -05:00
Lance Edgar
e751f90290 Tweak basic project template, per LOC SMS integration 2021-05-24 16:20:51 -05:00
Lance Edgar
d03f4b24ab Fix bug when refreshing single label batch row 2021-05-18 12:46:13 -05:00
Lance Edgar
54badc041f Fix key references in datasync profile constructor
ugh....
2021-05-13 13:14:21 -05:00
Lance Edgar
28475a1a22 Fix config references in datasync profile constructor 2021-05-13 13:10:35 -05:00
Lance Edgar
4fe7188918 Fix how cost diffs are checked for vendor catalog batch
bug was introduced in d0799432f1
2021-05-12 22:44:56 -05:00
Lance Edgar
4dc48c1dd8 Accept extra kwargs for util.capture_output() 2021-05-12 22:27:36 -05:00
Lance Edgar
7a257cc908 Require config and key args for ConfigProfile constructor 2021-05-12 22:27:08 -05:00
Lance Edgar
c00025f049 Assume empty string means null, in datetime conversion for CSV import 2021-05-07 12:06:03 -05:00
Lance Edgar
9319b85bbb Update changelog 2021-04-28 17:51:23 -05:00
Lance Edgar
2f73378172 Delay some imports to avoid circular reference 2021-04-28 14:38:37 -05:00
Lance Edgar
05badbb7bc Add batch_id_str() convenience function 2021-04-28 13:59:42 -05:00
Lance Edgar
bb650a9287 Add "has inventory" status for delete item batch (rows) 2021-04-28 13:59:38 -05:00