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

fix: max accounts handling not respected (WPB-4818) #2257

Merged
merged 6 commits into from
Sep 22, 2023

Conversation

yamilmedina
Copy link
Contributor

@yamilmedina yamilmedina commented Sep 22, 2023


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Some code were removed/adjusted and now we are not handling max account check on add "new account" self profile.

Causes (Optional)

We can add infinte? accounts.

Solutions

  • Check for max accounts when trying to login, as a safety mechanism taking into consideration the Build flag.
  • Create a proper state object for WelcomeScreen, so we handle them unified as in the rest of the project

Notes (Optional)

Moving forward and not for now, since this is critical for release.

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Attachments (Optional)

Screen.Recording.2023-09-22.at.12.42.40.mov

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@yamilmedina yamilmedina requested review from saleniuk, Garzas, a team, typfel, gongracr and trOnk12 and removed request for a team September 22, 2023 09:39
@yamilmedina yamilmedina requested review from ohassine and alexandreferris and removed request for trOnk12 September 22, 2023 09:46
@github-actions
Copy link
Contributor

Test Results

587 tests   586 ✔️  7m 6s ⏱️
  84 suites      1 💤
  84 files        0

Results for commit 982920d.

@github-actions
Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

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

Great catch!

I just have one comment that goes by more of a concern if it is possible to break it 🤔

@AndroidBob
Copy link
Collaborator

Build 903 succeeded.

The build produced the following APK's:

Copy link
Contributor

@gongracr gongracr left a comment

Choose a reason for hiding this comment

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

Good catch 🔍 It would be also great to add some automated/integrated tests for this to make sure this doesn't slip away again. GJ 💪 🍓

@yamilmedina yamilmedina enabled auto-merge (squash) September 22, 2023 10:40
Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

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

👌🏻

@yamilmedina yamilmedina merged commit df8a028 into release/candidate Sep 22, 2023
9 of 10 checks passed
@yamilmedina yamilmedina deleted the fix/max-accounts-handling branch September 22, 2023 10:52
@github-actions
Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 905 succeeded.

The build produced the following APK's:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants