Remove Developer, Date and Time...
Posted by gregor.wolf on 2013-08-28 18:05
Dear SAPlink Project Members, I think abut a bigger change in the SAPlink format. Currently the Meta Data attributes of a ABAP Development object are always exported completely to the Linkee or Nugget. So i.e. the Slinkee for a Program always contains the username of the initial creator, the creation date and also change date. As this changes most of the time an export is done, it clutters the display of the diff between two files. There is a central place where the structures are translated into XML Attributes. It is the method SETATTRIBUTESFROMSTRUCTURE of the central class ZSAPLINK. I've added the following lines to the method after thesValue = '$TMP'. statement: " Developer, Date and Time Metadata has to be removed to
" not clutter diffs
"
" Meta Attributes for DDIC Types
when 'AS4USER'.
clear sValue.
when 'AS4DATE'.
clear sValue.
when 'AS4TIME'.
clear sValue.
" Meta Attributes for PROG
when 'CNAM'.
clear sValue.
when 'CDAT'.
clear sValue.
when 'UNAM'.
clear sValue.
when 'UDAT'.
clear sValue.
when 'VERN'.
clear sValue.
when 'SDATE'.
clear sValue.
when 'STIME'.
clear sValue.
when 'IDATE'.
clear sValue.
when 'ITIME'.
clear sValue.
" Meta Attributes for CLAS
when 'AUTHOR'.
clear sValue.
when 'CREATEDON'.
clear sValue.
when 'CHANGEDBY'.
clear sValue.
when 'CHANGEDON'.
clear sValue.
when 'CHANGEDON'.
clear sValue.
It might be a better idea to move that to the specific plugin, but for the moment it seems to work well for me. The exported Slinkees do only contain the real changes to the code. So when a diff is executed on two versions, then only the changed lines of code are recognized. Please let me know what you think about this change. I would be happy if you also could try this in your system and report errors. Best regardsGregor
" not clutter diffs
"
" Meta Attributes for DDIC Types
when 'AS4USER'.
clear sValue.
when 'AS4DATE'.
clear sValue.
when 'AS4TIME'.
clear sValue.
" Meta Attributes for PROG
when 'CNAM'.
clear sValue.
when 'CDAT'.
clear sValue.
when 'UNAM'.
clear sValue.
when 'UDAT'.
clear sValue.
when 'VERN'.
clear sValue.
when 'SDATE'.
clear sValue.
when 'STIME'.
clear sValue.
when 'IDATE'.
clear sValue.
when 'ITIME'.
clear sValue.
" Meta Attributes for CLAS
when 'AUTHOR'.
clear sValue.
when 'CREATEDON'.
clear sValue.
when 'CHANGEDBY'.
clear sValue.
when 'CHANGEDON'.
clear sValue.
when 'CHANGEDON'.
clear sValue.
It might be a better idea to move that to the specific plugin, but for the moment it seems to work well for me. The exported Slinkees do only contain the real changes to the code. So when a diff is executed on two versions, then only the changed lines of code are recognized. Please let me know what you think about this change. I would be happy if you also could try this in your system and report errors. Best regardsGregor
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Saplink is powered by Assembla.
3 Comments
By gregor.wolf on 2013-08-28 18:05
By Anonymous on 2013-08-28 18:05
By gregor.wolf on 2013-08-28 18:05