tl-its-umich-edu / canvas-app-explorer

A Web application that presents a list of Canvas external (LTI) tools with details. When integrated within Canvas, the user can search for specific LTI tool(s), and add or remove those tools from Canvas courses.
Apache License 2.0
4 stars 6 forks source link

Add some migration file to pre-populate the tables with known values #54

Closed jonespm closed 2 years ago

jonespm commented 3 years ago

It would be nice if we pre-populated the stables like CanvasPlacement to have a few of the known defined placements. We also should pre-populate any other tables.

ssciolla commented 2 years ago

So, probably use a data migration to add the available Canvas Placements.

https://lti.colcampus.com/xml_builder

jonespm commented 2 years ago

I believe the idea is we'd sync the placements for each tool from Canvas via API eventually. This is not going to happen in the short term, so we're hardcoding them for now. I think we have it as a table so it can be dynamic and not require code changes if these placements ever change.

ssciolla commented 2 years ago

@jonespm, how about something like this? https://github.com/ssciolla/canvas-app-explorer/commit/d0aa6cc2fbf7112b5b02228db9767e9c89342113

If it looks okay, I will open a PR after #134 is merged.