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

Adding shouldFieldBePreserved function #736

Closed
wants to merge 2 commits into from

Conversation

willvedd
Copy link
Contributor

@willvedd willvedd commented Feb 9, 2023

🔧 Changes

The first part of many to implement a fix for #328. At the most basic level, we need to identify which fields to preserve before can actually preserve them.

This function doesn't serve much function in its current form, but it will be used by higher-order functions to compose the keyword preservation functionality.

This PR starts to lay the foundation for the keyword preservation code in both the keywordPreservation.ts file as well as the accompanying test file.

📚 References

Related Issues:

🔬 Testing

Many unit tests included to cover a wide-range of situations.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@willvedd willvedd requested a review from a team as a code owner February 9, 2023 22:26
@willvedd willvedd enabled auto-merge (squash) February 9, 2023 22:30
@codecov-commenter
Copy link

Codecov Report

Base: 83.60% // Head: 83.65% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (7c95016) compared to base (e750263).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #736      +/-   ##
==========================================
+ Coverage   83.60%   83.65%   +0.04%     
==========================================
  Files         114      115       +1     
  Lines        3379     3389      +10     
  Branches      628      629       +1     
==========================================
+ Hits         2825     2835      +10     
  Misses        324      324              
  Partials      230      230              
Impacted Files Coverage Δ
src/keywordPreservation.ts 100.00% <100.00%> (ø)
src/tools/utils.ts 95.83% <100.00%> (+0.14%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@willvedd willvedd closed this Feb 10, 2023
auto-merge was automatically disabled February 10, 2023 12:26

Pull request was closed

@willvedd willvedd deleted the DXCDT-372-preserve-keywords-traverse-assets branch February 10, 2023 12:26
@willvedd
Copy link
Contributor Author

Closed because wrong Jira ticket number associated with branch name. Reopened with #738.

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