Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Login to register#113

Merged
hbradio merged 10 commits intodevelopmentfrom
feature/Login_to_register
Jun 30, 2017
Merged

Login to register#113
hbradio merged 10 commits intodevelopmentfrom
feature/Login_to_register

Conversation

@hbradio
Copy link
Copy Markdown
Collaborator

@hbradio hbradio commented Jun 27, 2017

This makes a rover use user credentials to register itself with rovercode web. This matches the change to rovercode-web: rovercode/rovercode-web#74

I also took the opportunity to restructure app.py to have a __main__. This is important, because previously the tests were triggering real network calls.

While restructuring, I decided that there's no real need for nginx and uwsgi anymore, since we are not serving mission-control from the rover. Instead, we'll just serve the API using flask-socketio wrapping eventlet.

@hbradio hbradio added this to the Release 0.5 milestone Jun 27, 2017
@hbradio hbradio requested a review from cabarnes June 27, 2017 03:43
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-6.3%) to 51.77% when pulling 5861417 on feature/Login_to_register into 31c3d13 on development.

@hbradio
Copy link
Copy Markdown
Collaborator Author

hbradio commented Jun 27, 2017

Still TODO: make the left and right sensors get their pin numbers from the online config. We're already getting that information back when we register/check-in, so it won't be a problem at all!

Copy link
Copy Markdown
Member

@cabarnes cabarnes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also some wsgi references in setup.sh, .coveragerc, and .prospector.yaml that you might want to remove as well.

Dockerfile Outdated

WORKDIR /var/www/rovercode/www/Adafruit_Python_GPIO
RUN python setup.py install
WORKDIR /var/www/rovercode
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need this since the next line changes the WORKDIR again

www/app.py Outdated
@@ -99,56 +79,91 @@ class HeartBeatManager():
The json-formatted information about the rover to send to rovercode-web.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The param documentation needs to be updated for the new constructor parameters.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-6.3%) to 51.77% when pulling fb5929a on feature/Login_to_register into 31c3d13 on development.

@hbradio
Copy link
Copy Markdown
Collaborator Author

hbradio commented Jun 29, 2017

Sorry, sneaking in one more feature to this PR.

Now the gpio input inits get their pins from the data returned from rovercode-web.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-5.7%) to 52.381% when pulling 1444312 on feature/Login_to_register into 31c3d13 on development.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-5.7%) to 52.381% when pulling 8d36bc1 on feature/Login_to_register into 31c3d13 on development.

@hbradio hbradio merged commit 97fab7f into development Jun 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants