lakesare / memcode

Spaced-repetition: with real formatting.
http://memcode.com
MIT License
335 stars 72 forks source link

Duplicate course name #79

Open CoderToCode opened 4 years ago

CoderToCode commented 4 years ago

There are Multiple courses with the same name which belong to the same category. That too they are being created by the same user.

image

Eg: Course Python Programming is created multiple times under the same category by the same user. Which is to be restricted #todo

lakesare commented 4 years ago

I don't think we should enforce course name uniqueness. I considered that, as we'll want to add url slugs at some point (e.g. memcode.com/courses/python-programming), however we can use the memcode.com/courses/:course_id-python-programming pattern instead.

Open to opposition here though :-).

anandvenkat4 commented 4 years ago

@lakesare Don't you think we need to enforce the uniqueness at least for the same user? It will be very difficult to identify/navigate the course for himself/herself after a user creates more than 100 courses. Can we append any numbers like Python-1, Python-2 if we find a course in the same name?

lakesare commented 4 years ago

If the user has two courses named 'Python' they will easily notice that, and rename one of the courses.

iopq commented 2 years ago

But should they be able to create identical name courses in the first place? I understand two DIFFERENT users wanting to have a course named Python

lakesare commented 2 years ago

I think when the user intends to create a course about Python they are likely to search for similar courses they created already. @iopq, did you have a situation where you accidentally created 2 courses with the same name and didn't notice?