memcode
memcode copied to clipboard
Duplicate course name
There are Multiple courses with the same name which belong to the same category. That too they are being created by the same user.
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.
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 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?
If the user has two courses named 'Python' they will easily notice that, and rename one of the courses.
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
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?