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

Fix target attributes value mismatch #122

Conversation

marciniwanicki
Copy link
Contributor

Issue number of the reported bug or feature request: #119

Describe your changes
SystemCapabilities attributes triggered value mismatch when the attributes where listed in different order.
Ordered both project and target attributes to ensure the comparison is not affected by the order of the attributes.

Testing performed

  • Ensure all CI checks pass
  • Inspect changes in snapshots files
  • Copy the same project with SystemCapabilities attributes, re-order manually attributes in one of the projects and do the diff, verify xcdiff does not report any differences

@marciniwanicki marciniwanicki changed the title #119: Fix target attributes value mismatch Fix target attributes value mismatch Jan 6, 2023
@marciniwanicki marciniwanicki force-pushed the mi/119-system-capabilities-ordering-issue branch 2 times, most recently from 1d5bb98 to e218696 Compare January 6, 2023 10:32
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Base: 96.69% // Head: 96.71% // Increases project coverage by +0.02% 🎉

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #122      +/-   ##
==========================================
+ Coverage   96.69%   96.71%   +0.02%     
==========================================
  Files          50       50              
  Lines        2750     2773      +23     
==========================================
+ Hits         2659     2682      +23     
  Misses         91       91              
Impacted Files Coverage Δ
...s/XCDiffCore/Comparator/AttributesComparator.swift 100.00% <100.00%> (ø)
Sources/XCDiffCore/Library/TargetsHelper.swift 94.83% <100.00%> (+0.62%) ⬆️

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.

@marciniwanicki marciniwanicki force-pushed the mi/119-system-capabilities-ordering-issue branch from e218696 to 9fcc1da Compare January 6, 2023 10:45
@marciniwanicki marciniwanicki marked this pull request as ready for review January 6, 2023 13:38
SystemCapabilities attributes triggered value mismatch when the attributes where listed in different order.
Ordered both project and target attributes to ensure the comparison is not affected by the order of the attributes.

Test Plan:
- Ensure all CI checks pass
- Inspect changes in snapshots files
- Copy the same project with SystemCapabilities attributes, re-order manually attributes in one of the projects and do the diff, verify xcdiff does not report any differences

Signed-off-by: Marcin Iwanicki <miwanicki1@bloomberg.net>
Copy link
Contributor

@kwridan kwridan left a comment

Choose a reason for hiding this comment

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

Thanks @marciniwanicki

Tested locally and modified by modifying the attributes and their order 👍

@marciniwanicki marciniwanicki merged commit c055f68 into bloomberg:main Jan 9, 2023
@marciniwanicki marciniwanicki deleted the mi/119-system-capabilities-ordering-issue branch January 9, 2023 09:29
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