Skip to content

Commit

Permalink
Fix open-metadata#11468: Fix salesforce scheme issue (open-metadata#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
ulixius9 authored May 8, 2023
1 parent 94ef30c commit e20f75f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

logger = ingestion_logger()

SALESFORCE_DEFAULT_SCHEMA = "salesforce"


class SalesforceSource(DatabaseServiceSource):
"""
Expand Down Expand Up @@ -109,8 +111,7 @@ def get_database_schema_names(self) -> Iterable[str]:
"""
return schema names
"""
schema_name = self.service_connection.scheme.name
yield schema_name
yield SALESFORCE_DEFAULT_SCHEMA

def yield_database_schema(
self, schema_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Properties

- **`type`**: Service Type. Refer to *#/definitions/salesforceType*. Default: `Salesforce`.
- **`scheme`**: SQLAlchemy driver scheme options. Refer to *#/definitions/salesforceScheme*. Default: `salesforce`.
- **`username`** *(string)*: Username to connect to the Salesforce. This user should have privileges to read all the metadata in Redshift.
- **`password`** *(string)*: Password to connect to the Salesforce.
- **`securityToken`** *(string)*: Salesforce Security Token.
Expand All @@ -23,7 +22,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Definitions

- **`salesforceType`** *(string)*: Service type. Must be one of: `['Salesforce']`. Default: `Salesforce`.
- **`salesforceScheme`** *(string)*: SQLAlchemy driver scheme options. Must be one of: `['salesforce']`. Default: `salesforce`.


Documentation file automatically generated at 2022-07-14 10:51:34.749986.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Properties

- **`type`**: Service Type. Refer to *#/definitions/salesforceType*. Default: `Salesforce`.
- **`scheme`**: SQLAlchemy driver scheme options. Refer to *#/definitions/salesforceScheme*. Default: `salesforce`.
- **`username`** *(string)*: Username to connect to the Salesforce. This user should have privileges to read all the metadata in Redshift.
- **`password`** *(string)*: Password to connect to the Salesforce.
- **`securityToken`** *(string)*: Salesforce Security Token.
Expand All @@ -23,7 +22,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Definitions

- **`salesforceType`** *(string)*: Service type. Must be one of: `['Salesforce']`. Default: `Salesforce`.
- **`salesforceScheme`** *(string)*: SQLAlchemy driver scheme options. Must be one of: `['salesforce']`. Default: `salesforce`.


Documentation file automatically generated at 2022-07-14 10:51:34.749986.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Properties

- **`type`**: Service Type. Refer to *#/definitions/salesforceType*. Default: `Salesforce`.
- **`scheme`**: SQLAlchemy driver scheme options. Refer to *#/definitions/salesforceScheme*. Default: `salesforce`.
- **`username`** *(string)*: Username to connect to the Salesforce. This user should have privileges to read all the metadata in Redshift.
- **`password`** *(string)*: Password to connect to the Salesforce.
- **`securityToken`** *(string)*: Salesforce Security Token.
Expand All @@ -23,7 +22,5 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Definitions

- **`salesforceType`** *(string)*: Service type. Must be one of: `['Salesforce']`. Default: `Salesforce`.
- **`salesforceScheme`** *(string)*: SQLAlchemy driver scheme options. Must be one of: `['salesforce']`. Default: `salesforce`.


Documentation file automatically generated at 2022-07-14 10:51:34.749986.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Properties

- **`type`**: Service Type. Refer to *#/definitions/salesforceType*. Default: `Salesforce`.
- **`scheme`**: SQLAlchemy driver scheme options. Refer to *#/definitions/salesforceScheme*. Default: `salesforce`.
- **`username`** *(string)*: Username to connect to the Salesforce. This user should have privileges to read all the metadata in Redshift.
- **`password`** *(string)*: Password to connect to the Salesforce.
- **`securityToken`** *(string)*: Salesforce Security Token.
Expand All @@ -23,7 +22,6 @@ slug: /main-concepts/metadata-standard/schemas/entity/services/connections/datab
## Definitions

- **`salesforceType`** *(string)*: Service type. Must be one of: `['Salesforce']`. Default: `Salesforce`.
- **`salesforceScheme`** *(string)*: SQLAlchemy driver scheme options. Must be one of: `['salesforce']`. Default: `salesforce`.


Documentation file automatically generated at 2022-07-14 10:51:34.749986.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
"type": "string",
"enum": ["Salesforce"],
"default": "Salesforce"
},
"salesforceScheme": {
"description": "SQLAlchemy driver scheme options.",
"type": "string",
"enum": ["salesforce"],
"default": "salesforce"
}
},
"properties": {
Expand Down

0 comments on commit e20f75f

Please sign in to comment.