Hi there! How to change group name of airbyte asse...
# integration-airbyte
r
Hi there! How to change group name of airbyte asset? My code is that
Copy code
airbyte_instance = airbyte_resource.configured(
    {
        "host": "localhost",
        "port": "8000",
        "username": "airbyte",
        "password": "password"
    }
)

airbyte_assets = with_resources(
    build_airbyte_assets(
        connection_id="<my_connection_id>",
        destination_tables=["<my_tbale>"],
        asset_key_prefix=["stripe"]
    ),
    {"airbyte": airbyte_instance}
)
c
Hi Raphael. Apologies, there isn't a built in way at the moment. I'd recommend filing an issue for this so we can add it to our backlog. This is one possible workaround:
Copy code
from dagster._core.definitions.load_assets_from_modules import assets_with_attributes

assets_with_group = assets_with_attributes(airbyte_assets, ...)
using this method: https://github.com/dagster-io/dagster/blob/a87f72cd1b568382f51d6f8590f7dd9ca0001b2[…]s/dagster/dagster/_core/definitions/load_assets_from_modules.py
r
Claire, thanks so much for your help! I tried to follow your suggestion, but I’m having trouble passing the mandatory parameters that the assets_with_attributes function imposes. Mainly the cacheable_assets parameter
c
Yeah, unfortunately, this is not a public API, so it's not very well configured for external use. You can pass in empty lists for the
source_assets
and
cacheable_assets
params, which should work fine. Though warning is that since its not a public API, it might unexpectedly change or be removed. I'd recommend filing an issue to enable adding group names to airbyte assets.
daggy success 1
👍 1