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 AccountSetup view ignoring all identity providers per section but one #81

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lukaskollmer
Copy link
Member

Fix AccountSetup view ignoring all identity providers per section but one

♻️ Current situation & Problem

Currently, the AccountSetupView groups the AccountService's IdentityProviders by their section, to determine their order.
As a result of this being implemented using a dictionary, with the providers as values, only the last provider per section is kept.
This means that, if an AccountService specifies multiple IdentityProviders for a section, most of them (all but one) will not be shown to the user.

⚙️ Release Notes

  • Fixed @IdentityProviders sometimes not being included in the AccountSetup view.

📚 Documentation

n/a

✅ Testing

n/a

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

@lukaskollmer lukaskollmer requested a review from Supereg December 9, 2024 22:57
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.91%. Comparing base (273bd00) to head (708d108).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
- Coverage   83.95%   83.91%   -0.03%     
==========================================
  Files         121      121              
  Lines        5256     5257       +1     
==========================================
- Hits         4412     4411       -1     
- Misses        844      846       +2     
Files with missing lines Coverage Δ
Sources/SpeziAccount/AccountSetup.swift 91.57% <100.00%> (+0.06%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 273bd00...708d108. Read the comment docs.

Copy link
Member

@Supereg Supereg 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, thanks for fixing this 🚀

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

Successfully merging this pull request may close these issues.

2 participants