-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Django contrib app #283
Django contrib app #283
Conversation
tests/acceptance/test_django.py
Outdated
cursor.execute("SELECT * FROM procrastinate_jobs") | ||
|
||
|
||
def test_no_missing_migration(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a safeguard test to ensure we never add a .sql
migration without its .py
counterpart
Codecov Report
@@ Coverage Diff @@
## master #283 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 26 39 +13
Lines 1425 1488 +63
Branches 162 162
=========================================
+ Hits 1425 1488 +63
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a very promising start ! A few comments below, and, as you noted, the documentation (we can help with that).
Do you think it's worth generating Django migration files, or do you think documenting the process will be enough ?
Splendid! I think your proposal goes in the right direction. I'll let you be the judge for the following: I don't want to delay the whole thing just because of my silly suggestions, so if you think it makes sense, we could split that into 2 PRs: one without automated generation (or with automated generation but not triggered by setup.py) and one with fully automated generation in setup.py, which seems to be not as simple. You decide, really, I'm fine with both. |
Hey :) Just want to make sure everything is all right regarding this contribution. You're welcome to take all the time you need to iterate on the different parts, but if you run into a blocker or have a part you don't want to invest your time into, it's very ok not to. Just make sure to let me know if/how I can help. See you around! |
Hey @ewjoachim ! I've lacked the spoons lately, but I do want to get back at it and complete it, probably without automation :) I hope you're okay, take care |
Hey :) Here's a handful of spoons 🥄*💯 Take your time, it's ok. Wishing you all the best and 10% more on top of that. See you around, take care :) |
So I reverted the dynamic migration generation and integrated your suggestions:
However, the
I'm not familiar at all with |
Hey there :) Sorry for the response time, I'm going to have a look. Thanks for taking the time! |
First approximation: I think it's because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're almost there ! Thank a lot for your work so far :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops forgotten comment.
I've integrated your suggestions @ewjoachim, and the test suite seems to pass \o/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaaaand it's a wrap 🎬
Congratulations :)
If you want to continue contributing, let me know, I'm sure we can find interesting avenues :) Feel free to have a look at the issues anyway !
Closes #280
Successful PR Checklist:
I'll add documentation if the PR is considered okay, but basically:
"procrastinate.contrib.django",
toINSTALLED_APPS
python manage.py migrate
Let me know if you have any question!