Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar 82383a7bc5 Update changelog 2016-09-28 20:02:42 -05:00
Lance Edgar a30a19c25b Always warn if duplicate keys detected when caching a data model 2016-09-28 20:01:31 -05:00
Lance Edgar 9ddb9e2269 Add Category.code to schema
With unique constraint, but nulls *are* allowed.
2016-09-28 20:01:04 -05:00
Lance Edgar 047c0dfce8 Update changelog 2016-09-27 19:41:45 -05:00
Lance Edgar 4ca9071a02 Fix typo bug 2016-09-27 19:17:00 -05:00
Lance Edgar 21697691b7 Update changelog 2016-09-26 15:14:08 -05:00
Lance Edgar a594916203 Tweak base importer logic to allow for *not* creating new object
Sometimes that's just how it needs to go down...
2016-09-23 13:17:54 -05:00
Lance Edgar 8cd937166b Add "full" model importer support, for sake of SMS -> Rattail 2016-09-21 17:03:36 -05:00
Lance Edgar eb7a28fbd0 Add basic phone number validation logic, tweak email validation 2016-09-18 17:12:33 -05:00
Lance Edgar a5f313579a Add 'refreshable' flag to batch handler
Hopefully a good idea..?
2016-09-18 17:12:17 -05:00
Lance Edgar 51bfcb3a65 Log traceback when error happens for filemon action
In addition to sending the email that is.
2016-09-18 17:11:48 -05:00
Lance Edgar 6ff9a953be Add customization hook for identifying product for vendor catalog row 2016-09-16 15:50:04 -05:00
Lance Edgar a4d5a87014 Refactor some things to avoid unwanted eager imports
Was running into 'bcrypt' errors on a system which didn't have (or
really) need that installed.
2016-08-26 20:12:17 -05:00
Lance Edgar 16bec79c6a Add initial docs for data importers 2016-08-26 14:07:38 -05:00
Lance Edgar 7d5b0f6377 Update changelog 2016-08-23 16:57:20 -05:00
Lance Edgar 6b559fbc7b When deleting batch, only try to delete its file if it has a filename 2016-08-23 15:25:20 -05:00
Lance Edgar ce34d84320 Add "mode" for inventory batches
Roughly corresponding to the SMS inventory modes, but seemed generally useful.
2016-08-23 12:50:01 -05:00
Lance Edgar 8a293b46b2 Skip 'removed' rows when creating inventory batch from handheld batch 2016-08-22 15:45:23 -05:00
Lance Edgar b5393ec91c Add BaseFileBatchMixin in hopes it makes sense... 2016-08-20 21:02:08 -05:00
Lance Edgar a9c7e72e55 Auto-associate batch row class with batch class 2016-08-20 21:01:36 -05:00
Lance Edgar 79a6dbdf71 Add support for raw RattailCE data files for handheld batches 2016-08-19 14:16:52 -05:00
Lance Edgar 0c7e3badc6 Update changelog 2016-08-18 18:35:49 -05:00
Lance Edgar f93bc9d765 Add hostname to filemon action error email 2016-08-18 17:49:53 -05:00
Lance Edgar 24b381de40 Fix import bug in inventory batch handler 2016-08-17 19:59:57 -05:00
Lance Edgar 4fe117a62b Update changelog 2016-08-17 17:20:36 -05:00
Lance Edgar 396cef562b Add new 'handheld' and 'inventory' batches 2016-08-17 16:41:56 -05:00
Lance Edgar dac28dd0d2 Add system-wide unique ID for new-style batches 2016-08-17 16:41:12 -05:00
Lance Edgar 5fb18dbad1 Allow extra kwargs to be passed to new-style batch handler execute() method 2016-08-17 16:38:56 -05:00
Lance Edgar 379dd63e1d Update changelog 2016-08-13 21:51:13 -05:00
Lance Edgar bf278c775f Add basic retry mechanism to datasync watcher.get_changes() logic
Maybe a bit experimental yet, but hopefully does it right.  Also makes
the 'lastrun' timestamp a proper zone-aware UTC, for watcher
convenience.  Plus other changes I'm sure.
2016-08-13 21:31:28 -05:00
Lance Edgar 365cd91d6f Tweak logic for determining effective importers, in datasync consumer
Defer pruning of "local" models until after the mapping has already happened.
2016-08-13 16:48:26 -05:00
Lance Edgar 6a76e4f9b1 Update changelog 2016-08-12 20:31:40 -05:00
Lance Edgar be8d22523e Add common config for filemon error emails 2016-08-12 20:30:54 -05:00
Lance Edgar 9b09800952 Update changelog 2016-08-12 17:16:39 -05:00
Lance Edgar 2223671f4b Add datasync URL to email template for watcher errors 2016-08-12 17:14:14 -05:00
Lance Edgar 5cf0dfe4d0 Add RattailConfig.getdate() convenience method 2016-08-11 23:59:02 -05:00
Lance Edgar c7dff65ad0 Fix broken test 2016-08-11 20:21:25 -05:00
Lance Edgar 731f68b62b Send proper email when filemon encounters error while invoking action
This surely is better.
2016-08-11 20:05:12 -05:00
Lance Edgar 8f745eb394 Update changelog 2016-08-10 19:57:33 -05:00
Lance Edgar 9f26360925 Log warning instead of error when datasync watcher fails to get changes
Now that we're sending email, shouldn't need to be so worried about the
logging part.
2016-08-10 17:32:44 -05:00
Lance Edgar 7b3da9a696 Update changelog 2016-08-10 16:58:14 -05:00
Lance Edgar 94af833882 Add custom email for datasync watcher.get_changes() errors
These are fairly important and the existing log.error() approach was
causing these to blend in with other emails a bit too much...
2016-08-10 16:50:07 -05:00
Lance Edgar 54997813b4 Add FormEncode as official dependency
That probably could have been done differently..oh well this works for now.
2016-08-10 14:38:00 -05:00
Lance Edgar e601dff9b3 Update changelog 2016-08-10 14:29:23 -05:00
Lance Edgar 1a7cf9843f Add simple email validator to db.util module
This seems generally useful, hopefully..
2016-08-10 14:25:35 -05:00
Lance Edgar 90408b5ecf Add batch_filedir and batch_filepath methods to main config object
These are simple enough and should surely be shared.
2016-08-09 19:44:13 -05:00
Lance Edgar dd2cf39138 Update changelog 2016-08-09 13:19:14 -05:00
Lance Edgar 7771a611f0 Add product flags for food stamps and tax 1/2/3
Just basic stuff for convenience, can revisit later as needed.
2016-08-08 21:08:59 -05:00
Lance Edgar 18029d0114 Add GPC.type2_upc convenience attribute
This should check if the data is of type 2 UPC.  May need to improve the
logic over time but I'm ready to start using this.
2016-08-08 18:44:54 -05:00
Lance Edgar b31b591ad2 Update changelog 2016-07-27 19:43:47 -07:00