dekart icon indicating copy to clipboard operation
dekart copied to clipboard

Config Name Is Incorrect For Data Source In Documentation

Open truly-indian opened this issue 1 year ago • 5 comments
trafficstars

The name of the config is incorrect in the documentation if you want to provide PG Data source. We should fix the name in the documentation.

truly-indian avatar Jun 21 '24 04:06 truly-indian

hello @truly-indian , thanks for opening issue. we have Dekart database for storing metadata and DEKART_POSTGRES_DATA_CONNECTION to manage only data to visualize. what do you mean it is incorrect? as I understood, you want to extend the name from DEKART_POSTGRES_DATA_CONNECTION to DEKART_POSTGRES_DATASOURCE_CONNECTION

Tsovak avatar Jun 21 '24 17:06 Tsovak

@Tsovak As you mentioned you have DEKART_POSTGRES_DATA_CONNECTION to manage only data to visualize. What I am saying is that in the code where you are connecting to PG you are using the config name as DEKART_POSTGRES_DATASOURCE_CONNECTION and in the documentation you are stating the config to be used as DEKART_POSTGRES_DATA_CONNECTION which is misleading and wasting a lot of developer time.

Please refer this line of code. The config name used here for pg connection is wrongly mentioned in the documentation. https://github.com/dekart-xyz/dekart/blob/2c1ac7163e55be66647f232bdb289dc662649f2f/src/server/pgjob/pgjob.go#L31

truly-indian avatar Jun 22 '24 00:06 truly-indian

@Tsovak As you mentioned you have DEKART_POSTGRES_DATA_CONNECTION to manage only data to visualize. What I am saying is that in the code where you are connecting to PG you are using the config name as DEKART_POSTGRES_DATASOURCE_CONNECTION and in the documentation you are stating the config to be used as DEKART_POSTGRES_DATA_CONNECTION which is misleading and wasting a lot of developer time.

Please refer this line of code. The config name used here for pg connection is wrongly mentioned in the documentation.

https://github.com/dekart-xyz/dekart/blob/2c1ac7163e55be66647f232bdb289dc662649f2f/src/server/pgjob/pgjob.go#L31

I see. It's my mistake. In the code, it calls DATASOURCE_CONNECTION in the env variable called DATA_CONNECTION in documentation as well.

it should be called DATASOURCE to keep a naming convention consistent with other parts of the project. Thanks a lot for contributing to the project.

Tsovak avatar Jun 22 '24 14:06 Tsovak

the related PR opened to fix the documentation https://github.com/dekart-xyz/www/pull/35

Tsovak avatar Jun 22 '24 14:06 Tsovak

Great, merged doc PR, thank @Tsovak , @truly-indian

delfrrr avatar Jun 24 '24 11:06 delfrrr