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

Remove 'setVault' from ItemBuilder #31

Merged
merged 4 commits into from
Aug 11, 2021
Merged

Conversation

edif2008
Copy link
Member

@edif2008 edif2008 commented Aug 9, 2021

By removing setVault from ItemBuilder, the user will no longer be confused about whether the vault UUID should be provided when calling createItem. Also, this enables the user to create the same item in multiple vaults.

The `createItem` function has the wrong signature in the README example.
Remove `setVault` from ItemBuilder to enable creating the item in multiple vaults and eliminate confusion of the `itemCreate` signature. Also, the builder no longer enforces to have the vault set.
@edif2008 edif2008 requested a review from verkaufer August 9, 2021 17:36
@codecov-commenter
Copy link

Codecov Report

Merging #31 (ab5f4da) into main (acb6941) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
- Coverage   96.85%   96.80%   -0.06%     
==========================================
  Files          19       19              
  Lines         445      438       -7     
  Branches       57       55       -2     
==========================================
- Hits          431      424       -7     
  Misses         14       14              
Impacted Files Coverage Δ
src/lib/builders.ts 100.00% <ø> (ø)
src/lib/resources.ts 97.77% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acb6941...ab5f4da. Read the comment docs.

Copy link
Member

@verkaufer verkaufer left a comment

Choose a reason for hiding this comment

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

Minor comment about preserving backwards compatibility, otherwise this looks great!

__test__/itembuilder.test.ts Show resolved Hide resolved
src/lib/builders.ts Show resolved Hide resolved
@edif2008 edif2008 merged commit 859064b into main Aug 11, 2021
@edif2008 edif2008 deleted the builder-remove-set-vault branch September 8, 2021 14:46
@edif2008 edif2008 mentioned this pull request Sep 9, 2021
2 tasks
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.

None yet

3 participants