Repository navigation
[PM-45328] Export empty custom field values as empty strings in CSV exports - #23970
Conversation
Signed-off-by: Sebastian Turner <sebastiant3484@gmail.com>
|
|
|
Thank you for your contribution! We've added this to our internal Community PR board for review. Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process. |
|
Hi @sebxt thanks for your first contribution! Before exploring your pull request, I wanted to point out that our Contributor License Agreement must be signed before we are able to accept any contribution. Please tag me here if you have any questions or encounter any difficulties. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #23970 +/- ##
=======================================
Coverage 61.35% 61.35%
=======================================
Files 4883 4883
Lines 157340 157340
Branches 25201 25201
=======================================
+ Hits 96529 96533 +4
+ Misses 54190 54186 -4
Partials 6621 6621 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Thanks again for your contribution, @sebxt . I've reviewed these changes and have sent them to QA for detailed testing. I'll reach out here if any questions arise. |
|
@sebxt your contribution has been merged! Thank you for taking the time to improve our product. |
Tracking
https://bitwarden.atlassian.net/browse/PM-45328
https://bitwarden.atlassian.net/browse/PM-45327
Fixes CSV exports writing
null/undefinedfor custom fields without a value (no existing issue found).Objective
BaseVaultExportService.buildCommonCipherbuilds the CSVfieldscolumn withname + ": " + f.value. For fields without a value, such as linked fields or empty text and hidden fields, this writes the literal textnullorundefined. Re-importing the file creates text fields with those strings as values.This change falls back to an empty string for the value, the same way the name already does. The Bitwarden CSV importer reads
Name:back as a field with no value, so export and import now round trip.Added a test in
individual-vault-export.service.spec.tscovering a text field with a value, an empty text field and a linked field in a CSV export.Fixes #23969