Replies: 9 comments 14 replies
-
jay-tux(Jay/Jonas) commented 1 hour ago Why don't we just pull all names from the db, then filter using toUpperCase and substring in the BE code itself? As far as I know, there has been no filtering code yet written. |
Beta Was this translation helpful? Give feedback.
-
Mouwrice commented 1 hour ago Since GitHub OAuth doesn't has the ability to get the firstname and lastname it seems easier to just remove the lastname field altogether and rewrite the code (which would be annoying be simple to do). And it will make the filter usage much more pleasant. |
Beta Was this translation helpful? Give feedback.
-
HuanYu-Tan commented 1 hour ago • I think that removing the lastname is the easiest solution. |
Beta Was this translation helpful? Give feedback.
-
BramDevlaminck(Bram Devlaminck) commented 1 hour ago There is another (very ugly) solution: we could also keep another field name that is just a joined version of firstname and lastname. but I don't think that this is something we want to do (duplicate data,...) |
Beta Was this translation helpful? Give feedback.
-
nbeteram commented 1 hour ago I think splitting the filters is also a good option. That way, the users have different options and if they need the first name for something, it is easy to get it. |
Beta Was this translation helpful? Give feedback.
-
KoenDesplenter commented 32 minutes ago First of all, where would this filter be used? |
Beta Was this translation helpful? Give feedback.
-
@Mouwrice For students there is indeed no issue with the current setup, we would be able to filter and sort on first name and last name. Plus, the users first name and lastname will never be shown seperately. So there is not really a need here for seperating the full name. |
Beta Was this translation helpful? Give feedback.
-
A quick summary of the solution, please correct me if I'm wrong |
Beta Was this translation helpful? Give feedback.
-
Do we all agree on this solution and should we rename the field |
Beta Was this translation helpful? Give feedback.
-
while trying to implement the filter for searching and sorting on the username I've encountered following problem.
We want to search and sort on name. however, we have this stored in 2 fields: firstname and lastname. Prisma doesn't allow us to search on these fields combined. The 2 solutions we have are:
Note: Moved #285 to this discussion.
Beta Was this translation helpful? Give feedback.
All reactions