Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Add metabase_table.data_authority to distinguish derived data (#62416)

Chris Truterf8342709cb45
diff --git a/enterprise/backend/src/metabase_enterprise/transforms/execute.clj b/enterprise/backend/src/metabase_enterprise/transforms/execute.clj
index f1ac27ea81b..5eaa71772cc 100644
--- a/enterprise/backend/src/metabase_enterprise/transforms/execute.clj
+++ b/enterprise/backend/src/metabase_enterprise/transforms/execute.clj
@@ -35,7 +35,7 @@
([target database _run-id]
;; sync the new table (note that even a failed sync status means that the execution succeeded)
(log/info "Syncing target" (pr-str target) "for transform")
- (transforms.util/activate-table! database target)))
+ (transforms.util/activate-table-and-mark-computed! database target)))
(defn run-transform!
"Run a compiled transform"
diff --git a/enterprise/backend/src/metabase_enterprise/transforms/util.clj b/enterprise/backend/src/metabase_enterprise/transforms/util.clj
index 18f8316933a..ac0fef78670 100644
--- a/enterprise/backend/src/metabase_enterprise/transforms/util.clj
+++ b/enterprise/backend/src/metabase_enterprise/transforms/util.clj
@@ -41,13 +41,12 @@
(sync/sync-table! table)
table)))
-(defn activate-table!
+(defn activate-table-and-mark-computed!
"Activate table for `target` in `database` in the app db."
[database target]
(when-let [table (sync-table! database target {:create? true})]
- ;; TODO this should probably be a function in the sync module
- (when (not (:active table))
- (t2/update! :model/Table (:id table) {:active true}))))
+ (when (or (not (:active table)) (not (= (:data_authority table) :computed)))
+ (t2/update! :model/Table (:id table) {:active true, :data_authority :computed}))))
(defn deactivate-table!
"Deactivate table for `target` in `database` in the app db."
diff --git a/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj b/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj
index 94f5744e0b0..23a61e45e06 100644
--- a/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj
+++ b/enterprise/backend/test/metabase_enterprise/serialization/v2/round_trip_test.clj
@@ -33,6 +33,7 @@
[metabase-enterprise.serialization.v2.models :as serdes.models]
[metabase-enterprise.serialization.v2.storage :as storage]
[metabase.models.serialization :as serdes]
+ [metabase.search.test-util :as search.tu]
[metabase.test :as mt]
[metabase.util.log :as log]
[metabase.util.yaml :as yaml])
@@ -140,45 +141,46 @@
(is (necessary? b) (format "We can remove %s files from %s" b source-dir-path)))))
(deftest baseline-comparison-test
- (let [wrote-files? (volatile! false)
- temp-dir (temp-dir "serialization_test")
- output-dir (.toFile (.resolve temp-dir "serialization_output"))]
- (try
- (mt/with-empty-h2-app-db!
- (delete-dir-contents! dev-inspect-dir)
-
- (load-extract! source-dir output-dir)
-
- (let [source-files (fileset source-dir)
- output-files (fileset output-dir)
- missing-files (set/difference source-files output-files)
- added-files (set/difference output-files source-files)]
-
- (testing "No files are missing"
- (is (empty? missing-files)))
- (testing "No files have been added"
- (is (empty? added-files)))
-
- (testing "File contents\n"
- (doseq [file source-files
- :let [ref-file (io/file source-dir file)
- out-file (io/file output-dir file)]
- :when (.exists out-file)
- :let [delta (compare-files ref-file out-file)]]
-
- (is (nil? delta)
- (str "Content mismatch for file: " (strip-base-path source-dir file)))
-
- ;; Leave behind files for developers to inspect
- (when (and (.exists dev-inspect-dir) delta)
- (vreset! wrote-files? true)
- (create-files-to-diff! ref-file out-file))))
-
- (when @wrote-files?
- (log/warn "Mismatching files have been written to /dev/serialization_deltas"))))
-
- (finally
- (delete-dir-contents! output-dir)))))
+ (search.tu/with-index-disabled
+ (let [wrote-files? (volatile! false)
+ temp-dir (temp-dir "serialization_test")
+ output-dir (.toFile (.resolve temp-dir "serialization_output"))]
+ (try
+ (mt/with-empty-h2-app-db!
+ (delete-dir-contents! dev-inspect-dir)
+
+ (load-extract! source-dir output-dir)
+
+ (let [source-files (fileset source-dir)
+ output-files (fileset output-dir)
+ missing-files (set/difference source-files output-files)
+ added-files (set/difference output-files source-files)]
+
+ (testing "No files are missing"
+ (is (empty? missing-files)))
+ (testing "No files have been added"
+ (is (empty? added-files)))
+
+ (testing "File contents\n"
+ (doseq [file source-files
+ :let [ref-file (io/file source-dir file)
+ out-file (io/file output-dir file)]
+ :when (.exists out-file)
+ :let [delta (compare-files ref-file out-file)]]
+
+ (is (nil? delta)
+ (str "Content mismatch for file: " (strip-base-path source-dir file)))
+
+ ;; Leave behind files for developers to inspect
+ (when (and (.exists dev-inspect-dir) delta)
+ (vreset! wrote-files? true)
+ (create-files-to-diff! ref-file out-file))))
+
+ (when @wrote-files?
+ (log/warn "Mismatching files have been written to /dev/serialization_deltas"))))
+
+ (finally
+ (delete-dir-contents! output-dir))))))
(defn- update-baseline!
"Run this if you've examined the output of [[directory-comparison-test]], and are happy to accept the changes."
diff --git a/resources/migrations/057_update_migrations.yaml b/resources/migrations/057_update_migrations.yaml
index 8bfa2bb49b3..f4440112dd3 100644
--- a/resources/migrations/057_update_migrations.yaml
+++ b/resources/migrations/057_update_migrations.yaml
@@ -1059,6 +1059,22 @@ databaseChangeLog:
nullable: true
defaultValue: null
+ - changeSet:
+ id: v57.2025-08-23T15:00:00
+ author: christruter
+ comment: Add data_authority enum field to metabase_table
+ changes:
+ - addColumn:
+ tableName: metabase_table
+ columns:
+ - column:
+ name: data_authority
+ remarks: Indicates the data authority status - unconfigured, authoritative, computed, or ingested
+ type: varchar(20)
+ defaultValue: 'unconfigured'
+ constraints:
+ nullable: false
+
# >>>>>>>>>> DO NOT ADD NEW MIGRATIONS BELOW THIS LINE! ADD THEM ABOVE <<<<<<<<<<
########################################################################################################################
diff --git a/src/metabase/sync/sync_metadata/tables.clj b/src/metabase/sync/sync_metadata/tables.clj
index 2331ba7e10a..0a5524d9064 100644
--- a/src/metabase/sync/sync_metadata/tables.clj
+++ b/src/metabase/sync/sync_metadata/tables.clj
@@ -135,7 +135,9 @@
:display_name (or (:display_name table)
(humanization/name->human-readable-name (:name table)))
:name (:name table)
- :is_writable (:is_writable table)})))
+ :is_writable (:is_writable table)}
+ (when (:is_sample database)
+ {:data_authority :ingested}))))
(defn create-or-reactivate-table!
"Create a single new table in the database, or mark it as active if it already exists."
@@ -154,7 +156,10 @@
(dissoc :visibility_type)
true
- (assoc :active true))))
+ (assoc :active true)
+
+ (:is_sample database)
+ (assoc :data_authority :ingested))))
;; otherwise create a new Table
(create-table! database table)))
diff --git a/src/metabase/upload/impl.clj b/src/metabase/upload/impl.clj
index 1e1ceb7af6b..b08f27af12a 100644
--- a/src/metabase/upload/impl.clj
+++ b/src/metabase/upload/impl.clj
@@ -539,7 +539,7 @@
table (sync/create-table! db {:name table-name
:schema (not-empty schema)
:display_name display-name})
- _set_is_upload (t2/update! :model/Table (:id table) {:is_upload true})
+ _set_is_upload (t2/update! :model/Table (:id table) {:is_upload true, :data_authority :authoritative})
_sync (scan-and-sync-table! db table)
_set_names (set-display-names! (:id table) columns)
;; Set the display_name of the auto-generated primary key column to the same as its name, so that if users
diff --git a/src/metabase/warehouse_schema/api/table.clj b/src/metabase/warehouse_schema/api/table.clj
index e4dadeaaac7..b16402b7a22 100644
--- a/src/metabase/warehouse_schema/api/table.clj
+++ b/src/metabase/warehouse_schema/api/table.clj
@@ -23,6 +23,7 @@
[metabase.util.i18n :refer [tru]]
[metabase.util.log :as log]
[metabase.util.malli :as mu]
+ [metabase.util.malli.registry :as mr]
[metabase.util.malli.schema :as ms]
[metabase.util.quick-task :as quick-task]
[metabase.warehouse-schema.models.table :as table]
@@ -42,6 +43,14 @@
"Schema for a valid table field ordering."
(into [:enum] (map name table/field-orderings)))
+(mr/def ::data-authority-write
+ "Schema for writing a valid table data authority."
+ (into [:enum] (map name table/writable-data-authority-types)))
+
+(mr/def ::data-authority-read
+ "Schema for returning a table data authority type."
+ (into [:enum] table/readable-data-authority-types))
+
(api.macros/defendpoint :get "/"
"Get all `Tables`."
[]
@@ -58,6 +67,9 @@
{:keys [include_editable_data_model]}
:- [:map
[:include_editable_data_model {:optional true} [:maybe :boolean]]]]
+ ;; partial schema only
+ :- [:map {:closed false}
+ [:data_authority ::data-authority-read]]
(let [api-perm-check-fn (if include_editable_data_model
api/write-check
api/read-check)]
@@ -100,7 +112,7 @@
body]
(when-let [changes (not-empty (u/select-keys-when body
:non-nil [:display_name :show_in_getting_started :entity_type :field_order]
- :present [:description :caveats :points_of_interest :visibility_type]))]
+ :present [:description :caveats :points_of_interest :visibility_type :data_authority]))]
(t2/update! :model/Table id changes))
(let [updated-table (t2/select-one :model/Table :id id)
changed-field-order? (not= (:field_order updated-table) (:field_order existing-table))]
@@ -152,7 +164,8 @@
[:caveats {:optional true} [:maybe :string]]
[:points_of_interest {:optional true} [:maybe :string]]
[:show_in_getting_started {:optional true} [:maybe :boolean]]
- [:field_order {:optional true} [:maybe FieldOrder]]]]
+ [:field_order {:optional true} [:maybe FieldOrder]]
+ [:data_authority {:optional true} [:maybe ::data-authority-write]]]]
(first (update-tables! [id] body)))
(api.macros/defendpoint :put "/"
@@ -167,7 +180,8 @@
[:description {:optional true} [:maybe :string]]
[:caveats {:optional true} [:maybe :string]]
[:points_of_interest {:optional true} [:maybe :string]]
- [:show_in_getting_started {:optional true} [:maybe :boolean]]]]
+ [:show_in_getting_started {:optional true} [:maybe :boolean]]
+ [:data_authority {:optional true} [:maybe ::data-authority-write]]]]
(update-tables! ids body))
(api.macros/defendpoint :get "/:id/query_metadata"
diff --git a/src/metabase/warehouse_schema/models/table.clj b/src/metabase/warehouse_schema/models/table.clj
index e0617624fb6..e9c3b919965 100644
--- a/src/metabase/warehouse_schema/models/table.clj
+++ b/src/metabase/warehouse_schema/models/table.clj
@@ -11,6 +11,7 @@
[metabase.premium-features.core :refer [defenterprise]]
[metabase.search.spec :as search.spec]
[metabase.util :as u]
+ [metabase.util.log :as log]
[metabase.util.malli :as mu]
[methodical.core :as methodical]
[toucan2.core :as t2]))
@@ -31,6 +32,23 @@
`:type/Temporal`s, and from there on in alphabetical order."
#{:database :alphabetical :custom :smart})
+(def writable-data-authority-types
+ "Valid values we can configure for `Table.data_authority`.
+ `:unconfigured` - no data authority status has been set yet;
+ `:authoritative` - this table is the authoritative source of truth;
+ `:computed` - this table is derived/computed from other authoritative sources within metabase;
+ `:ingested` - this table is ingested from external sources;"
+ #{:unconfigured :authoritative :computed :ingested})
+
+(def readable-data-authority-types
+ "Valid values we can return for `Table.data_authority`.
+ `:unconfigured` - no data authority status has been set yet;
+ `:authoritative` - this table is the authoritative source of truth;
+ `:computed` - this table is derived/computed from other authoritative sources within metabase;
+ `:ingested` - this table is ingested from external sources;
+ `:unknown` - fallback for an unexpected value from the database, e.g. from a newer version we rolled back from."
+ (conj writable-data-authority-types :unknown))
+
;;; --------------------------------------------------- Lifecycle ----------------------------------------------------
(methodical/defmethod t2/table-name :model/Table [_model] :metabase_table)
@@ -45,10 +63,28 @@
;; cause duplication rather than good matching if the two instances are later linked by serdes.
#_(derive :hook/entity-id))
+(def ^:private transform-data-authority
+ {:out (fn [value]
+ (let [kw (some-> value keyword)]
+ (if (contains? writable-data-authority-types kw)
+ kw
+ (do (log/warnf "Unknown data_authority value from database: %s, converting to :unknown" value)
+ :unknown))))
+ :in (fn [value]
+ (let [kw (some-> value keyword)]
+ (when-not (contains? writable-data-authority-types kw)
+ (throw (ex-info (str "Illegal value for data_authority: " kw)
+ {:field :data_authority
+ :value value
+ :status-code 400}))))
+ (some-> value name))})
+
(t2/deftransforms :model/Table
{:entity_type mi/transform-keyword
:visibility_type mi/transform-keyword
- :field_order mi/transform-keyword})
+ :field_order mi/transform-keyword
+ ;; Warning: by using a transform to handle unexpected enum values, serialization becomes lossy
+ :data_authority transform-data-authority})
(methodical/defmethod t2/model-for-automagic-hydration [:default :table]
[_original-model _k]
@@ -72,10 +108,17 @@
(t2/define-before-update :model/Table
[table]
- (let [changes (t2/changes table)
+ (let [changes (t2/changes table)
original-table (t2/original table)
current-active (:active original-table)
- new-active (:active changes)]
+ new-active (:active changes)]
+
+ ;; Prevent setting data_authority back to unconfigured once configured
+ (when (and (not= (keyword (:data_authority original-table :unconfigured)) :unconfigured)
+ (= (keyword (:data_authority changes)) :unconfigured))
+ (throw (ex-info "Cannot set data_authority back to unconfigured once it has been configured"
+ {:status-code 400})))
+
(cond
;; active: true -> false (table being deactivated)
(and (true? current-active) (false? new-active))
@@ -317,7 +360,7 @@
(defmethod serdes/make-spec "Table" [_model-name _opts]
{:copy [:name :description :entity_type :active :display_name :visibility_type :schema
:points_of_interest :caveats :show_in_getting_started :field_order :initial_sync_status :is_upload
- :database_require_filter :is_defective_duplicate :unique_table_helper :is_writable]
+ :database_require_filter :is_defective_duplicate :unique_table_helper :is_writable :data_authority]
:skip [:estimated_row_count :view_count]
:transform {:created_at (serdes/date)
:archived_at (serdes/date)
diff --git a/test/metabase/sync/sync_metadata/tables_test.clj b/test/metabase/sync/sync_metadata/tables_test.clj
index 25389855442..886c7ed27a5 100644
--- a/test/metabase/sync/sync_metadata/tables_test.clj
+++ b/test/metabase/sync/sync_metadata/tables_test.clj
@@ -256,3 +256,28 @@
(is (not= (:id original-table) (:id new-table)))
(is (= "sensitive_table" (:name new-table)))
(is (nil? (:archived_at new-table))))))))
+
+(deftest sample-database-tables-data-authority-test
+ (testing "Tables from sample databases should be marked as :ingested"
+ (mt/with-temp [:model/Database sample-db {:is_sample true}
+ :model/Database normal-db {:is_sample false}]
+ (let [sample-table-metadata {:name "sample_table"}
+ normal-table-metadata {:name "normal_table"}]
+
+ (testing "creating a table in a sample database"
+ (let [created-table (sync-tables/create-table! sample-db sample-table-metadata)]
+ (is (= :ingested (:data_authority created-table)))))
+
+ (testing "creating a table in a normal database"
+ (let [created-table (sync-tables/create-table! normal-db normal-table-metadata)]
+ (is (= :unconfigured (:data_authority created-table)))))
+
+ (testing "reactivating a table in a sample database"
+ (mt/with-temp [:model/Table existing-table {:db_id (:id sample-db)
+ :name "existing_sample_table"
+ :active false
+ :data_authority :computed}]
+ (sync-tables/create-or-reactivate-table! sample-db {:name "existing_sample_table"})
+ (let [updated-table (t2/select-one :model/Table (:id existing-table))]
+ (is (= :ingested (:data_authority updated-table)))
+ (is (:active updated-table)))))))))
diff --git a/test/metabase/warehouse_schema/api/table_test.clj b/test/metabase/warehouse_schema/api/table_test.clj
index bcdf0561f34..280b0d885de 100644
--- a/test/metabase/warehouse_schema/api/table_test.clj
+++ b/test/metabase/warehouse_schema/api/table_test.clj
@@ -59,7 +59,7 @@
(defn- table-defaults []
(merge
- (mt/object-defaults :model/Table)
+ (update (mt/object-defaults :model/Table) :data_authority name)
{:db (db-details)
:db_id (mt/id)
:entity_type "entity/GenericTable"
@@ -472,6 +472,58 @@
(mt/with-temp [:model/Table table]
(mt/user-http-request :rasta :put 403 (format "table/%d" (u/the-id table)) {:display_name "Userz"})))))
+(deftest ^:parallel update-data-authority-test
+ (testing "PUT /api/table/:id"
+ (testing "data_authority field behavior"
+ (mt/with-temp [:model/Table table {}]
+ (testing "Initially data_authority should be unconfigured"
+ (is (= :unconfigured (t2/select-one-fn :data_authority :model/Table :id (u/the-id table)))))
+
+ (testing "Can save an unrelated change with this field redundantly included"
+ (mt/user-http-request :crowberto :put 200 (format "table/%d" (u/the-id table))
+ {:active false, :data_authority "unconfigured"})
+ (is (= :unconfigured (t2/select-one-fn :data_authority :model/Table :id (u/the-id table)))))
+
+ (testing "Can set data_authority to authoritative"
+ (mt/user-http-request :crowberto :put 200 (format "table/%d" (u/the-id table))
+ {:data_authority "authoritative"})
+ (is (= :authoritative (t2/select-one-fn :data_authority :model/Table :id (u/the-id table)))))
+
+ (testing "Can set data_authority between different values"
+ (mt/user-http-request :crowberto :put 200 (format "table/%d" (u/the-id table))
+ {:data_authority "computed"})
+ (is (= :computed (t2/select-one-fn :data_authority :model/Table :id (u/the-id table)))))
+
+ (testing "Can set data_authority to ingested"
+ (mt/user-http-request :crowberto :put 200 (format "table/%d" (u/the-id table))
+ {:data_authority "ingested"})
+ (is (= :ingested (t2/select-one-fn :data_authority :model/Table :id (u/the-id table)))))
+
+ (testing "Cannot un-configure again"
+ (is (= "Cannot set data_authority back to unconfigured once it has been configured"
+ (mt/user-http-request :crowberto :put 400 (format "table/%d" (u/the-id table))
+ {:data_authority "unconfigured"}))))
+
+ (testing "Cannot set data_authority to unknown via API"
+ (is (= [:data_authority]
+ (keys (:errors (mt/user-http-request :crowberto :put 400 (format "table/%d" (u/the-id table))
+ {:data_authority "unknown"}))))))))))
+
+(deftest ^:parallel unknown-data-authority-value-test
+ (testing "Tables with unknown data_authority values from database are read as :unknown"
+ (mt/with-temp [:model/Table table {}]
+ ;; Directly insert an unknown value into the database, bypassing Toucan transforms
+ (t2/query-one {:update :metabase_table
+ :set {:data_authority "federated"}
+ :where [:= :id (:id table)]})
+
+ (testing "Unexpected values are converted to :unknown"
+ (is (= :unknown (t2/select-one-fn :data_authority [:model/Table :data_authority] :id (:id table)))))
+
+ (testing "API GET endpoint returns :unknown for tables with unknown data_authority"
+ (let [api-response (mt/user-http-request :crowberto :get 200 (format "table/%d" (:id table)))]
+ (is (= "unknown" (:data_authority api-response))))))))
+
;; see how many times sync-table! gets called when we call the PUT endpoint. It should happen when you switch from
;; hidden -> not hidden at the spots marked below, twice total
(deftest update-table-sync-test
diff --git a/test_resources/serialization_baseline/databases/My Database/tables/Schemaless Table/Schemaless Table.yaml b/test_resources/serialization_baseline/databases/My Database/tables/Schemaless Table/Schemaless Table.yaml
index 18638e2a819..f87f5a2e442 100644
--- a/test_resources/serialization_baseline/databases/My Database/tables/Schemaless Table/Schemaless Table.yaml
+++ b/test_resources/serialization_baseline/databases/My Database/tables/Schemaless Table/Schemaless Table.yaml
@@ -22,3 +22,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CATEGORIES/CATEGORIES.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CATEGORIES/CATEGORIES.yaml
index 5bb397709d8..a8f2bd0217b 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CATEGORIES/CATEGORIES.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CATEGORIES/CATEGORIES.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CHECKINS/CHECKINS.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CHECKINS/CHECKINS.yaml
index b3df940f0ea..b6262fe068c 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CHECKINS/CHECKINS.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/CHECKINS/CHECKINS.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/ORDERS/ORDERS.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/ORDERS/ORDERS.yaml
index 2e7ed95690f..1e6769c5b34 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/ORDERS/ORDERS.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/ORDERS/ORDERS.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PEOPLE/PEOPLE.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PEOPLE/PEOPLE.yaml
index 1c756a6db65..920c3c8f212 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PEOPLE/PEOPLE.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PEOPLE/PEOPLE.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PRODUCTS/PRODUCTS.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PRODUCTS/PRODUCTS.yaml
index 7b1a6bc7edf..77c32e04b6b 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PRODUCTS/PRODUCTS.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/PRODUCTS/PRODUCTS.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/REVIEWS/REVIEWS.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/REVIEWS/REVIEWS.yaml
index 89a95c970d3..e6fc982b86b 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/REVIEWS/REVIEWS.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/REVIEWS/REVIEWS.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/USERS/USERS.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/USERS/USERS.yaml
index ef9fe1c2bbd..54437270a56 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/USERS/USERS.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/USERS/USERS.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/VENUES/VENUES.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/VENUES/VENUES.yaml
index e37b57df32a..9ff2270c3a1 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/VENUES/VENUES.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/schemas/PUBLIC/tables/VENUES/VENUES.yaml
@@ -24,3 +24,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured
diff --git a/test_resources/serialization_baseline/databases/test-data (h2)/tables/linked_table/linked_table.yaml b/test_resources/serialization_baseline/databases/test-data (h2)/tables/linked_table/linked_table.yaml
index cab78cd5043..3ce8eae7830 100644
--- a/test_resources/serialization_baseline/databases/test-data (h2)/tables/linked_table/linked_table.yaml
+++ b/test_resources/serialization_baseline/databases/test-data (h2)/tables/linked_table/linked_table.yaml
@@ -22,3 +22,4 @@ archived_at: null
database_require_filter: null
deactivated_at: null
is_writable: null
+data_authority: unconfigured