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

do not remove shared users #45

Merged
merged 1 commit into from
Apr 6, 2022
Merged

do not remove shared users #45

merged 1 commit into from
Apr 6, 2022

Conversation

particledecay
Copy link
Owner

What? (description)

Only remove AuthInfos if they don't appear in any other Context.

Why? (reasoning)

AuthInfo users that were being shared by other Contexts would still be
removed if a Context was removed that was using it. This fixes that
behavior by only removing an AuthInfo if no other Contexts are currently
using it.

GitHub Issue (if applicable)

[closes #44]

Acceptance

Check your PR for the following:

  • you included tests
  • you linted your code
  • your PR has only one commit (interactive rebase!)
  • your commit message follows Conventional Commit format
  • you are not reducing the total test coverage

@particledecay particledecay force-pushed the bug_rm_shared_user branch 4 times, most recently from f2c93be to a6804cc Compare April 6, 2022 05:00
AuthInfo users that were being shared by other contexts would still be
removed if a context was removed that was using it. This fixes that
behavior by only removing an AuthInfo if no other contexts are currently
using it.
@codeclimate
Copy link

codeclimate bot commented Apr 6, 2022

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

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

This pull request will bring the total coverage in the repository to 73.5% (0.4% change).

View more on Code Climate.

@particledecay particledecay merged commit 2eb6cac into main Apr 6, 2022
@particledecay particledecay deleted the bug_rm_shared_user branch April 6, 2022 05:08
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.

Removing a context with a shared resource removes that shared resource
1 participant