-
Notifications
You must be signed in to change notification settings - Fork 11
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
#126 : Support for result storage to a MySQL database #127
Conversation
Excellent work! I should be able to review this later this morning. |
Thank you Vanessa! |
ok want to give some quick feedback on what I'm working on - I think (for development and deployment without dependencies) it would be great to have a docker-compose.yml to set up a mysql database and web server, given that the user doesn't want to do that. In my case, I don't want to configure a sql database on my local machine (or elsewhere) to have to test, haha. |
And I'm going to reorganize the folder structure a bit so the user can (in the future) select a Dockerfile for a different database, for example |
Excellent! |
Let me know if I can help. |
Hit a snag - it just needs to be set up to work with python 3, so that needs to be done first. |
Argh! I left the port to Python 3 on hold. It works fine with me but I'm not using the expfactory command nor have I looked at your unit testing suite to make sure the coverage is good enough to manage the risk of breaking things on Python 2. Here are the commands I ran to partially port to Python 3:
But I noticed at least one remaining problem in expfactory/vm.py: What snag did you hit precisely? I may go on the Python 3 port but I'm not familiar with P2 vs P3 incompatibilities so I may need some time... |
Yeah we are going to have issues with items vs. iteritems, it's just one big headache really, which is why I've been avoiding it :) |
OK, just step back and let me try to make the code compatible with both Python 2 and 3 on another branch... |
No don't worry about this for now - I'm installing anaconda2 so I can also use python 2 - the python 2-->3 is a much larger issue we can deal with for another separate thing. |
As you wish |
I created this Pull Request without my Python 3 patches but I confess I have not tested it on Python 2. |
I just ran |
Ok this isn't actually working for me, but here is something you can work from: https://github.com/vsoch/expfactory-python/tree/storage_in_a_database I probably can't work on this for a bout - I spent all day on it at the detriment to my two jobs, which is probably a bad thing to do :) Keep me updated here and I'll look when I get the chance, thanks! Ideally, here is what we want to do:
Thanks! |
OK, I take over. Thank you Vanessa for your irresponsible efforts :) |
Haha, you're awesome :) I'll definitely be able to jump back in, just need to be responsible first! Keep me updated! |
… the reuse of pre-downloaded repos)
… the reuse of pre-downloaded repos)
Updating back
@tangi75 take a look - I think it looks good! When tests pass, and it looks good to you, I'm ready to merge! We could arguably add tests or the like, but I think this is a really great start, and it's important to get the additional feature out there for use (and then we can update as necessary!) |
I'm out with no laptop on hands but thanks to the magic of timezones, I'll have reviewed everything when you wake up tomorrow. |
Everything works fine :) |
Here are the changes to support battery generation for a web server and result storage (in JSON) to a MySQL database.