Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar 8b8b050b09 Add batch handler logic to see if row deletion is okay
just for receiving batch so far..
2023-05-10 18:46:41 -05:00
Lance Edgar 02f9723c9a Update the alembic env.py script, per newer conventions
also pass `usedb=False` to the config!
2023-05-10 16:27:53 -05:00
Lance Edgar 485bf57183 Misc. tweaks for sake of Rattail -> Instacart export 2023-05-10 15:11:55 -05:00
Lance Edgar e23b7ba0b4 Update changelog 2023-05-09 20:30:13 -05:00
Lance Edgar f5bd87bfe3 More improvements for 'shopfoo' project generators 2023-05-09 15:29:50 -05:00
Lance Edgar 049a410b21 Add org name to README for poser-style projects 2023-05-09 07:35:16 -05:00
Lance Edgar 122391e247 Fix version tables for vendor_sample_file
not sure why alembic is behaving differently for those now, when
alembic revision is generated for new versioned table..

ideally could solve the underlying problem there as this will affect
everyone...
2023-05-08 21:42:13 -05:00
Lance Edgar 4c331e3875 Add rattail_shopfoo project generator
also *remove* the `db/alembic/env.py` script from rattail-adjacent
generator.  it didn't seem necessary..now we'll see if it ever is
2023-05-08 21:41:00 -05:00
Lance Edgar 9834e1276d Improve logic for rattail version-check command
previously checked for "2 INSERT ops" but that is technically okay if
a DELETE happens before 2nd INSERT
2023-05-08 19:50:47 -05:00
Lance Edgar a4ea9103ee Update changelog 2023-05-05 19:10:05 -05:00
Lance Edgar 0c53a05603 Add default classifier for rattail-integration projects 2023-05-05 19:09:20 -05:00
Lance Edgar a30df47646 Add config stub for custom tailbone menu
hm, need a better way to customize this config template, since
rattail-adjacent does not get `has_web` context (yet?)
2023-05-05 14:20:11 -05:00
Lance Edgar afa01d6332 Add "rattail_adjacent" base class for generating projects
need to share logic between "full-on Poser app" and "rattail-foo
integration" type projects
2023-05-05 13:29:18 -05:00
Lance Edgar baf7be5ec9 Update changelog 2023-05-05 10:21:42 -05:00
Lance Edgar 7a6d332a9f Delay alembic import in case not there 2023-05-05 01:04:33 -05:00
Lance Edgar ab085bfd63 Remove error for default empty project generator 2023-05-05 00:46:11 -05:00
Lance Edgar 57231236d9 Massive overhaul of "generate project" feature
previous incarnation was woefully lacking.  new feature is much more
extensible.  still need to remove old POS integration specifics in
some places.

and a couple of unrelated things that snuck in..

- deprecate `rattail.util.OrderedDict`
- deprecate `rattail.util.import_module_path()`
- deprecate `rattail.util.import_reload()`
2023-05-05 00:13:44 -05:00
Lance Edgar e96c3d796e Update changelog 2023-05-03 10:54:29 -05:00
Lance Edgar 8eb1739c9e Add Origin header to tailbone API client requests
to avoid CSRF error.. is there a better way?
2023-05-03 10:53:28 -05:00
Lance Edgar c379ca442c Add prevent_password_change flag for User model 2023-05-02 19:10:44 -05:00
Lance Edgar add6512de8 Update changelog 2023-05-02 16:54:44 -05:00
Lance Edgar d349c66eeb Add max_retries option for TailboneAPIClient 2023-05-02 16:51:05 -05:00
Lance Edgar 40519d0490 Update changelog 2023-05-01 22:16:18 -05:00
Lance Edgar 43fa56332e Add rattail telemetry command
for submitting basic server info to support host
2023-05-01 22:15:24 -05:00
Lance Edgar c865f325a2 Update changelog 2023-04-22 10:02:45 -05:00
Lance Edgar a1a119e2db Add subcommand base class for weekly emailed reports
fairly rudimentary so far, mostly copied from elsewhere
2023-04-21 20:22:06 -05:00
Lance Edgar ef372e7de0 Update changelog 2023-03-27 13:47:20 -05:00
Lance Edgar c28066a5f7 Fix syntax bug for str(Brand) 2023-03-27 13:46:44 -05:00
Lance Edgar 0ed482c12e Update changelog 2023-03-27 12:52:24 -05:00
Lance Edgar f727902f80 Cleanup a bit, for generated model code 2023-03-25 11:33:49 -05:00
Lance Edgar 71f6ac0ef9 Explicitly disable cascade_backrefs for all backrefs
https://docs.sqlalchemy.org/en/20/changelog/migration_14.html#cascade-backrefs-behavior-deprecated-for-removal-in-2-0
2023-03-25 11:11:55 -05:00
Lance Edgar bfd9f43080 Update changelog 2023-03-15 09:42:26 -05:00
Lance Edgar ba12576ce4 Fix variable reference error 2023-03-15 09:32:12 -05:00
Lance Edgar 7e19b905d3 Update changelog 2023-03-09 14:09:42 -06:00
Lance Edgar 5be8e0003f Avoid cascading backref for product -> purchase item
per SA 2.0 warnings
2023-03-09 14:08:22 -06:00
Lance Edgar 9b98d4d50b Update changelog 2023-03-02 11:04:35 -06:00
Lance Edgar 064e7c0e62 Log warning but avoid error, if rsync exits with code 24 2023-03-01 09:35:32 -06:00
Lance Edgar 5b196d4a87 Lower log level when parsing invoice fails 2023-02-28 14:50:38 -06:00
Lance Edgar f198726f2c Update changelog 2023-02-24 20:03:36 -06:00
Lance Edgar 589acf6f1b Fix bug when receiving from PO + invoice, w/ multi-lines per item
when overlaying the invoice data onto the batch (first populated from
PO), and multiple rows match a given invoice line item, it was always
returning the first match.  now tries to match on quantity too
2023-02-24 19:55:48 -06:00
Lance Edgar 41c54227da Update changelog 2023-02-22 21:59:42 -06:00
Lance Edgar 87a1153969 Add table for tracking sample vendor files
always need a place to keep track of these since formats can change
over time; might as well track directly in the app
2023-02-22 21:58:20 -06:00
Lance Edgar ea3eede450 Use versioning workaround when populating purchase batch 2023-02-22 12:49:18 -06:00
Lance Edgar 738c973a27 Modify ORM backrefs for BatchRow/Product, per SA 2.0 warnings 2023-02-22 12:04:50 -06:00
Lance Edgar 2eff397395 Modify ORM backrefs for User/Role, per SA 2.0 warnings 2023-02-21 20:42:40 -06:00
Lance Edgar 4e4bcbeaf3 Update changelog 2023-02-20 21:49:28 -06:00
Lance Edgar e058bbce9e Avoid import error when setting Email.model attr 2023-02-17 13:24:00 -06:00
Lance Edgar e50961288e Avoid/delay import in case SQLAlchemy not installed 2023-02-17 13:21:42 -06:00
Lance Edgar 90b9591bdf Avoid/delay import for cache_model()
in case SQLAlchemy is not installed
2023-02-17 13:19:25 -06:00
Lance Edgar 49f4a0bd1a Avoid import error when setting EmailHandler.model attr 2023-02-17 13:16:36 -06:00