Commit graph

892 commits

Author SHA1 Message Date
Lance Edgar
9c6d514ca6 Allow override of root restriction when configuring SSH. 2015-04-26 12:29:42 -05:00
Lance Edgar
3197ec76dd Add some SSH config stuff for Fabric.
We'll see if this is a good idea or not..
2015-04-26 01:56:52 -05:00
Lance Edgar
fa1e8d7ce2 Update changelog. 2015-04-24 19:41:04 -05:00
Lance Edgar
50e3c94853 Add --max-updates arg to import commands. 2015-04-22 21:40:19 -05:00
Lance Edgar
114a4bde81 Update changelog. 2015-04-21 13:17:27 -05:00
Lance Edgar
9012fb0c59 Don't normalize Product.size to null when importing.
I found a reason to need to distinguish between null and empty string,
which means an empty string should survive normalization.
2015-04-15 13:29:59 -05:00
Lance Edgar
75a99f131d Update changelog. 2015-04-14 15:37:18 -05:00
Lance Edgar
0e6e2a5f1d Fix constructors etc. for old-style batch providers. 2015-04-14 15:35:37 -05:00
Lance Edgar
f6a97d1f81 Update changelog. 2015-04-14 13:26:38 -05:00
Lance Edgar
9343ba3fb2 Tweak locking_copy_test() to assume destination is always a folder.
Also add constant for "file exists" error.
2015-04-14 13:24:42 -05:00
Lance Edgar
8a9080ecd8 Make config a required arg to BatchProvider constructor.
This whole thing will go away at some point, for now just trying to remove
more edbob cruft.
2015-04-14 01:28:26 -05:00
Lance Edgar
5a9fa4d2ff Normalize duplicate records during import.
This is to avoid the ping-pong effect.  Also fix a logging bug.
2015-04-14 01:10:35 -05:00
Lance Edgar
dd5f765aef Tweak logging verbiage. 2015-04-13 23:44:52 -05:00
Lance Edgar
4ffce182f7 Update changelog. 2015-04-13 23:17:53 -05:00
Lance Edgar
021b178972 Add files.locking_copy_test() function.
The hope is that simplifying the lockout will help with certain network
issues that can plague a certain server I know...  If this test is
successful then the `locking_copy()` function will be silently replaced.
2015-04-13 23:13:55 -05:00
Lance Edgar
d87d93a88c Fix runas user bug in dbsync init script.
Same thing as was recently done for the filemon script.
2015-04-13 20:00:42 -05:00
Lance Edgar
3759087ed8 Tweak filemon init script to avoid issue of root-owned log file.
Sometimes during server bootstrapping the 'filemon stop' command would be
ran first, which was previously being run as root, and that meant creating
the log file as root.
2015-04-12 21:08:25 -05:00
Lance Edgar
197ca6dd2a Add get_department() API function. 2015-04-11 08:01:14 -05:00
Lance Edgar
6256796086 Tweak handling of customer phone data in importer (again). 2015-04-11 06:20:06 -05:00
Lance Edgar
3b94c5160d Change how customer phone data is handled in importer. 2015-04-11 04:05:25 -05:00
Lance Edgar
7166580e24 Fix phone_2 bug in Customer importer.
If phone_2 being imported is None, remove all secondary Voice phones from
the customer.
2015-04-11 03:24:44 -05:00
Lance Edgar
48a12d10f3 Add Person.employee relationship and User.employee convenience property. 2015-04-11 00:21:27 -05:00
Lance Edgar
b78d15ff56 Update changelog. 2015-04-05 21:49:16 -05:00
Lance Edgar
8dfbdb6e6b Improve warning message when duplicates found during data import. 2015-03-26 14:56:42 -05:00
Lance Edgar
c77c9dcfab Tweak logging message. 2015-03-26 12:50:19 -05:00
Lance Edgar
e111718136 Remove print statement, dang it. 2015-03-25 21:42:33 -05:00
Lance Edgar
0e79626f1b Log warning when duplicate key is detected during import. 2015-03-25 00:33:28 -05:00
Lance Edgar
ea1ddc4456 Don't normalize simple instance fields unless they're involved in the import. 2015-03-24 21:13:29 -05:00
Lance Edgar
eea046c950 Update changelog. 2015-03-24 13:18:58 -05:00
Lance Edgar
fa77fbbdc1 Add supposed optimization for simple fields within importer.
Not sure if this will make a difference or not, we'll see?
2015-03-24 00:17:25 -05:00
Lance Edgar
f09af043dc Add DataProvider.int_() method for importers. 2015-03-23 01:15:58 -05:00
Lance Edgar
56f5db4136 Fix Albert's invoice parser case quantity bug.
Seems sometimes those can be decimal within the invoice file.
2015-03-21 16:51:06 -05:00
Lance Edgar
3e925c4a03 Tweak logging when importer creates new model instance. 2015-03-20 19:20:40 -05:00
Lance Edgar
2ac9fae084 Update docstring. 2015-03-20 19:20:32 -05:00
Lance Edgar
69ee74ffd9 Fix phone number normalization for customer importer. 2015-03-19 03:25:00 -05:00
Lance Edgar
c020c57c18 Add --warnings flag to base import command. 2015-03-19 02:52:01 -05:00
Lance Edgar
8b07438d6a Tweak case quantity in Albert's invoice parser. 2015-03-19 01:24:29 -05:00
Lance Edgar
0ea99a6aab Various changes to allow custom commands to sit in front of non-Rattail database.
In particular some of the Continuum versioning code required protection
from import failures, and various assumptions about the "default" database
session were refactored.
2015-03-18 20:03:15 -05:00
Lance Edgar
9d364f67e2 Add UnicodeDictWriter and csvutil API docs. 2015-03-18 02:18:31 -05:00
Lance Edgar
870082f833 Update changelog. 2015-03-12 18:35:33 -05:00
Lance Edgar
8bfe04f658 Add unit of measure for cubic feet. 2015-03-12 11:04:13 -05:00
Lance Edgar
cf608acdbf Update changelog. 2015-03-12 10:39:43 -05:00
Lance Edgar
96232f863d Catch import error when configuring db in command startup.
Most commands use the database, but e.g. `filemon` on Windows is a notable
exception.  If the SQLAlchemy stuff isn't installed then an import error
will happen; use that to "skip" the db config.
2015-03-12 10:35:58 -05:00
Lance Edgar
77c6730977 Stop normalizing some fields on import.
At some point we have to just let the data be what it is.  This probably
means removing quite a bit more of that sort of normalization.
2015-03-12 01:07:22 -05:00
Lance Edgar
e8bbb79a91 Update changelog. 2015-03-11 21:24:41 -05:00
Lance Edgar
4d7e56fa40 Hopefully fix install_pip Fabric function. 2015-03-11 21:14:19 -05:00
Lance Edgar
85640f587d Add Product.last_sold column. 2015-03-10 17:50:33 -05:00
Lance Edgar
f8475fbf7d Add duplicate UPC warning in ProductCost importer.
Instead of trying to reset the cost's product association, just warn about
it, since it really needs human attention anyway.
2015-03-10 12:41:54 -05:00
Lance Edgar
3f959bb416 Add get_subdepartment() API function. 2015-03-10 12:41:16 -05:00
Lance Edgar
77a7bfba9b Add order_by kwarg to db.cache.cache_model() function.
The idea here is that in the event a duplicate key(s) exists for the model
being cached, sorting the records should ensure the "last one wins".  This
doesn't accomplish much, but at least the same record should be cached
during subsequent runs, which may help.

This was added to help track down duplicate product UPCs when they were
detected, but I wound up not actually using it in the end.  It's here for
next time...
2015-03-10 12:37:37 -05:00