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
Lance Edgar
f3013b9aca
Let make_utc()
use current time as default
2016-07-23 15:12:07 -07:00
Lance Edgar
0920a9a760
Move cache_model()
method to core Importer
class
...
This can be useful even when not targeting a SQLAlchemy system.
2016-07-14 10:51:59 -05:00
Lance Edgar
5150320bb0
Tweak logging verbiage within datasync wait
command
2016-07-14 10:51:42 -05:00
Lance Edgar
2499fb39dc
Update changelog
2016-07-08 01:05:59 -05:00
Lance Edgar
982ab90ce3
Tweak CSS to preserve whitespace in import diff email field values
2016-06-24 12:06:38 -05:00
Lance Edgar
8ebb667976
Add Importer.fields_active()
convenience method
2016-06-22 19:14:20 -05:00
Lance Edgar
e5425274a4
Update changelog
2016-06-17 13:08:50 -05:00
Lance Edgar
88a7cbb377
Force session flush after processing changes in datasync consumer thread
...
I.e. do so within the try/catch block, in case the flush triggers SQL
integrity errors etc.
2016-06-17 13:06:53 -05:00
Lance Edgar
48ae998b99
Add some convenience attributes to GPC
class
...
More to come I'm sure...
2016-06-17 11:13:31 -05:00
Lance Edgar
f8ced153f4
Tweak logging message when datasync wait times out
2016-06-16 13:53:10 -05:00
Lance Edgar
73f78040af
Add special 'authenticated' role, for easier permission management
2016-06-15 12:49:49 -05:00
Lance Edgar
b75420441c
Fix timezone bug in shift get_date()
method
2016-06-14 22:16:45 -05:00
Lance Edgar
c5648cc6ff
Update changelog
2016-06-10 17:07:27 -05:00
Lance Edgar
49e90caf57
Add default logic for obtaining importers from handler, in new datasync consumer
2016-06-10 14:34:06 -05:00
Lance Edgar
600e38c282
Add support for more fields to Employee data importer
2016-06-08 21:09:58 -05:00
Lance Edgar
399c856716
Add explicit path to check-rattail-daemon
within generic init script
...
Probably bad form, but works for now.
2016-06-06 17:11:39 -05:00
Lance Edgar
a1a892a624
Tweak daemon init script to suppress some unwanted status output
2016-06-05 21:14:58 -05:00
Lance Edgar
13cb9e6a7a
Add generic daemon init script
...
Need to get rid of the datasync/filemon/bouncer scripts next...
2016-06-04 23:11:28 -05:00
Lance Edgar
2ca2a2181e
Tweak check-rattail-daemon
script, add some docs to header
2016-06-04 22:03:09 -05:00
Lance Edgar
7980bcdd2f
Add initial/basic support for Shinken monitoring software
...
Note that this targets Shinken 1.4 which is already woefully behind
compared to their latest 2.4.3 release, but that's what is offered via
APT by Ubuntu 14.04 and for now that's what we're testing with..
2016-06-04 20:00:57 -05:00
Lance Edgar
8ecec5a9ad
Fix broken test
2016-06-01 22:22:18 -05:00
Lance Edgar
9c0f78af3b
Update changelog
2016-06-01 22:18:36 -05:00
Lance Edgar
959ed0cdbe
Add simple attribute so handlers can override diff count in warning emails
2016-06-01 22:17:21 -05:00
Lance Edgar
31638a62bf
Never update local object's key field(s) when importing
...
Sneaky bug...
2016-06-01 22:16:24 -05:00
Lance Edgar
05f770cbd8
Update changelog
2016-05-27 14:19:36 -05:00
Lance Edgar
60d87ae090
Add logic for skipping deletion if no key, in import-based datasync consumer
2016-05-27 13:08:48 -05:00
Lance Edgar
7cd006b501
Update changelog
2016-05-26 15:25:56 -05:00
Lance Edgar
0abf66815f
Default to empty list for cache query options in SQLAlchemy importers
2016-05-26 15:10:46 -05:00
Lance Edgar
2c2c8f01ed
Add support for preferred field in phone/email importers
2016-05-25 18:46:17 -05:00
Lance Edgar
9a272b2200
Add datasync consumer base class for new-style importers
2016-05-25 18:45:55 -05:00
Lance Edgar
c3461507a7
Fix delete behavior for ToSQLAlchemy
importer, fix tests
...
No need to expunge the object when deleting, and that was making tests
break in a way that suggested production breakage also..?
2016-05-23 14:27:35 -05:00
Lance Edgar
f6cf0e5971
Add comma formatting to counts within import warning diff emails
2016-05-23 14:21:07 -05:00
Lance Edgar
00a8e2657c
Remove redundant "flush" handling from ToSQLAlchemy
importer
...
Also tweak logging when a warning email is sent out; just to be
consistent with other logged message formats.
2016-05-18 12:15:51 -05:00
Lance Edgar
532a8a93a0
Update changelog
2016-05-17 16:26:31 -05:00
Lance Edgar
ad6259f538
Remove deprecated Rattail -> Rattail importers
2016-05-17 15:31:20 -05:00
Lance Edgar
22e10accf5
Add "batch" support to importer framework
...
Doesn't really split things up per se, just controls how often a "flush
changes" should occur.
2016-05-17 15:02:08 -05:00