memcode icon indicating copy to clipboard operation
memcode copied to clipboard

Duplicate course name

Open CoderToCode opened this issue 4 years ago • 5 comments

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

  • The course name should always be unique.

CoderToCode avatar Apr 09 '20 21:04 CoderToCode

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 :-).

lakesare avatar Apr 09 '20 21:04 lakesare

@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?

anandvenkat4 avatar Apr 13 '20 15:04 anandvenkat4

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

lakesare avatar Apr 13 '20 20:04 lakesare

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

iopq avatar Aug 12 '22 01:08 iopq

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?

lakesare avatar Aug 12 '22 03:08 lakesare