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

[PM-11437] 1Password 1pux importer updates and fixes #10778

Merged
merged 6 commits into from
Oct 7, 2024

Conversation

djsmith85
Copy link
Contributor

@djsmith85 djsmith85 commented Aug 28, 2024

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-11437

📔 Objective

Looking at a recent export of 1Password's 1Pux, there seems to be some changes within the format.

This aims to add any missing fields to the types but also fix any import issues.

The majority of the changes are updating the test-files

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 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

The new field state contains either 'active' or 'archived'

Adjust all the test files to have the new field

Add unit test to verify skipping archived items on import

Fix importer
No mapping currently necessary
Removing it from the 1pux-importer-types

Updating all the test files
@djsmith85 djsmith85 marked this pull request as ready for review August 28, 2024 21:01
@djsmith85 djsmith85 requested a review from a team as a code owner August 28, 2024 21:01
Copy link
Contributor

github-actions bot commented Aug 28, 2024

Logo
Checkmarx One – Scan Summary & Details1a85aec8-c0b9-4be2-8dc5-44773d0c9486

No New Or Fixed Issues Found

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.22%. Comparing base (3059662) to head (9a9d943).
Report is 61 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10778      +/-   ##
==========================================
- Coverage   33.23%   33.22%   -0.01%     
==========================================
  Files        2730     2730              
  Lines       85257    85257              
  Branches    16221    16221              
==========================================
- Hits        28333    28326       -7     
- Misses      54668    54675       +7     
  Partials     2256     2256              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -153,6 +153,8 @@ export interface Overview {
pbe?: number | null;
pgrng?: boolean | null;
tags?: string[] | null;
icons?: string | null;
watchtowerExclusions?: string | null;
Copy link
Member

Choose a reason for hiding this comment

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

🌱 We might want to consider whether this data should be retained for use by our reports.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea. Yes, we'll need to see what kind of values are stored there and see if we could use any of them

@djsmith85 djsmith85 merged commit e47415f into main Oct 7, 2024
66 checks passed
@djsmith85 djsmith85 deleted the tools/PM-11437/1pux-importer-updates-and-fixes branch October 7, 2024 17:12
djsmith85 added a commit that referenced this pull request Oct 7, 2024
* Replaced field trashed with state

The new field state contains either 'active' or 'archived'

Adjust all the test files to have the new field

Add unit test to verify skipping archived items on import

Fix importer

* Add addtional fields to 1pux importer types

No mapping currently necessary

* Field indexAtSource was deprecated

Removing it from the 1pux-importer-types

Updating all the test files

* Removed remaining instances of indexAtSource

* Fixed a leftover instance of trashed -> state

---------

Co-authored-by: Daniel James Smith <[email protected]>
(cherry picked from commit e47415f)
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.

2 participants