hypothesis / product-backlog

Where new feature ideas and current bugs for the Hypothesis product live
118 stars 7 forks source link

Canvas app isn't on production infrastructure #339

Closed seanh closed 7 years ago

seanh commented 7 years ago

See also

Problem

There is a Canvas app for Hypothesis currently deployed at https://lti.hypothesislabs.com (git repo). I believe the server behind this is a Digital Ocean droplet run by @judell, it's not on the main Hypothesis infrastructure. This app is currently being used by more than 20 schools for classroom annotation assignments.

The Canvas app needs to be migrated onto our production infrastructure so that it can be maintained by the dev team (bringing the app back up if it goes down, deploying new changes to the app).

There's a standard way that we deploy Python apps at Hypothesis.

Solution

Deploy the Canvas app (by which I mean the standalone web service that currently runs at https://lti.hypothesislabs.com/) to our production infrastructure in the same way that h and bouncer are deployed.

Issues with this solution

Tasks

judell commented 7 years ago

Thanks Sean, I look forward to having this happen. Regarding migration to the new URL, perhaps we can just let the old one age out naturally as courses end.

judell commented 7 years ago

Re: splitting up lti.py, note that it also contains all the JS and CSS and templates, it was always my assumption you'd arrange those assets according to your own conventions.

seanh commented 7 years ago

Thanks Sean, I look forward to having this happen. Regarding migration to the new URL, perhaps we can just let the old one age out naturally as courses end.

Yeah, that sounds good @judell

chdorner commented 7 years ago

Like with every new service: we need monitoring :)

seanh commented 7 years ago

@chdorner Can you comment on this caching of HTML pages to the filesystem, with regards to getting the app onto production infrastructure?

seanh commented 7 years ago

I've added Grafana, Sentry and New Relic to the task list above

chdorner commented 7 years ago

The app is now running on qa and production, has a grafana dashboard, and has new relic set up.

According to @seanh this isn't ready to test yet because the code doesn't play well with our infrastructure, but everything is set up so that as soon as the code is fixed it'll all work.

I will leave the Sentry integration to you @seanh, because that requires a deeper understanding of the code.

seanh commented 7 years ago

Thanks @chdorner ! Leaving this issue open until I get Sentry going, and also fix the app to use the DB properly, update the public docs, but we're close to closing this

chdorner commented 7 years ago

Sentry is now done, see hypothesis/lti#73.

seanh commented 7 years ago

The app's using the DB properly as well. Needs some testing, and the public google docs need updated. Almost there

seanh commented 7 years ago

Update: I need to test that the app is basically working in production but I can't do so because I don't have an admin account on https://hypothesis.instructure.com/. Once I've done that then I can ask others (hopefully Jeremy and Jon) to end-to-end test it. Assuming no problems we'll then just need to update the Hypothes.is Canvas Alpha: Installing the App google doc and this card will be done.

judell commented 7 years ago

Excellent. You have the credentials in PassPack.

On Fri, Aug 18, 2017 at 6:30 AM, Sean Hammond notifications@github.com wrote:

Update: I need to test that the app is basically working but I can't do so because I don't have an admin account on https://hypothesis. instructure.com/. Once I've done that then I can ask others (hopefully Jeremy and Jon) to end-to-end test it. Assuming no problems we'll then just need to update the Hypothes.is Canvas Alpha: Installing the App https://docs.google.com/document/d/13FFtk2qRogtU3qxR_oa3kq2ak-S_p7HHVnNM12eZGy8/edit# google doc and this card will be done.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hypothesis/product-backlog/issues/339#issuecomment-323353971, or mute the thread https://github.com/notifications/unsubscribe-auth/AAC1rWdcUPvKAr_jDAy9jBlGL1H1MC9Rks5sZZHtgaJpZM4OZsIf .