server icon indicating copy to clipboard operation
server copied to clipboard

[PM-5551] Removing Autofill v2 and AutofillOverlay Feature Flags

Open cagonzalezcs opened this issue 1 year ago • 9 comments
trafficstars

Type of change

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

Objective

This ticket removes the autofill v2 and autofill overlay feature flags to have these features be set by default. These changes also ensure that self-hosted Bitwarden servers have access to these features.

Code changes

  • src/Core/Constants.cs: Removing the AutofillV2 and AutofillOverlay feature flags

cagonzalezcs avatar Jan 22 '24 15:01 cagonzalezcs

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 36.19%. Comparing base (ffdf14c) to head (c26e2ce).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3692   +/-   ##
=======================================
  Coverage   36.19%   36.19%           
=======================================
  Files        1158     1158           
  Lines       56108    56108           
  Branches     5385     5385           
=======================================
  Hits        20307    20307           
- Misses      34855    34856    +1     
+ Partials      946      945    -1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 22 '24 16:01 codecov[bot]

Logo Checkmarx One – Scan Summary & Details5ecb5e39-ed49-4c68-b83d-27cd405b28af

No New Or Fixed Issues Found

bitwarden-bot avatar Jan 22 '24 16:01 bitwarden-bot

LaunchDarkly flag references

:x: 2 flags removed

Name Key Aliases found Info
Autofill Overlay autofill-overlay :white_check_mark: all references removed
Autofill V2 autofill-v2 :white_check_mark: all references removed

github-actions[bot] avatar Feb 01 '24 16:02 github-actions[bot]

Note to reviewers: These feature flags are obsolete now, as their usage within the extension has been removed entirely as of the v2024.2.0 release. This PR just cleans up those flags entirely.

cagonzalezcs avatar Feb 01 '24 16:02 cagonzalezcs

How long has this been out of the client code? We have to be sensitive to adoption, because if this releases server-side then a not-updated client will default to not getting the functionality. If that's an acceptable risk and timeline then we can merge.

withinfocus avatar Feb 01 '24 19:02 withinfocus

@withinfocus

The client side removal of the feature flag will be introduced with the upcoming release, v2024.2.0. The removal of this flag is present here - https://github.com/bitwarden/clients/pull/7642

I can definitely hold off on merging this work in after we introduce that version of the extension, if that makes sense to do. However, since rc was cut earlier this week, the changes in this PR should be releasing approximately 2 weeks after we release the client side changes.

cagonzalezcs avatar Feb 01 '24 20:02 cagonzalezcs

I'd wait one more release cut to give the clients time to propagate.

withinfocus avatar Feb 01 '24 20:02 withinfocus

I'd wait one more release cut to give the clients time to propagate.

@withinfocus any concern with our 3-release backward compatibility on clients here? Should we wait 3 client releases before we remove the flag altogether? Or is it OK to go sooner since this is only in the browser and it's difficult (impossible?) to be running an old version in normal usage.

trmartin4 avatar Feb 03 '24 23:02 trmartin4

I think it's fine to go sooner, and the removal of flags isn't bound to the same compatibility rules as a feature itself e.g. a breaking change.

withinfocus avatar Feb 05 '24 14:02 withinfocus

@withinfocus @trmartin4

Are we in a good position to merge this change in? Just looking to clear the Jira ticket for this task.

cagonzalezcs avatar Mar 12 '24 16:03 cagonzalezcs

Especially since an RC just cut, yes I am in support.

withinfocus avatar Mar 12 '24 16:03 withinfocus

Fantastic thank you Matt! As soon as an approval is provided, I'll make sure this gets merged in.

cagonzalezcs avatar Mar 13 '24 22:03 cagonzalezcs