-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protocol part of the federation authentication on FE2 #1838
Conversation
Pull reviewers statsStats of the last 30 days for popstellar:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, tho I did not have an exhaustive view of all the code. I mainly focused for now on stuff I can talk about, since I worked on it very recently! QR fragments (especially manual inputs) are getting reworked in this #1850.
About the QR part, I think you tests lack testing manual inputs ! Let's meet someday and talk about how I can help you adapt to the upcoming QR fragments changes 👍
fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/qrcode/QrScannerFragment.kt
Show resolved
Hide resolved
fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/qrcode/ScanningAction.kt
Show resolved
Hide resolved
…work-fe2-johan-federation
# Conflicts: # fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/qrcode/QrScannerFragment.kt # fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/qrcode/ScanningAction.kt
Hey @quadcopterman, everything seems to work fine after the merge. I adapted the QR part to fit the changes on master. I have setup manual inputs that may be wrong, just for you to see how it works and adapt it to your need! I also tried to pre-shot the strings resources you will need for that. Also, the json format I put in While testing it out, I saw that erroneous manual inputs (non-empty) are not handled correctly. They indeed pop a toas with Don't forget to write some tests for the QR Scanning and Manual inputs! 👍 |
Hey @Kaz-ookid, did you check that the app runs after your changes ? Because I still have the exact same problem I had when I tried to merge the code : the app keeps stopping when you run it. Maybe it's my Android Studio that has a problem... Just let me know if it was working for you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! But there are some mistakes in the application of the MVVM pattern
...d/app/src/main/java/com/github/dedis/popstellar/model/network/method/message/data/Objects.kt
Show resolved
Hide resolved
...n/java/com/github/dedis/popstellar/model/network/method/message/data/federation/Challenge.kt
Outdated
Show resolved
Hide resolved
...com/github/dedis/popstellar/model/network/method/message/data/federation/ChallengeRequest.kt
Outdated
Show resolved
Hide resolved
...com/github/dedis/popstellar/model/network/method/message/data/federation/FederationExpect.kt
Outdated
Show resolved
Hide resolved
.../src/main/java/com/github/dedis/popstellar/ui/lao/federation/LinkedOrganizationsViewModel.kt
Outdated
Show resolved
Hide resolved
...a/com/github/dedis/popstellar/model/network/method/message/data/federation/FederationInit.kt
Outdated
Show resolved
Hide resolved
...id/app/src/main/java/com/github/dedis/popstellar/repository/LinkedOrganizationsRepository.kt
Show resolved
Hide resolved
...p/src/main/java/com/github/dedis/popstellar/ui/lao/federation/LinkedOrganizationsFragment.kt
Outdated
Show resolved
Hide resolved
...main/java/com/github/dedis/popstellar/ui/lao/federation/LinkedOrganizationsInviteFragment.kt
Outdated
Show resolved
Hide resolved
...main/java/com/github/dedis/popstellar/ui/lao/federation/LinkedOrganizationsInviteFragment.kt
Outdated
Show resolved
Hide resolved
Also, please include screenshots/video captures in the PR description when there are major UI changes like this one |
...main/java/com/github/dedis/popstellar/ui/lao/federation/LinkedOrganizationsInviteFragment.kt
Outdated
Show resolved
Hide resolved
...main/java/com/github/dedis/popstellar/ui/lao/federation/LinkedOrganizationsInviteFragment.kt
Outdated
Show resolved
Hide resolved
Quality Gate passed for 'PoP - PoPCHA-Web-Client'Issues Measures |
Quality Gate passed for 'PoP - Be2-Scala'Issues Measures |
Quality Gate passed for 'PoP - Be1-Go'Issues Measures |
Quality Gate passed for 'PoP - Fe1-Web'Issues Measures |
Quality Gate passed for 'PoP - Fe2-Android'Issues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great job 😄
This PR will contain the messageData for the federation authentication. There are also small UI changes to the invite and join pages :