-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upsert #156
base: main
Are you sure you want to change the base?
Upsert #156
Conversation
Thanks for taking a run at it. Tests and documentation will def. be something we want. Yes I think you'll need a database to test against. Here is how the test suite configures the database https://github.com/palewire/django-postgres-copy/blob/main/.github/workflows/continuous-deployment.yaml#L11-L21 |
@palewire Thanks for giving the go-ahead. I've got some new tests in progress, but will wait to commit them until I can run them locally. EDIT: Got testing up and running, had to edit my |
@palewire While writing tests I discovered a weird nuance about Django's "Model Constraints," it's now been addressed (and covered in testing). The basic issue was that if a constraint is specified as
then Django doesn't actually create a PSQL constrained named "my_constraint", it creates a UNIQUE INDEX, so doing something like However, it seems in PSQL documentation for Going to look into how to update the documentation next. Is there anything obvious next steps I'm missing? Thanks! |
@palewire Is it possible for me to re-run the GitHub actions? The PR is passing tests and flake8 locally. Not sure how to progress. |
@palewire Can I get an update on this? It's been working well on my machine for awhile now, hoping to use it in production soon. Is there anything else I can do to move this forward? Thanks! |
After a discussion awhile back on the postgresql Slack, it was recommended I add the |
@palewire Any movement for this? I'm willing to fix any conflicts with the current version. If it's your preference not to support upsert, or do it a different way, could you let me know? Thanks! |
@palewire Just giving you another ping. If you want me to let this go, just let me know. Thanks! |
I'm willing to write tests and update documentation if this approach seems sufficient.
Having some trouble getting the test suite to run (getting
django.db.utils.OperationalError: fe_sendauth: no password supplied
when I runpipenv run python setup.py test
); do I need to create a (postgres) database calledtest
?