Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: add guidance for code change size and post-submission testing (#459)

Danny Xue676cae1712b
diff --git a/docs/coding-guide.md b/docs/coding-guide.md
index b1842fc58e..d5d5009fd9 100644
--- a/docs/coding-guide.md
+++ b/docs/coding-guide.md
@@ -6,7 +6,7 @@
# How to build a feature
-Split into smaller changes. This makes reviewer life easy and you will get faster feedback.
+It's highly recommended to split a large change into multiple smaller changes, and each pull request should only have one goal. This makes reviewer life easy, and you will get fast feedback. The change for each pull request should not exceed `500 lines` unless it's a trivial change such as renaming or refactoring.
If you are working on an end-to-end feature including both backend and frontend, the usual steps to follow are:
@@ -22,3 +22,7 @@ All in all, figure out the schema/data model first before moving forward and use
## Example commits
1. An end-to-end example showing you the code touched when adding a field to the schema and populate it all the way to UI: [Add path field to backup setting](https://github.com/bytebase/bytebase/commit/a7c28a4fefb2c2cff0c1ed9bb7fc043a47f535cd#diff-e547f2c710d4d67f2887ee13f4361d35537404829114e9c10d6aa5f48b3179dc)
+
+## Post-submission (Optional)
+
+Sometimes local developmenet environment has different setup and configurations than production release. After code is submitted, you can wait for an hour and use a docker image built from main branch head for testing. Change the image tag from `bytebase/bytebase:x.x.x` to `bytebase/bytebase:dev-ci` in [Docker Deployment Guide](https://docs.bytebase.com/install/docker).