Hey Airbyte team, how to better do API development...
# replication-troubleshooting
d
Hey Airbyte team, how to better do API development? As i test i added a log statement in one of API method. In order to see the log, i have to stop docker, build again with
SUB_BUILD=PLATFORM ./gradlew build
and then make docker up again. This is such a productivity killer. i must be missing something. I already try to build only server
./gradlew :airbyte-server:build
also tried
--continuous
flag so gradle keep building. But i must stop docker and start again to see it in effect. i guess i understand why docker needs to be restart so it can pick up new jar. but how to do API development in more easy/better way. Can someone please assist? I am trying to debug and create new API/methods. Thank you very much for your help in advance.
✅ 1
m
You can add unit tests to make sure your logs or changes are working.
d
is there no better way to do API development other than writing unit tests? @Marcos Marx (Airbyte) and thanks for reply
m
Adding unit test and running them are the faster way to validate a change (with some exceptions though). I recommend to you use Intellij so you can debug/step-by-step the code execution.
d
i see, thank you @Marcos Marx (Airbyte)