Here is an small change for SQLReference detection. Actually SQLReference is only read in the main scope of programs and modules. If there are SQL Sentences called in procedures without any other native sentence (for example: DCL-F or DLC-DS xxx EXTNAME(xxxx)) there is no detection of those SQL sentences. That's why there is a concatenation between the cache.sqlReferences and the sqlReferences from cache.procedures.scope.
Test Repo
I am using the following repo to test this new functionality: Example using source orbit, from this repo the following 2 impact analysis were extracted.
Impact Analysis from main
Impact Analysis
Touched objects:
📁 EMPLOYEE.FILE: qddssrc/employee.table
EMPLOYEE.FILE
Click to expand
* 📁 `EMPLOYEE.FILE` (`qddssrc/employee.table`)
Changes to this object have no impact.
Resume
Here is an small change for SQLReference detection. Actually SQLReference is only read in the main scope of programs and modules. If there are SQL Sentences called in procedures without any other native sentence (for example: DCL-F or DLC-DS xxx EXTNAME(xxxx)) there is no detection of those SQL sentences. That's why there is a concatenation between the cache.sqlReferences and the sqlReferences from cache.procedures.scope.
Test Repo
I am using the following repo to test this new functionality: Example using source orbit, from this repo the following 2 impact analysis were extracted.
Impact Analysis from main
Impact Analysis
Touched objects:
EMPLOYEE.FILE
:qddssrc/employee.table
EMPLOYEE.FILE
Click to expand
* 📁 `EMPLOYEE.FILE` (`qddssrc/employee.table`) Changes to this object have no impact.
Messages
No messages to show.
Project Listing
Click to expand
| - | Object | Type | Path | Warnings | Parents | Children | | --- | --- | --- | --- | --- | --- | --- | | 📁 | DEPTS | FILE | `qddssrc/depts.table` | ✅ | 0 | 0 | | 📁 | EMPLOYEE | FILE | `qddssrc/employee.table` | ✅ | 0 | 0 | | 📦 | EMPSEL | SRVPGM | `qrpglesrc/empsel.bnd` | ✅ |
1
$(APP_BNDDIR).BNDDIR1
EMPSEL.MOD.MODULE1
EMPSEL.SRVPGM1
PGM2.PGM1
MYPGM.PGMImpact Analysis from pull request changes
Impact Analysis
Touched objects:
EMPLOYEE.FILE
:qddssrc/employee.table
EMPLOYEE.FILE
Click to expand
* 📁 `EMPLOYEE.FILE` (`qddssrc/employee.table`) * ⛏️ `EMPSEL.MOD.MODULE` (`qrpglesrc/empsel.mod.sqlrpgle`) * 📦 `EMPSEL.SRVPGM` (`qrpglesrc/empsel.bnd`) * 📒 `$(APP_BNDDIR).BNDDIR` (no source) * 🛠️ `PGM2.PGM` (`qrpglesrc/pgm2.pgm.sqlrpgle`) * 🛠️ `MYPGM.PGM` (`qrpglesrc/mypgm.pgm.sqlrpgle`)
Messages
No messages to show.
Project Listing
Click to expand
| - | Object | Type | Path | Warnings | Parents | Children | | --- | --- | --- | --- | --- | --- | --- | | 📁 | DEPTS | FILE | `qddssrc/depts.table` | ✅ |
1
EMPSEL.MOD.MODULE2
EMPSEL.MOD.MODULE, PGM2.PGM1
$(APP_BNDDIR).BNDDIR1
EMPSEL.MOD.MODULE1
EMPSEL.SRVPGM2
EMPLOYEE.FILE, DEPTS.FILE1
PGM2.PGM1
MYPGM.PGM1
EMPLOYEE.FILE