ISSUE-20533: fetching tag field for table to not delete certification (#20534)

* ISSUE-20533: fetching tag field for table to not delete certification

* java codestyle

* format

---------

Co-authored-by: Imri Paran <imri.paran@gmail.com>
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
olof-nn 2025-04-02 07:52:05 +02:00 committed by GitHub
parent 9d19bd3eca
commit d9987717fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -628,7 +628,8 @@ public class TableRepository extends EntityRepository<Table> {
}
public Table addDataModel(UUID tableId, DataModel dataModel) {
Table table = get(null, tableId, getFields(FIELD_OWNERS), NON_DELETED, false);
Table table =
get(null, tableId, getFields(Set.of(FIELD_OWNERS, FIELD_TAGS)), NON_DELETED, false);
// Update the sql fields only if correct value is present
if (dataModel.getRawSql() == null || dataModel.getRawSql().isBlank()) {