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

Adding a "collection_id" field to an Assignment? #178

Open
Z4P0 opened this issue Sep 11, 2014 · 2 comments
Open

Adding a "collection_id" field to an Assignment? #178

Z4P0 opened this issue Sep 11, 2014 · 2 comments
Labels

Comments

@Z4P0
Copy link
Contributor

Z4P0 commented Sep 11, 2014

Every time we publish an assignment, we also create a collection. That collection is tied to the assignment. With out current setup I can't think of a way to know which collection belongs to which assignment. We have a list of collections and a list of assignments, but no way to check which goes with which.

Maybe we could have an "admin/set_collection_id.json" endpoint? Where we would pass the assignment_id and the collection_id.

For the demo on Saturday we can assume the assignment_id and collection_id will always be the same. ex. Create first assignment (assignment_id=1), which creates the first collection (colllection_id=1)

@Z4P0 Z4P0 added the question label Sep 11, 2014
@thequbit
Copy link
Member

Herm ... I wasn't thinking that a collection would be created for each
assignment every time, so I didn't think to link them. I think that
assumption will work okay for Saturday, but could get us in trouble in the
future.

Perhaps a check box for "create a collection with this assignment?". And
then we can make a table that links Assignments to Collections (that way
you could have multiple Assignments assigned to a single Collection). Does
that make sense?

On Thu, Sep 11, 2014 at 2:39 PM, luis [email protected] wrote:

Every time we publish an assignment, we also create a collection. That
collection is tied to the assignment. With out current setup I can't think
of a way to know which collection belongs to which assignment. We have a
list of collections and a list of assignments, but no way to check which
goes with which.

Maybe we could have an "admin/set_collection_id.json" endpoint? Where we
would pass the assignment_id and the collection_id.

For the demo on Saturday we can assume the assignment_id and collection_id
will always be the same. ex. Create first assignment (assignment_id=1),
which creates the first collection (colllection_id=1)


Reply to this email directly or view it on GitHub
#178.

Tim Duffy
http://timduffy.me/
(585)-210-8353
@arbiterofbits

@Z4P0
Copy link
Contributor Author

Z4P0 commented Sep 11, 2014

Yeah, I was actually thinking something along those lines as well, like
having the checkbox, but "reversed". The default action should create a new
collection, but if the user unchecks the box it will not create a new one,
and allow them to choose which existing collection to use instead

On Thu, Sep 11, 2014 at 2:50 PM, Timothy Duffy [email protected]
wrote:

Herm ... I wasn't thinking that a collection would be created for each
assignment every time, so I didn't think to link them. I think that
assumption will work okay for Saturday, but could get us in trouble in the
future.

Perhaps a check box for "create a collection with this assignment?". And
then we can make a table that links Assignments to Collections (that way
you could have multiple Assignments assigned to a single Collection). Does
that make sense?

On Thu, Sep 11, 2014 at 2:39 PM, luis [email protected] wrote:

Every time we publish an assignment, we also create a collection. That
collection is tied to the assignment. With out current setup I can't
think
of a way to know which collection belongs to which assignment. We have a
list of collections and a list of assignments, but no way to check which
goes with which.

Maybe we could have an "admin/set_collection_id.json" endpoint? Where we
would pass the assignment_id and the collection_id.

For the demo on Saturday we can assume the assignment_id and
collection_id
will always be the same. ex. Create first assignment (assignment_id=1),
which creates the first collection (colllection_id=1)


Reply to this email directly or view it on GitHub
#178.

Tim Duffy
http://timduffy.me/
(585)-210-8353
@arbiterofbits


Reply to this email directly or view it on GitHub
#178 (comment).

Luis Rosario
@zapo_tec
http://www.luisrosar.io/

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

No branches or pull requests

2 participants