developers

No menu items for this category

Apply UI Changes

To be able to configure your connector from the UI and test it through there as well you will need to modify a file located within openmetadata-ui/src/main/resources/ui/src/utils/

Which file you need to modify depends on the Source Type you are developing a connector for: {source_type}ServiceUtils.ts.

The change itself is pretty straightforward since you only need to add the JSON Schema connection you created.

The file will be shortened and parts of it will be replaced with ... for readability.

  • import mysqlConnection from ...: Import your connection from the JSON Schema file.
  • getDatabaseConfig: In the switch statement within the getDatabaseConfig add a new case for your new Connector.

For example, if you were developing the myOwnConnection.json connector, you could add the following case:

where

  • MyOwn: Would be the Service Type defined on myOwnConnection.json
  • myOWnConnection: Would be the import startement
DatabaseServiceUtils.ts

If you pay attention when configuring a connector through the UI you will see that there is a follow along documentation to assist you.

In order to add this feature, you need to create a new file YourConnector.md within

openmetadata-ui/src/main/resources/ui/public/locales/en-US/{source_type}, in the proper Source Type.

The file will be shortened and parts of it will be replaced with ... for readability.

First we give an overview about the Connector and any requirements or important information the user should know

Within the ## Connection Details section you can see that we use some special notation $(id="{something}").

This is used to sync the documentation here with the property that the user is configuring at a given time (The "follow along" feature if you will).

In order to make it work properly you need to set the ID of each section to the property of the JSON Schema.

DatabaseServiceUtils.ts

It is possible that you need to implement a small piece of Java code to make everything work perfectly depending on the Connection Schema. You can learn more about it in the next step.

Create the Java ClassConverter

Learn what is the Java ClassConverter and how to create it