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 ids to problems #154

Open
ss0201 opened this issue May 5, 2013 · 7 comments
Open

Add ids to problems #154

ss0201 opened this issue May 5, 2013 · 7 comments

Comments

@ss0201
Copy link
Member

ss0201 commented May 5, 2013

required for #153. #96 is also solved by this, I think.

@ghost ghost assigned irxground May 5, 2013
@exKAZUu
Copy link
Member

exKAZUu commented May 5, 2013

Does ids mean unique numbers (0, 1, ....) regardless of contests?
E.g. the ids of the first problem and the second problem in a same contest may be 1030 and 1032.

@exKAZUu
Copy link
Member

exKAZUu commented May 5, 2013

Mongo DB gives ids to any records, I think. Can we use them?

@exKAZUu
Copy link
Member

exKAZUu commented May 5, 2013

Please make clear how to specify ids for problems.

@ghost ghost assigned exKAZUu May 5, 2013
@ss0201
Copy link
Member Author

ss0201 commented May 5, 2013

Here IDs are specified by the problem author, which are currently included in the problem titles. I think adding IDs to problem solved #153 and #96.

@exKAZUu
Copy link
Member

exKAZUu commented May 5, 2013

Hmm. I have an idea.
Add a new string field named "id" whose default value is id (integer) of Mongo DB multiplied by 10.
Sort problems by the ids and show alphabets (A, B, C .. ) instead of actual "id" value.

e.g. Problem1, 2 and 3 has 240, 250 and 260 ids, respectively. An admin changes the id of the problem 3 to 245. Then, users see the A, C and B ids of problem 1, 2 and 3 instead of 240, 250 and 245, respectively.

@ss0201
Copy link
Member Author

ss0201 commented May 5, 2013

lol, that's like line numbers in BASIC :) That is better than my first suggestion, but I have another idea: let the admin order problems with a drag-and-drop UI (just like http://jqueryui.com/sortable/), and show alphabets in this order.

@exKAZUu
Copy link
Member

exKAZUu commented May 5, 2013

Okay, okay, we will implement the best way to order problems.
But I think this issue is quite large. We want more time to implement it.

@ss0201 ss0201 removed this from the Future milestone May 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants