Skip to content
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

Merged
merged 26 commits into from
May 29, 2024

Conversation

quadcopterman
Copy link
Contributor

@quadcopterman quadcopterman commented May 1, 2024

This PR will contain the messageData for the federation authentication. There are also small UI changes to the invite and join pages :
image
image

Copy link

github-actions bot commented May 1, 2024

Pull reviewers stats

Stats of the last 30 days for popstellar:

User Total reviews Time to review Total comments
K1li4nL
🥇
6
▀▀
4d 22h 16m
25
▀▀▀▀
matteosz
🥈
5
▀▀
5d 4h 55m
9
▀▀
arnauds5
🥉
3
18h 51m
4
onsriahi14
3
2d 14h 7m
1
t1b00
2
7d 16h 20m
4
MariemBaccari
2
22h 56m
0
ljankoschek
2
18m
0
simone-kalbermatter
2
1d 14h 29m
2
quadcopterman
2
12d 2h 43m
▀▀
1
Tyratox
1
4d 1h 48m
3
1florentin
1
2h 20m
0
sgueissa
1
25m
0
DanielTavaresA
1
3d 22h 24m
2
Kaz-ookid
1
15d 41m
▀▀▀
5
⚡️ Pull request stats

Base automatically changed from work-federation-protocol to master May 13, 2024 11:48
Copy link
Contributor

@Kaz-ookid Kaz-ookid left a 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 👍

quadcopterman and others added 5 commits May 15, 2024 15:26
# 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
@Kaz-ookid
Copy link
Contributor

Kaz-ookid commented May 16, 2024

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 jsonFormatter attribute of the ScanningActions are most likely wrong, I'll let you fill those with the correct formats!

While testing it out, I saw that erroneous manual inputs (non-empty) are not handled correctly. They indeed pop a toas with qr_code_not_federation_details stringres, but it still lets you get to the next stage of Organizations linking.

Don't forget to write some tests for the QR Scanning and Manual inputs! 👍

@quadcopterman
Copy link
Contributor Author

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 jsonFormatter attribute of the ScanningActions are most likely wrong, I'll let you fill those with the correct formats!

While testing it out, I saw that erroneous manual inputs (non-empty) are not handled correctly. They indeed pop a toas with qr_code_not_federation_details stringres, but it still lets you get to the next stage of Organizations linking.

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

@quadcopterman quadcopterman marked this pull request as ready for review May 22, 2024 21:31
@quadcopterman quadcopterman requested a review from a team as a code owner May 22, 2024 21:31
Copy link
Contributor

@matteosz matteosz left a 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

@matteosz
Copy link
Contributor

Also, please include screenshots/video captures in the PR description when there are major UI changes like this one

Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed for 'PoP - PoPCHA-Web-Client'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed for 'PoP - Be2-Scala'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed for 'PoP - Be1-Go'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed for 'PoP - Fe1-Web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented May 29, 2024

Copy link
Contributor

@matteosz matteosz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Great job 😄

@matteosz matteosz dismissed Kaz-ookid’s stale review May 29, 2024 13:33

comments addressed

@matteosz matteosz added this pull request to the merge queue May 29, 2024
Merged via the queue into master with commit eea305d May 29, 2024
18 checks passed
@matteosz matteosz deleted the work-fe2-johan-federation branch May 29, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants