-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Ac/ac 2646/remove fc mvp code #4281
base: main
Are you sure you want to change the base?
Conversation
โฆ of double enumeration warnings, refs AC-2646
New Issues
Fixed Issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few code review comments, I have also fixed various tests here: #4467
@@ -20,9 +20,12 @@ namespace Bit.Core.Test.AdminConsole.OrganizationFeatures.Groups; | |||
[SutProviderCustomize] | |||
public class CreateGroupCommandTests | |||
{ | |||
[Theory, OrganizationCustomize(UseGroups = true, FlexibleCollections = false), BitAutoData] | |||
[Theory, OrganizationCustomize(UseGroups = true, FlexibleCollections = true), BitAutoData] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FlexibleCollections
should actually default to false
, as the goal of these changes is to enable us to drop the FlexibleCollections
column; the new FC code should be executed for all organizations. Best to remove it from here altogether.
[Theory, OrganizationCustomize(UseGroups = true, FlexibleCollections = true), BitAutoData] | |
[Theory, OrganizationCustomize(UseGroups = true), BitAutoData] |
Same for all other uses of this customization.
await sutProvider.GetDependency<IReferenceEventService>().Received(1).RaiseEventAsync( | ||
Arg.Is<ReferenceEvent>(e => e.Type == ReferenceEventType.VaultImported)); | ||
} | ||
|
||
[Theory, BitAutoData] | ||
public async Task ImportCiphersAsync_IntoOrganization_WithFlexibleCollectionsEnabled_Success( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove references to FC being enabled/disabled:
public async Task ImportCiphersAsync_IntoOrganization_WithFlexibleCollectionsEnabled_Success( | |
public async Task ImportCiphersAsync_IntoOrganization_Success( |
Please check all other tests to see if there are any other tests that need to be renamed or deleted. (e.g. if there are tests for with & without FC enabled, they'll now both be running the same code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WithFlexibleCollectionsEnabled
WithFlexibleCollections
FlexibleCollectionsDisabled
WithoutFlexibleCollections
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4281 +/- ##
==========================================
- Coverage 41.20% 41.17% -0.03%
==========================================
Files 1265 1265
Lines 60333 60295 -38
Branches 5516 5510 -6
==========================================
- Hits 24861 24829 -32
+ Misses 34325 34314 -11
- Partials 1147 1152 +5 โ View full report in Codecov by Sentry. |
๐๏ธ Tracking
๐ Objective
๐ธ Screenshots
โฐ Reminders before review
๐ฆฎ Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or โน๏ธ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or ๐ญ (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or โป๏ธ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes