CE-882 Fix test; more words in validation error

This commit is contained in:
2024-04-29 07:50:45 -05:00
parent 13c64de280
commit 7b2e9c4f55
2 changed files with 3 additions and 3 deletions

View File

@ -832,7 +832,7 @@ public class QInstanceValidator
} }
} }
assertCondition(Objects.equals(tmpTable.getName(), joinTableName), prefix + "has a joinNameChain doesn't end in the expected table [" + joinTableName + "]"); assertCondition(Objects.equals(tmpTable.getName(), joinTableName), prefix + "has a joinNameChain doesn't end in the expected table [" + joinTableName + "] (was: " + tmpTable.getName() + ")");
assertCondition(findField(qInstance, table, joins, fieldName), prefix + "has an unrecognized fieldName: " + fieldName); assertCondition(findField(qInstance, table, joins, fieldName), prefix + "has an unrecognized fieldName: " + fieldName);
} }

View File

@ -93,11 +93,11 @@ public class SharingMetaDataProvider
.withFieldName("userId")) .withFieldName("userId"))
.withLock(new RecordSecurityLock() .withLock(new RecordSecurityLock()
.withSecurityKeyType(USER_ID_KEY_TYPE) .withSecurityKeyType(USER_ID_KEY_TYPE)
.withFieldName("sharedAsset.userId") .withFieldName(SharedAsset.TABLE_NAME + ".userId")
.withJoinNameChain(List.of(SHARED_ASSET_JOIN_ASSET))) .withJoinNameChain(List.of(SHARED_ASSET_JOIN_ASSET)))
.withLock(new RecordSecurityLock() .withLock(new RecordSecurityLock()
.withSecurityKeyType(GROUP_ID_KEY_TYPE) .withSecurityKeyType(GROUP_ID_KEY_TYPE)
.withFieldName("sharedAsset.groupId") .withFieldName(SharedAsset.TABLE_NAME + ".groupId")
.withJoinNameChain(List.of(SHARED_ASSET_JOIN_ASSET))) .withJoinNameChain(List.of(SHARED_ASSET_JOIN_ASSET)))
)); ));
QInstanceEnricher.setInferredFieldBackendNames(qInstance.getTable(Asset.TABLE_NAME)); QInstanceEnricher.setInferredFieldBackendNames(qInstance.getTable(Asset.TABLE_NAME));