Monday, November 14, 2011

Ignore IDs During Code Compare

If any of you have done a code compare, comparing one XPO to the matching objects within the AOT, you may have noticed that in most cases the ID values of various nodes/sub-nodes don't match.  This is only partially correct, the node itself may match identically except the ID property, which doesn't cause a change in functionality anyways.  This annoyingly forces you to click through each item to verify that each node IS in fact identical.  I have developed a solution, an option to ignore these ID properties as a checkbox in the Advanced tab of the Compare form.

Let's take the Address table for example.  If we have an XPO that includes the Address table and we attempt to compare it with the object in the AOT, we will see "differences" like this:


As we can see, it shows a difference in every single field and index on the table.  What happens is when an object is exported to an XPO, it does not retain the ID values as they really don't change how it functions.  When importing from an XPO and comparing, the IDs in the XPO default to 0, thus showing the difference.

Normally this isn't a bad thing, but it gives you the feeling that there are truly differences that change the functionality.  It becomes a pain to filter through each node and double check each to see the real differences.  More often than one would think, a real difference slips by unnoticed because of the mass amount of false positives in changes, thus promoting code to Production without truly meaning to.

I proposed a solution to add an option to the SysCompareForm to ignore ID properties (as shown below).


By default, I have the checkbox checked to ignore the IDs, you may choose to change that as needed per your business's requirements.  The screenshot below shows how tidy it looks after ignoring the ID properties.



DOWNLOAD XPO HERE and Enjoy!

Bug Reported (2/27/2012): Ineffective towards EDTs and Enums, still shows the comparison.

7 comments:

  1. Thank you so much for this nice information. Hope so many people will get aware of this and useful as well. And please keep update like this.

    Text Analytics Tool

    Data Analytics Solutions

    ReplyDelete


  2. شركة نقل اثاث بالرياض 0500091013 ارخص شركة نقل عفش – إدارة سعودية
    شركة نقل اثاث بالرياض رخيصة شركتنا من أوائل الشركات
    في الرياض نحن من أعرق وأقدم الشركات الرائدة ي مجال نقل الاثاث
    نقل اثاث بالرياض
    عند التفكير ف الانتقال لمنزل جديد او مكان آخر
    نفكر بطريقة نقل الاثاث وقد يؤدى بنا التفكير إلى الغاء الفكره تماما ولكن من الان لا تقلق تعامل مع شركتنا
    لديها الخبره الكافيه حتى لا تقوم بتتضيع وقتك ونقودك والحصول على خدمة رديئه وبعد وقت طويل
    فشركتنا توفر لكم الخدمه بأعلى مستوى واعلى التقنيات بأقل الاسعار فهدف الشركة ليس الربح المادي
    بل هدفنا هو الوصول لكل من يحتاج الخدمه سواء غني او فقير
    شركة تخزين عفش بالرياض

    شركة نقل اثاث بالرياض لجميع الجهات تسعى دائماً لتقديم كل ما هو أفضل لعملائنا الكرام ،حيث نسعى دائماً للبحث عن أفضل التكنولوجبا المستخدمه حديثاً فى مجال تخزين العفش فى أسرع وقت وبطريقة آمنة وبأقل التكاليف ، شركة نقل اثاث بالرياض لجميع الجهات تقدم لعملائها الخدمة الشاملة فى تخزين الاثاث والتى تتضمن كل شئ من فك الاثاث وتغليفه، ونقلة وتخزينه، فتسعى شركتنا دائماً لتقديم كل ماهو متطور وآمن للحفاظ على راحتكم وتقديم الافضل لعملائنا.
    نقل اثاث بالرياض
    [URL=https://elawaeil.com/%D8%B4%D8%B1%D9%83%D8%A9-%D9%86%D9%82%D9%84-%D8%A3%D8%AB%D8%A7%D8%AB-%D8%A8%D8%A7%D9%84%D8%B1%D9%8A%D8%A7%D8%B6-%D8%B9%D9%85%D8%A7%D9%84%D8%A9-%D9%81%D9%84%D8%A8%D9

    ReplyDelete
  3. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
    event management companies in chennai
    top event management companies in chennai

    ReplyDelete