hi team, I am new to Airbyte and was trying to mod...
# help-connector-development
m
hi team, I am new to Airbyte and was trying to modify an existing connector. I just made changes in spec file to see if those are reflected on UI or not. Ran below commands -
Copy code
./gradlew :airbyte-integrations:connectors:destination-iceberg:build
./gradlew :airbyte-integrations:connectors:destination-iceberg:airbyteDocker
docker run --rm airbyte/destination-iceberg:dev spec
in the output of the last command I can see the test changes I made on UI (just change of titles).
k
A message from kapa.ai
To see the changes you made in the connector reflected in the Airbyte UI, you need to update the connector version in the UI. Follow these steps: 1. Build the connector with your changes using the following command:
Copy code
./gradlew :airbyte-integrations:connectors:destination-iceberg:build
2. Start your Airbyte instance with the
VERSION=dev
flag:
Copy code
VERSION=dev docker-compose up
3. Go to the Airbyte UI, navigate to the Admin section, and find the connector you modified (destination-iceberg). 4. Update the version of the connector to
dev
. This will clear the cache and make the UI pick up your changes. Please note that each time you make changes to your implementation, you need to rebuild the connector image and update the version in the UI. For more information, refer to this [Slack conversation](https://airbytehq.slack.com/archives/C021JANJ6TY/p1669029239763219) and the [documentation on developing locally](https://docs.airbyte.com/contributing-to-airbyte/developing-locally).
m
but I am using run-ab-platform.sh
j
Are you using the
dev
image of the connector or the latest released version? If you go to settings > destinations you should see the used version:
For me it will use the
0.1.0
version of the image, you need to change that to
dev
so it will pick up your changes
m
yes, did that it's reflecting the changes now on UI
anything else which I need to consider... since I will now be changing the connector code...
thanks
j
no, you should be good
running the build command again will replace the
dev
image, so running a build, then running a sync should pick up the changes
ah, no there is actually one thing
the spec is cached, so if you change the spec, then you need to do the following:
• run build • Go to settings > preferences • Switch version back to 0.1.0 • Switch version to dev again (this will run the spec command again)
but for changes to the implementation you can just run another sync
m
thanks Joe
not sure what's sync ?
j
I meant running a replication for a connection
m
u mean this command "`./gradlew airbyte integrationsconnectorsdestination icebergairbyteDocker"`
j
No I meant going to the UI and actually running the connector
m
ok ok got it thanks