docs: complete error-codes.md (46 -> 66 codes) + enforce enum-doc sync#490
Merged
Conversation
…c in check-error-codes docs/error-codes.md had drifted 20 codes behind the ErrorCode enum (missing all Data Apps, Developer Portal, Flow, serve-envelope, and newer Sync/Auth codes). The doc is publicly linked from the new help-docs CLI section (keboola/connection-docs#1015), so completeness now matters. - Add the 20 missing codes to their category sections; new sections: Flow, Data Apps, Developer Portal. DATA_APP_INVALID_REPO and DATA_APP_REPO_VALIDATION_BLOCKING are marked reserved (defined in the enum since 0.28.0 but not currently emitted; validate-repo signals via exit 1). - Extend scripts/check_error_codes.py (make check-error-codes) with an enum-vs-doc completeness check: every ErrorCode member must appear in the doc and vice versa, so the doc cannot silently drift again. --list now reuses the shared enum parser. - Tests: TestErrorCodesDocCompleteness in tests/test_integration.py (doc matches enum; missing-code and stale-code drift both detected).
Iamfle4ka
pushed a commit
to keboola/connection-docs
that referenced
this pull request
Jul 20, 2026
…eenshot agent create gets required --cli claude; agent test (ad-hoc only) replaced with agent run <task-id>; agent runs takes the task ID; result notes that scheduled firing needs kbagent serve running. Error-codes paragraph drops the category count too (17 incoming via keboola/cli#490). Adds the interactive lineage-browser screenshot (demo-project pipeline: extractor tables -> two transformations -> BDM outputs) to the lineage reference bullet. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 20, 2026
Closed
padak
added a commit
that referenced
this pull request
Jul 20, 2026
Backfills changelog entries for ten PRs merged since v0.66.1 without a version bump (#465 #486 #487 #488 #490 #492 #493 #494 #495 + #500), attributed to their bump windows (0.67.0 / 0.70.0 / 0.70.1 / 0.71.0), and aligns the version at 0.71.0 as the catch-up release: 0.67.0-0.70.1 were merged to main but never tagged or published, so auto-update users are still on 0.66.1. The v0.71.0 tag + GitHub Release follow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
docs/error-codes.mdhad drifted 20 codes behind theErrorCodeenum (46 documented vs 66 members) — everything added since ~0.22.0 was missing: Data Apps, Developer Portal, Flow, thekbagent serveenvelope codes, and the newer Sync/Auth codes. The doc is now publicly linked from the new help-docs CLI section (keboola/connection-docs#1015), so an incomplete list ships broken public documentation.What
docs/error-codes.md: adds the 20 missing codes to their category sections; new sections Flow, Data Apps, Developer Portal. Descriptions were written from the actual emit sites, not guessed.DATA_APP_INVALID_REPOandDATA_APP_REPO_VALIDATION_BLOCKINGare honestly marked reserved — defined in the enum since 0.28.0 but not emitted anywhere (validate-reposignals findings via exit 1).scripts/check_error_codes.py(make check-error-codes): new enum-vs-doc completeness check — everyErrorCodemember must appear in the doc's tables and vice versa, so the doc cannot silently drift again.--listnow reuses the shared enum parser.TestErrorCodesDocCompletenessintests/test_integration.py— doc matches enum; a pruned code and a planted stale row are both detected.Verification
uv run python scripts/check_error_codes.py→OK: no raw error_code literals; docs/error-codes.md matches the enum.uv run pytest tests/test_integration.py -q→ 6 passed, 3 skipped (env-gated)ruff check+ruff format --checkcleanNo version bump: docs + local-only CI guard, no runtime behavior change.