-
-
Notifications
You must be signed in to change notification settings - Fork 43
User Details don't always match the exact user #121
Comments
I would like to contribute on this project. Could you please help picking the first issue to resolve. |
@arisun if you want you can take a look at this very issue. The reason we haven't gotten around to it is that it will take a bit of reverse engineering of the TumOnline API. The reason this happens is we search for a user with the exact name of the logged in user and show their details. This obviously leads to conflicts, because you guessed it 2 people can have the same name. Option 1: see if we can get a hold on the LRZ ids of the search results and only match the ones with the exact same LRZ Id as the logged in user. Instead of blindly taking the first one. The relevant files are: https://github.com/TCA-Team/iOS/blob/master/TUM%20Campus%20App/UserDataManager.swift |
@mathiasquintero do you have any mock data (LRZ ID) for login, so I can check. |
Unfortunately there are no test users. But alumnis can still login into tumonline and use the app |
@mathiasquintero is there any solution for this. We are getting many support tickets mentioning this issue, which does not really seem that problematic to me to resolve it? Or is it? |
@kordianbruck Ok. Do you know exactly what Android is doing in this use case. Or are they having the same issue as well? Since the data that we get from searching is not enough to pin down which user we want we might need a |
@pfent ? |
Ah, thanks for pinging me, I could had clearified this much earlier. I think for the exact name you can just use the To get the person details, we search for the person like you do, but only if we get a unique match, we actually display the picture of the user. @xsrf @kordianbruck a TUMonline endpoint to get the own |
Ok. For now I just won't set any attribute other than the name if there's more than one result. |
See Ticket #880490
So far we get the user details by a search with the exact name and filter the list a bit afaik. Perhaps tinker with the filtering a bit or try to fetch it from the LRZ id.
The text was updated successfully, but these errors were encountered: