See [[metabase.models.serialization]] for documentation. | (ns metabase-enterprise.serialization.v2.models) |
Schema model types | (def data-model ["Database" "Field" "Segment" "Table" "Channel"]) |
Content model types | (def content ["Action" "Card" "Collection" "Dashboard" "NativeQuerySnippet" "Timeline"]) |
The list of all models exported by serialization by default. Used for production code and by tests. | (def exported-models (concat data-model content ["FieldValues" "Setting"])) |
An additional list of models which are inlined into parent entities for serialization. These are not extracted and serialized separately, but they may need some processing done. For example, the models should also have their entity_id fields populated (if they have one). | (def inlined-models ["DashboardCard" "DashboardTab" "Dimension" "ParameterCard" "DashboardCardSeries" "TimelineEvent"]) |
List of models which are not going to be serialized ever. | (def excluded-models ["ApiKey" "ApplicationPermissionsRevision" "AuditLog" "BookmarkOrdering" "CacheConfig" "CardBookmark" "ChannelTemplate" "CloudMigration" "CollectionBookmark" "CollectionPermissionGraphRevision" "ConnectionImpersonation" "DashboardBookmark" "DataPermissions" "FieldUsage" "GroupTableAccessPolicy" "HTTPAction" "ImplicitAction" "LegacyMetric" "LegacyMetricImportantField" "LoginHistory" "ModelIndex" "ModelIndexValue" "ModerationReview" "Notification" "NotificationSubscription" "NotificationHandler" "NotificationRecipient" "Permissions" "PermissionsGroup" "PermissionsGroupMembership" "PermissionsRevision" "PersistedInfo" "Pulse" "PulseCard" "PulseChannel" "PulseChannelRecipient" "Query" "QueryAction" "QueryAnalysis" "QueryCache" "QueryExecution" "QueryField" "QueryTable" "RecentViews" "Revision" "SearchIndexMetadata" "Secret" "Session" "TablePrivileges" "TaskHistory" "User" "UserKeyValue" "UserParameterValue" "ViewLog"]) |