- Posts: 189
- Thank you received: 9
Easily Listing all Script Objects in a Project : PCI and Code Review / Source Code
- daniel.fung@xerox.com
- Topic Author
- Offline
- Elite Member
-
Less
More
7 years 11 months ago #13916
by daniel.fung@xerox.com
Easily Listing all Script Objects in a Project : PCI and Code Review / Source Code was created by daniel.fung@xerox.com
Part of our PCI requirements, require us to "review" all custom codes written in ETL, this includes all code written in the Script Component as well as any SQL scripts
the process of gathering all snippets of code written in many many SCRIPT components, saving them with the original Script or SQL script component name is really tedious. And this is not a one time activity, every time a Script/SQL Script is changed, the script must undergo a new review before the entire project can be approved for production release.
is there an easy way to list out the Script and SQL Script components any of the following
1. a query at least 2 columns , the script name and the script content
2. a set of text files, 1 for each script object, containing the contents of the script.
is there any way to easily decode the OBJECT_DATA<N> columns in the OBJECTS table in the REPO>
the added complication of the review is that the script code/sql script code must be compared with the previous version. I dont envision doing this repeatedly in ETL but instead in our source code control system that we current use to manage our SDLC.
the process of gathering all snippets of code written in many many SCRIPT components, saving them with the original Script or SQL script component name is really tedious. And this is not a one time activity, every time a Script/SQL Script is changed, the script must undergo a new review before the entire project can be approved for production release.
is there an easy way to list out the Script and SQL Script components any of the following
1. a query at least 2 columns , the script name and the script content
2. a set of text files, 1 for each script object, containing the contents of the script.
is there any way to easily decode the OBJECT_DATA<N> columns in the OBJECTS table in the REPO>
the added complication of the review is that the script code/sql script code must be compared with the previous version. I dont envision doing this repeatedly in ETL but instead in our source code control system that we current use to manage our SDLC.
Please Log in or Create an account to join the conversation.
- Peter.Jonson
-
- Offline
- Platinum Member
-
7 years 11 months ago #13917
by Peter.Jonson
Peter Jonson
ETL Developer
Replied by Peter.Jonson on topic Easily Listing all Script Objects in a Project : PCI and Code Review / Source Code
By Script, do you mean Script Action within the package?
Peter Jonson
ETL Developer
Please Log in or Create an account to join the conversation.
- daniel.fung@xerox.com
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 189
- Thank you received: 9
7 years 11 months ago - 7 years 11 months ago #13918
by daniel.fung@xerox.com
Last edit: 7 years 11 months ago by daniel.fung@xerox.com.
Please Log in or Create an account to join the conversation.
- Peter.Jonson
-
- Offline
- Platinum Member
-
7 years 11 months ago #13924
by Peter.Jonson
Peter Jonson
ETL Developer
Replied by Peter.Jonson on topic Easily Listing all Script Objects in a Project : PCI and Code Review / Source Code
Daniel
Extracting SQL Script is easy task.
However Script Object source is much more complex task and it will take a lot of effort.
Extracting SQL Script is easy task.
However Script Object source is much more complex task and it will take a lot of effort.
Peter Jonson
ETL Developer
Please Log in or Create an account to join the conversation.
- daniel.fung@xerox.com
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 189
- Thank you received: 9
7 years 11 months ago #13926
by daniel.fung@xerox.com
Replied by daniel.fung@xerox.com on topic Easily Listing all Script Objects in a Project : PCI and Code Review / Source Code
Ok, a compromise, give me a way to save all of the following objects in 1 step out to a folder eg.
for the current project, save the following types of objects/items out to text files named after the description and path of the objects
1. transformations,
2. sql scripts,
3. packages
4, lookups
so a transformation named AA in a node called BB will be named [BB] AA.TXT
I will then myself extract out the script contents/blocks and manage the version control for the PCI review process.
for the current project, save the following types of objects/items out to text files named after the description and path of the objects
1. transformations,
2. sql scripts,
3. packages
4, lookups
so a transformation named AA in a node called BB will be named [BB] AA.TXT
I will then myself extract out the script contents/blocks and manage the version control for the PCI review process.
Please Log in or Create an account to join the conversation.
7 years 11 months ago #13930
by admin
Mike
ETL Architect
Replied by admin on topic Easily Listing all Script Objects in a Project : PCI and Code Review / Source Code
Daniel
Thank you for your suggestion, that should not take a lot of time to implement
Thank you for your suggestion, that should not take a lot of time to implement
Mike
ETL Architect
Please Log in or Create an account to join the conversation.