mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-07 21:16:45 +00:00
* Fix #8933: Add fixes to initSeedData from 0.12 upgrade * Fix #8933: Add fixes to initSeedData from 0.12 upgrade * Fix #8933: Add fixes to initSeedData from 0.12 upgrade * Fix #8933: Add fixes to initSeedData from 0.12 upgrade
This commit is contained in:
parent
b25336a55c
commit
4610478688
@ -152,3 +152,4 @@ SET json = jsonb_set(json::jsonb, '{deployed}', 'true'::jsonb, true);
|
||||
-- We removed the supportsMetadataExtraction field in the `OpenMetadataConnection` object being used in IngestionPipelines
|
||||
UPDATE ingestion_pipeline_entity
|
||||
SET json = json::jsonb #- '{openMetadataServerConnection,supportsMetadataExtraction}';
|
||||
|
||||
|
||||
@ -25,6 +25,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
||||
import io.swagger.v3.oas.annotations.responses.ApiResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import javax.json.JsonPatch;
|
||||
@ -95,7 +96,8 @@ public class BotResource extends EntityResource<Bot, BotRepository> {
|
||||
User user = user(userName, domain, userName).withIsBot(true).withIsAdmin(false);
|
||||
|
||||
// Add role corresponding to the bot to the user
|
||||
user.setRoles(List.of(RoleResource.getRole(getRoleForBot(bot.getName()))));
|
||||
// we need to set a mutable list here
|
||||
user.setRoles(Arrays.asList(RoleResource.getRole(getRoleForBot(bot.getName()))));
|
||||
user = DefaultAuthorizer.addOrUpdateBotUser(user, config);
|
||||
|
||||
bot.withId(UUID.randomUUID())
|
||||
|
||||
@ -327,6 +327,7 @@ public class DefaultAuthorizer implements Authorizer {
|
||||
user.setAuthenticationMechanism(authMechanism);
|
||||
user.setDescription(user.getDescription());
|
||||
user.setDisplayName(user.getDisplayName());
|
||||
user.setUpdatedBy(ADMIN_USER_NAME);
|
||||
return addOrUpdateUser(user);
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "PageView",
|
||||
"fullyQualifiedName": "PageView",
|
||||
"description": "Captures web analytic page view events",
|
||||
"eventType": "PageView"
|
||||
}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "dailyActiveUsers",
|
||||
"fullyQualifiedName": "dailyActiveUsers",
|
||||
"displayName": "Daily active users on the platform",
|
||||
"description": "Display the number of users active.",
|
||||
"dataIndexType": "web_analytic_user_activity_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "mostActiveUsers",
|
||||
"fullyQualifiedName": "mostActiveUsers",
|
||||
"displayName": "Most Active Users",
|
||||
"description": "Displays the most active users on the platform based on page views.",
|
||||
"dataIndexType": "web_analytic_user_activity_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "mostViewedEntities",
|
||||
"fullyQualifiedName": "mostActiveUsers",
|
||||
"displayName": "Most Viewed entites",
|
||||
"description": "Displays the most viewed entities.",
|
||||
"dataIndexType": "web_analytic_entity_view_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "pageViewsByEntities",
|
||||
"fullyQualifiedName": "pageViewsByEntities",
|
||||
"displayName": "Page views by entities",
|
||||
"description": "Displays the number of time an entity type was viewed.",
|
||||
"dataIndexType": "web_analytic_entity_view_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "PercentageOfEntitiesWithDescriptionByType",
|
||||
"fullyQualifiedName": "PercentageOfEntitiesWithDescriptionByType",
|
||||
"displayName": "Percentage of Entities With Description",
|
||||
"description": "Display the percentage of entities with description by type.",
|
||||
"dataIndexType": "entity_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "PercentageOfEntitiesWithOwnerByType",
|
||||
"fullyQualifiedName": "PercentageOfEntitiesWithOwnerByType",
|
||||
"displayName": "Percentage of Entities With Owner",
|
||||
"description": "Display the percentage of entities with owner by type.",
|
||||
"dataIndexType": "entity_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "TotalEntitiesByTier",
|
||||
"fullyQualifiedName": "TotalEntitiesByTier",
|
||||
"displayName": "Percentage of Entities With Tier",
|
||||
"description": "Display the percentage of entities with tier by type.",
|
||||
"dataIndexType": "entity_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "TotalEntitiesByType",
|
||||
"fullyQualifiedName": "TotalEntitiesByType",
|
||||
"displayName": "Total Entities",
|
||||
"description": "Display the total of entities by type.",
|
||||
"dataIndexType": "entity_report_data_index",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValueMaxToBeBetween",
|
||||
"fullyQualifiedName": "columnValueMaxToBeBetween",
|
||||
"displayName": "Column Value Max. to be Between",
|
||||
"description": "This schema defines the test ColumnValueMaxToBeBetween. Test the maximum value in a col is within a range.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValueMeanToBeBetween",
|
||||
"fullyQualifiedName": "columnValueMeanToBeBetween",
|
||||
"displayName": "Column Value Mean To BeBetween",
|
||||
"description": "This schema defines the test ColumnValueMeanToBeBetween. Test the mean value in a col is within a range.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValueMedianToBeBetween",
|
||||
"fullyQualifiedName": "columnValueMedianToBeBetween",
|
||||
"displayName": "Column Value Median To Be Between",
|
||||
"description": "This schema defines the test ColumnValueMedianToBeBetween. Test the median value in a col is within a range.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValueMinToBeBetween",
|
||||
"fullyQualifiedName": "columnValueMinToBeBetween",
|
||||
"displayName": "Column Value Min. To Be Between",
|
||||
"description": "This schema defines the test ColumnValueMinToBeBetween. Test the minimum value in a col is within a range.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValueStdDevToBeBetween",
|
||||
"fullyQualifiedName": "columnValueStdDevToBeBetween",
|
||||
"displayName": "Column Value Std Dev To Be Between",
|
||||
"description": "This schema defines the test ColumnValueStdDevToBeBetween. Test the std. dev. value in a col is within a range.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValueLengthsToBeBetween",
|
||||
"fullyQualifiedName": "columnValueLengthsToBeBetween",
|
||||
"displayName": "Column Value Lengths To Be Between",
|
||||
"description": "This schema defines the test ColumnValueLengthsToBeBetween. Test the value lengths in a column to be between minimum and maximum value. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesMissingCount",
|
||||
"fullyQualifiedName": "columnValuesMissingCount",
|
||||
"displayName": "Column Values Missing Count",
|
||||
"description": "This schema defines the test ColumnValuesMissingCount. Test the column values missing count to be equal to given number. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesSumToBeBetween",
|
||||
"fullyQualifiedName": "columnValuesSumToBeBetween",
|
||||
"displayName": "Column Values Sum To Be Between",
|
||||
"description": "This schema defines the test ColumnValuesSumToBeBetween. Test the sum of the values of a col is within a range.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToBeBetween",
|
||||
"fullyQualifiedName": "columnValuesToBeBetween",
|
||||
"displayName": "Column Values To Be Between",
|
||||
"description": "This schema defines the test ColumnValuesToBeBetween. Test the values in a column to be between minimum and maximum value. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToBeInSet",
|
||||
"fullyQualifiedName": "columnValuesToBeInSet",
|
||||
"displayName": "Column Values To Be In Set",
|
||||
"description": "This schema defines the test ColumnValuesToBeInSet. Test the column values are in the set.",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToBeNotInSet",
|
||||
"fullyQualifiedName": "columnValuesToBeNotInSet",
|
||||
"displayName": "Column Values To Be Not In Set",
|
||||
"description": "This schema defines the test ColumnValuesToBeNotInSet. Test the column values to not be in the set. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToBeNotNull",
|
||||
"fullyQualifiedName": "columnValuesToBeNotNull",
|
||||
"displayName": "Column Values To Be Not Null",
|
||||
"description": "This schema defines the test ColumnValuesToBeNotNull. Test the number of values in a column are null. Values must be explicitly null. Empty strings don't count as null. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToBeUnique",
|
||||
"fullyQualifiedName": "columnValuesToBeNotNull",
|
||||
"displayName": "Column Values To Be Unique",
|
||||
"description": "This schema defines the test ColumnValuesToBeUnique. Test the values in a column to be unique. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToMatchRegex",
|
||||
"fullyQualifiedName": "columnValuesToMatchRegex",
|
||||
"displayName": "Column Values To Match Regex Pattern",
|
||||
"description": "This schema defines the test ColumnValuesToMatchRegex. Test the values in a column to match a given regular expression. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "columnValuesToNotMatchRegex",
|
||||
"fullyQualifiedName": "columnValuesToNotMatchRegex",
|
||||
"displayName": "Column Values To Not Match Regex",
|
||||
"description": "This schema defines the test ColumnValuesToNotMatchRegex. Test the values in a column to not match a given regular expression. ",
|
||||
"entityType": "COLUMN",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableColumnCountToBeBetween",
|
||||
"fullyQualifiedName": "tableColumnCountToBeBetween",
|
||||
"displayName": "Table Column Count To Be Between",
|
||||
"description": "This schema defines the test TableColumnCountToBeBetween. Test the number of columns to be between min max value.",
|
||||
"entityType": "TABLE",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableColumnCountToEqual",
|
||||
"fullyQualifiedName": "tableColumnCountToEqual",
|
||||
"displayName": "Table Column Count To Equal",
|
||||
"description": "This test defines the test TableColumnCountToEqual. Test the number of columns equal to a value.",
|
||||
"entityType": "TABLE",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableColumnNameToExist",
|
||||
"fullyQualifiedName": "tableColumnNameToExist",
|
||||
"displayName": "Table Column Name To Exist",
|
||||
"description": "This test defines the test TableColumnNameToExist. Test the table columns exists in the table.",
|
||||
"entityType": "TABLE",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableColumnToMatchSet",
|
||||
"fullyQualifiedName": "tableColumnToMatchSet",
|
||||
"displayName": "Table Column Names To Match Set",
|
||||
"description": "This test defines the test TableColumnToMatchSet. Test the table columns match a set of values. Unordered by default.",
|
||||
"entityType": "TABLE",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableCustomSQLQuery",
|
||||
"fullyQualifiedName": "tableCustomSQLQuery",
|
||||
"displayName": "Custom SQL Query",
|
||||
"description": "Test if a custom SQL returns 0 row or `COUNT(<x>) == 0`",
|
||||
"entityType": "TABLE",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableRowCountToBeBetween",
|
||||
"fullyQualifiedName": "tableRowCountToBeBetween",
|
||||
"displayName": "Table Row Count To Be Between",
|
||||
"description": "This defines the test TableRowCountToBeBetween. Test the number of rows to between to two values.",
|
||||
"entityType": "TABLE",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "tableRowCountToEqual",
|
||||
"fullyQualifiedName": "tableRowCountToEqual",
|
||||
"displayName": "Table Row Count To Equal",
|
||||
"description": "This schema defines the test TableRowCountToEqual. Test the number of rows equal to a value.",
|
||||
"entityType": "TABLE",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user