Closed rudehn closed 7 years ago
Looks fine, but github says you have conflicts, so downvoting until those are resolved.
Yeah it's a big update and a lot of stuff is conflicting. Looking to finish this up tomorrow.
OK not sure why this got screwed up when I did the rebase. The DB stuff is tested and working. I would appreciate advice on how to clean this stuff up.
Yeah it's been WIP for a few days, so when I resolved the conflicts, it updated literally everything. Not sure if there's a way to get around that.
This could be very messy if you try to merge it I think... I've seen things like this happen which actually really messed up the git history of master. I would recommend generating a patch with the diff between your branch and chaosbot master. Then apply the patch on a fresh branch and submit a new PR.
Sounds good @mark-i-m. I've decided to leave it WIP until I can figure out how to clean it up. I'll try your suggestion
I'll see if I can clean it up for you.
@mark-i-m Yea, you're right. That's probably the cleanest way to go about it.
Thanks @PlasmaPower, appreciate it.
A task still to do is migrate the current data into the db.
@rudehn done! To apply my branch:
git fetch https://github.com/PlasmaPower/chaos.git db-rebase
git reset --hard FETCH_HEAD
From there, check that everything looks right, then git push --force
to push it to GitHub.
A migration script isn't a huge deal right now, worst case a couple of comment votes get dropped and the meritocracy gets mentioned an extra time.
Hey it worked! Thanks! How did you do it?
~A magician never reveals his secrets~
db-rebase
branchTo list the commits, I used git log
of course.
Oops looks like I missed a commit?
Or was that a local change? I think so.
No that was a merge error on my part.
This is just waiting review now. I can un-WIP if needed.
:white_check_mark: PR passed with a vote of 11 for and 1 against, a weighted total of 10.0 and a threshold of 6.5, and a current meritocracy review.
See merge-commit a42223ef9696f5401501fd5f0ef90d80303653b8 for more details.
For the record, this resulted in all issue commands revoting, as expected. There were a lot more than I thought though.
... And it's repeating.
I've created a monster.
I'm not sure what the exact issue is, but it's one of the following
since
param isn't working and all issue comments are being retrieved
This introduces the database into chaosbot. Currently on my fork, the issue commands and meritocracy tables are implemented and working, and those are provided with this PR.
The API for the database ORM is pretty simple. See here for a quickstart to doing various operations.
Hope you all enjoy! This took a surprising amount of work to get implemented.