Commit graph

3270 commits

Author SHA1 Message Date
Lance Edgar 40c58ec556 Update changelog 2022-08-05 16:47:10 -05:00
Lance Edgar dc1ac24895 Be sure to close connections for rattail -> rattail datasync
this seems to be a major offender!

refs #6
2022-08-05 16:32:05 -05:00
Lance Edgar aaef8b7b89 Make db pool status logging a per-engine config flag 2022-08-05 15:38:47 -05:00
Lance Edgar be39009faa Add debug logging of DB pool status, when creating Session
trying to track down why we still have way too many sessions..

refs #6
2022-08-05 15:23:15 -05:00
Lance Edgar 9f5ef93210 Remove unused function 2022-08-05 13:37:59 -05:00
Lance Edgar 6b923be28a Update changelog 2022-08-05 13:28:12 -05:00
Lance Edgar e36e4ead4f Fix recipients for sending email
turns out we were sending mail to e.g. 'Lance', 'Edgar', 'lance@edbob.org'
2022-08-05 13:27:08 -05:00
Lance Edgar 5d1513d0cf Update changelog 2022-08-04 09:08:18 -05:00
Lance Edgar 9833ddca76 Use app node title as default email subject prefix 2022-08-04 08:24:44 -05:00
Lance Edgar 5f33b1d79c Update changelog 2022-08-03 16:56:55 -05:00
Lance Edgar de40a2169e Add beaker cache flag to config file templates 2022-08-03 16:25:39 -05:00
Lance Edgar ac64833556 Add initial support for Beaker caching of config values from DB
refs #8
2022-08-03 15:14:45 -05:00
Lance Edgar 68b3011ad9 Deprecate the old rattail.db.api.settings module
technically this is still being used here and there in the wild, but
that really needs to stop so that we can guarantee validity of beaker
cache when that is being used
2022-08-03 14:50:53 -05:00
Lance Edgar 721dadc131 Add "touch" logic for employee handler 2022-08-03 11:12:44 -05:00
Lance Edgar 3a7d5a6486 Update changelog 2022-08-02 19:12:23 -05:00
Lance Edgar e4efc6619b Use single comma-delimited To: header for multiple email recipients
apparently all this time we have often been sending messages which had
multiple To: headers, but that violates the standard

recently found a bounce in mail logs with the following warning:

    Our system has detected that this message is not RFC 5322 compliant: duplicate headers
2022-08-02 19:07:40 -05:00
Lance Edgar ffa1537d7a Remove unused module 2022-08-01 21:32:44 -05:00
Lance Edgar 58129232e6 Remove reference to old command 2022-08-01 21:29:25 -05:00
Lance Edgar 96ec45cd63 Remove unused command 2022-08-01 21:23:26 -05:00
Lance Edgar d006a6d4f3 Remove unused command 2022-08-01 21:16:57 -05:00
Lance Edgar ad5df3a662 Remove "basic db cache" for config from DB settings table
turns out that won't even work right

refs #8
2022-08-01 21:12:25 -05:00
Lance Edgar 0ce1f4ac85 Fix test 2022-07-31 20:45:30 -05:00
Lance Edgar 35e40b4c4e Add basic db cache mechanism for RattailConfig
refs #8
2022-07-31 20:31:38 -05:00
Lance Edgar 6edc9b10d0 Update changelog 2022-07-29 10:58:27 -05:00
Lance Edgar 8361148b2c Avoid more sessions in datasync, when fetching config from DB
ugh, there are probably even more somewhere..?
2022-07-27 14:02:53 -05:00
Lance Edgar 5e978e8f7b Update changelog 2022-07-27 10:20:13 -05:00
Lance Edgar e2e3900ea7 Add basic python3 support for rattail import-sample cmd 2022-07-26 14:25:04 -05:00
Lance Edgar 5685603721 Add --list-types arg for make-config cmd
also remove config templates for with[out]-versioning, since those are
no longer needed thanks to global cmd args of same name
2022-07-26 14:25:04 -05:00
Lance Edgar 6d8e1e9ffd Avoid extra sessions in datasync, when fetching config from DB
finally, tracked down why extra sessions were happening..i think.
there may be more instances of this problem elsewhere; will fix as
they're encountered

refs #6, #7
2022-07-26 14:24:59 -05:00
Lance Edgar 9820a0f0f4 Update changelog 2022-07-25 11:41:38 -05:00
Lance Edgar 033102807e Update invoice parser for KeHE, per new format 2022-07-25 11:13:55 -05:00
Lance Edgar d094569b0b Add can_auto_receive() method for purchase batch handler 2022-07-24 22:28:44 -05:00
Lance Edgar 2cbd84768e Add AppHandler.today() method 2022-07-24 21:09:01 -05:00
Lance Edgar c6756e8416 Improve how receiving batch is created from purchase 2022-07-24 21:08:46 -05:00
Lance Edgar e77ce7f536 Maybe omit rows w/ no qty when making purchase from ordering batch
probably this should be the default behavior, but for now i'm leaving
legacy behavior as default
2022-07-24 15:04:16 -05:00
Lance Edgar 1b69309698 Add primary flag for ContactMixin.add_email() and add_phone() 2022-07-24 13:21:01 -05:00
Lance Edgar 780f7813cf Update changelog 2022-07-22 15:46:09 -05:00
Lance Edgar ca503cefa4 Reverse default flags for auto-creating brand in product importers
this preserves former behavior by default, and probably makes more sense
2022-07-22 12:46:56 -05:00
Lance Edgar 032dcc3467 Update changelog 2022-07-22 12:40:27 -05:00
Lance Edgar f34703ea3d Add flags for auto-creating brand in product importers
if brands are tracked with foreign system key, then auto-create is
probably not suitable since new brand won't get the key
2022-07-22 12:38:16 -05:00
Lance Edgar dfadd3fbe2 Make caching products optional, when creating vendor catalog batch 2022-07-19 15:50:10 -05:00
Lance Edgar f97c452f8e Add upc_check_digits_needed() method for products handler 2022-07-19 13:18:53 -05:00
Lance Edgar 27d18c42c9 Update changelog 2022-07-19 10:40:36 -05:00
Lance Edgar c987be5b3e Add retry loop for starting transaction in datasync consumer 2022-07-19 10:39:41 -05:00
Lance Edgar 9e8fe47020 Add get_last_patronage_date() method for membership handler 2022-07-19 09:51:53 -05:00
Lance Edgar 5576664d1a We always want "unit name" for UOM choices 2022-07-18 22:50:16 -05:00
Lance Edgar da7eeb909e Update changelog 2022-07-18 22:30:01 -05:00
Lance Edgar f818af8e5f Stash data when generating report output 2022-07-18 22:27:31 -05:00
Lance Edgar 68a17f6d52 Only remove egg-info dir if it exists, when releasing 2022-07-18 12:39:46 -05:00
Lance Edgar 331a31b2b6 Update changelog 2022-07-18 12:38:19 -05:00