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

[PS-2363] fix bumping AccountRevisionDate when creating and updating ciphers #2634

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

M1cha
Copy link
Contributor

@M1cha M1cha commented Jan 26, 2023

When the user is not part of an organization,
UserBumpAccountRevisionDateByCipherIdQuery doesn't work. In that case we have to use UserBumpAccountRevisionDateAsync instead.

This was already done by most parts of the code but a few more were missing.

Type of change

- [X] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other

Objective

Fixes #2615

@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PS-2363

@bitwarden-bot bitwarden-bot changed the title fix bumping AccountRevisionDate when creating and updating ciphers [PS-2363] fix bumping AccountRevisionDate when creating and updating ciphers Jan 26, 2023
@justindbaur justindbaur self-requested a review January 30, 2023 16:16
Copy link
Member

@justindbaur justindbaur left a comment

Choose a reason for hiding this comment

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

Very good catch, I think it's worth making a couple more changes to hopefully make this mistake harder to make in the future.

When the user is not part of an organization,
`UserBumpAccountRevisionDateByCipherIdQuery` doesn't work. In that case
we have to use `UserBumpAccountRevisionDateAsync` instead.

This was already done by most parts of the code but a few more were
missing.

Fixes bitwarden#2615
@M1cha
Copy link
Contributor Author

M1cha commented Feb 2, 2023

@justindbaur Thanks for the review. I've addressed all of your suggestions.

@justindbaur
Copy link
Member

Ran the code through CI manually here & here and it looks great, so I am going to merge this. Thank you so much for the fix!

@justindbaur justindbaur self-requested a review February 2, 2023 14:31
@justindbaur justindbaur merged commit e019f01 into bitwarden:master Feb 2, 2023
@M1cha M1cha deleted the bump-account-rev branch February 2, 2023 14:46
M1cha added a commit to M1cha/homeserver that referenced this pull request Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

account revision date not bumped with EntityFramework DBs
3 participants