-
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
Sending Sorted Attendees List and Validation for CloseRollCall #1906
Conversation
…erifying list is sorted when displaying (organizer or attendee) + keeping order of attendees list as received
Pull reviewers statsStats of the last 30 days for popstellar:
|
…r de-anonymization toast + other things
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.
Really good job! Just few comments
...roid/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallFragment.kt
Outdated
Show resolved
Hide resolved
...ndroid/app/src/main/java/com/github/dedis/popstellar/utility/handler/data/RollCallHandler.kt
Outdated
Show resolved
Hide resolved
rollCallRepo.updateRollCall(LAO_ID, ROLL_CALL_UNSORTED_ATTENDEES) | ||
rollCallRepo.updateRollCall(LAO_ID, closeRollCall(ROLL_CALL_UNSORTED_ATTENDEES)) | ||
InstrumentationRegistry.getInstrumentation().waitForIdleSync() | ||
openRollCallWithDescription(ROLL_CALL_UNSORTED_ATTENDEES) |
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.
I think that this call here may actually be useless, it should be sufficient to update the repository (as long as you modify the roll call that is currently set in the fragment)
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.
I am not sure, tests do not pass the rollCallListAttendees visibility part if I don't put this line
…-list' into work-fe2-maxime-sorted-attendees-list # Conflicts: # fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallArrayAdapter.kt # fe2-android/app/src/main/java/com/github/dedis/popstellar/ui/lao/event/rollcall/RollCallFragment.kt
Quality Gate passed for 'PoP - Be2-Scala'Issues Measures |
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 - 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 now!
Summary
Addressing issue #1847. FE2 Organizers were sending unordered list of scanned attendees for a
RollCall
, enhancing risks of de-anonymization.Main Changes
HashSet
toLinkedHashSet
(inRollCall
scope) to keep the set ordered as it came inOther Changes
I added checking for ordered attendees list at creation, so I also added full validation of message data while I was here.
UI Updates