cognitedata / inso-bootstrap-cli

CLI and GitHub-Action to configure and maintain CDF Projects (Groups, Data Sets, RAW DBs)
Apache License 2.0
4 stars 2 forks source link

Possibilty to skip creation of RAW DBs #28

Closed gaetan-h closed 2 years ago

gaetan-h commented 2 years ago

We have an issue with the creation of RAW DBs whose names exceed the number of characters (32!) Would it be possible to have a flag to skip the creation of RAW DBs? This is not necessarily something that is used for every project, particularly if we go directly to datapoints (like DB extractor or many customer extractors running on extractor-utils) the best would be of course to increase the number of characters in the RAW DB name, but that is out of our control

Getting the error below cognite.client.exceptions.CogniteAPIError: dbName is too long. dbName cst2:prj:001:ship:002:rawdb:state cannot have more than 32 characters.

by setting this line to False, everything runs smoothly https://github.com/cognitedata/inso-bootstrap-cli/blob/4d4d14992d3a84c612dff8cc973908580727802e/incubator/bootstrap_cli/__main__.py#L823

i hope it is possible to consider such a flag :) But i understand if you think it would make it too custom, but that would prevent us from using it and we would need to fork the repo to adapt it to our needs which we would like to avoid 👍

spex66 commented 2 years ago

@gaetan-h pls checkout branch new-flag-with-raw-capability

spex66 commented 2 years ago

skipping some of the "templated access-control packages" (like RAW DBs) is against the idea of this approach

gaetan-h commented 2 years ago

Thanks @spex66 will check it out :)

gaetan-h commented 2 years ago

Looks good, completed successfully now

spex66 commented 2 years ago

closing this issue