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

OTT-136 Hierarchy report added with new flag #1812

Open
wants to merge 5 commits into
base: OTT-124-Differences-Report-Feature
Choose a base branch
from

Conversation

HWallenberg
Copy link
Contributor

Jira link

https://transformuk.atlassian.net/browse/OTT-136

What?

I have altered:

  • app/lib/reporting/differences/hierarchy.rb

Why?

I am doing this because:

  • The differences report requires a 'New' tab for issues that have occurred in the past 7 days.
image image

matching_uk_goods_nomenclature_for_comparison = uk_goods_nomenclature_ids_for_comparison[matching]
matching_xi_goods_nomenclature_for_comparison = xi_goods_nomenclature_ids_for_comparison[matching]

new_issue = matching_uk_goods_nomenclature_for_comparison.nil? || matching_xi_goods_nomenclature_for_comparison.nil? || matching_uk_goods_nomenclature_for_comparison['Hierarchy'] == matching_xi_goods_nomenclature_for_comparison['Hierarchy']
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
new_issue = matching_uk_goods_nomenclature_for_comparison.nil? || matching_xi_goods_nomenclature_for_comparison.nil? || matching_uk_goods_nomenclature_for_comparison['Hierarchy'] == matching_xi_goods_nomenclature_for_comparison['Hierarchy']
new_issue = matching_uk_goods_nomenclature_for_comparison.present? &&
matching_xi_goods_nomenclature_for_comparison.present? &&
matching_uk_goods_nomenclature_for_comparison['Hierarchy'] == matching_xi_goods_nomenclature_for_comparison['Hierarchy']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants