View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002426 | CaseTalk Modeler | Validation | public | 2020-03-29 08:56 | 2022-01-10 20:40 |
Reporter | BCP Software | Assigned To | BCP Software | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Target Version | 10.0.4 | Fixed in Version | 10.0.4 | ||
Summary | 0002426: Rule checking population and TC too tight | ||||
Description | "Populations must comply with totality constraint" uses an AND instead of an OR for validating inter-tc's. | ||||
Tags | No tags attached. | ||||
CaseTalk Edition | unknown | ||||
TC25 uses and AND instead of an OR. This should be OR because the TC is not a full mandatory constraint. |
|
Fixed by a new implementation of the SQL Rule: select distinct 'Populations must comply with totality constraints' as name, '"' || otftname || '" misses tuples in: ' || Population_Missing_Under, 'POPULATION' as repositoryType, otftname as repositoryID, 0 as status, 1 as enableEdit from ( select refs.otftname, refs.tc, group_concat(refs.partofft, ' or ') as Population_Missing_Under from ( select o.otftname, tfr.tc, p.tupleno, case when (not pr.tupleno is null) then 'Referenced' else '' end Status, r.partofft from tcforroles tfr -- find TCs join role r on r.roleno = tfr.nonlexrole -- get the TC Role join otft o on o.otftname = r.playedbyot -- get the OTFT played by these Roles join role ro on ro.partofft = o.otftname -- Find the OTFT and it's roles join population p on p.role = ro.roleno -- get the OTFT population which should be referenced by roles under the TC left outer join population pr on pr.role = tfr.nonlexrole and pr.reftupleno = p.tupleno ) refs left outer join ( select o.otftname, tfr.tc, p.tupleno, case when (not pr.tupleno is null) then 'Referenced' else '' end Status, r.partofft from tcforroles tfr -- find TCs join role r on r.roleno = tfr.nonlexrole -- get the TC Role join otft o on o.otftname = r.playedbyot -- get the OTFT played by these Roles join role ro on ro.partofft = o.otftname -- Find the OTFT and it's roles join population p on p.role = ro.roleno -- get the OTFT population which should be referenced by roles under the TC left outer join population pr on pr.role = tfr.nonlexrole and pr.reftupleno = p.tupleno ) used on refs.otftname = used.otftname and refs.tc = used.tc and refs.tupleno = used.tupleno and used.status = 'Referenced' where used.otftname is null group by refs.otftname, refs.tc ) messages order by otftname |
|
Closing automatically, stayed too long in resolved state. Feel free to re-open with additional information if you think the issue is not resolved. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-03-29 08:56 | BCP Software | New Issue | |
2020-03-29 08:56 | BCP Software | Status | new => assigned |
2020-03-29 08:56 | BCP Software | Assigned To | => BCP Software |
2020-03-29 08:57 | BCP Software | File Added: Annotation 2020-03-28 160326.png | |
2020-03-29 08:57 | BCP Software | File Added: Annotation 2020-03-28 162132.png | |
2020-03-29 08:57 | BCP Software | Note Added: 0001601 | |
2020-03-29 10:33 | BCP Software | Status | assigned => resolved |
2020-03-29 10:33 | BCP Software | Resolution | open => fixed |
2020-03-29 10:33 | BCP Software | Fixed in Version | => 10.0.4 |
2020-03-29 10:33 | BCP Software | Note Added: 0001602 | |
2020-03-29 13:30 | BCP Software | Note Edited: 0001602 | |
2020-03-29 13:30 | BCP Software | Note Edited: 0001602 | |
2020-03-29 13:31 | BCP Software | Note Edited: 0001602 | |
2020-04-19 09:26 | BCP Software | Category | Model Validation => Validation |
2022-01-10 20:40 | BCP Software | Note Added: 0004014 | |
2022-01-10 20:40 | BCP Software | Status | resolved => closed |