Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Kamila/remove handle #202

Merged
merged 6 commits into from
Apr 25, 2022
Merged

Kamila/remove handle #202

merged 6 commits into from
Apr 25, 2022

Conversation

kamilababayeva
Copy link
Collaborator

This PR removes user's handle from the code. Handle has the same meaning as username, so it is useless to have both entities. For later, we can enforce to have only username which will be unique.

We have decided to remove handle from the user since it has the same meaning as the username. For uniqueness we use ID from the Firebase
@kamilababayeva kamilababayeva self-assigned this Apr 25, 2022
Copy link
Owner

@MaximeZmt MaximeZmt left a comment

Choose a reason for hiding this comment

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

👍

@jiabaow jiabaow self-requested a review April 25, 2022 17:27
Copy link
Collaborator

@jiabaow jiabaow left a comment

Choose a reason for hiding this comment

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

Thanks for removing the duplicate element!
I left a question that is not very clear to me.

app/src/main/java/ch/sdp/vibester/model/UserSharedPref.kt Outdated Show resolved Hide resolved
@@ -48,16 +48,4 @@ class ScoreBoardActivityTest {
)
}
}

@Test
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this test is removed? Does it relate to handle?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The order of the users in the firebase is not deterministic. We have been deleting/adding users, so the user positions always change. I believe the removal of the test will not decrease any coverage of your changes

Copy link
Collaborator

@jiabaow jiabaow left a comment

Choose a reason for hiding this comment

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

👍

@codeclimate
Copy link

codeclimate bot commented Apr 25, 2022

Code Climate has analyzed commit 842e7a1 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 50.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 87.3%.

View more on Code Climate.

@kamilababayeva kamilababayeva merged commit e7c2687 into main Apr 25, 2022
@kamilababayeva kamilababayeva deleted the kamila/remove_handle branch April 25, 2022 19:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants