Skip to content
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

Add PostgreSQL for storing schedules #19

Open
ahoskins opened this issue Mar 22, 2015 · 2 comments
Open

Add PostgreSQL for storing schedules #19

ahoskins opened this issue Mar 22, 2015 · 2 comments

Comments

@ahoskins
Copy link
Owner

I like the way the RIT db works.

I'm guessing the workflow is:

  1. press "save" button while on schedule view
  2. db stores the current schedule, busy times, and preferences
  3. we give the user a url they can access this at (we could even let them create their own hash, that would be fun)
  4. when that hash is requested, node queries the db with the hash which gives an associated schedule, busy times, and preferences
  5. deliver this is a special view to the client (a view not showing the busy times and preferences sliders basically)
  6. there's a button on this page prompting the normal site to be loaded
@ahoskins ahoskins changed the title Add psql for storing schedules Add PostgreSQL for storing schedules Mar 22, 2015
@rosshamish
Copy link
Collaborator

Cool, I like this. There's already preliminary support for this in classtime too, "more like this" schedules get stored in the db and return a hash id

@rosshamish
Copy link
Collaborator

^ my first comment is a misunderstanding of what this feature would be. I think I understand now.

this could possibly couple well with rosshamish/classtime#99 (cache responses to common requests). In addition to saving individual schedules, whole search results (lists of schedules) could be shared by sharing the sched-gen query string. And maybe winston could fire a request to classtime to "forcibly cache" a sched-gen request on save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants