Skip to content

Feat: add optional code to log messages - #9

Merged
volfpeter merged 1 commit into
mainfrom
feat/log-message-code
Oct 26, 2026
Merged

volfpeter merged 1 commit into
mainfrom
feat/log-message-code

Conversation

@volfpeter

@volfpeter volfpeter commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Log messages can now include an optional machine-readable code, so clients can identify message types without parsing the human-readable text. The code is omitted when none is associated, and servers may provide codes beyond those documented.
    • Documentation now describes uavs.limit_reached, indicating that the server has reached its UAV-management limit.

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 649e051f-f35a-4978-a9a0-5812eb70c9a1
Commits

Reviewing files that changed from the base of the PR and between a4bbb07 and 91dfccd.

Files selected for processing: 3
  • doc/modules/ROOT/pages/types.adoc
  • src/flockwave/spec/definitions.json
  • types/index.d.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The LogMessage contract now includes an optional string code in the schema and TypeScript declaration. Documentation describes when it is omitted, its use as a machine-readable identifier, and the uavs.limit_reached code.

Changes: LogMessage code field

Layer / File(s) Summary
Add the code field to LogMessage
src/flockwave/spec/definitions.json, types/index.d.ts, doc/modules/ROOT/pages/types.adoc
The schema and TypeScript declaration add an optional string code. The documentation describes its omission when absent, its use as a machine-readable identifier, and the uavs.limit_reached code for the server’s UAV-management limit.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Feature

Merge Risk: Minimal · up to 91dfc

No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title "Feat: add optional code to log messages" matches the main change in the changeset. The PR adds an optional string code field to LogMessage in the docs (types.adoc), the JSON spec (defin…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.)

Full details: Title check

Explanation

The title "Feat: add optional code to log messages" matches the main change in the changeset. The PR adds an optional string code field to LogMessage in the docs (types.adoc), the JSON spec (definitions.json), and the TypeScript declarations (types/index.d.ts). The PR objectives state the same intent. The title is concise, specific, and follows a conventional-commit style prefix.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.66%. Comparing base (a4bbb07) to head (91dfccd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   68.66%   68.66%           
=======================================
  Files           5        5           
  Lines         150      150           
  Branches       14       14           
=======================================
  Hits          103      103           
  Misses         37       37           
  Partials       10       10           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@volfpeter volfpeter changed the title feat: add optional code to log messages Feat: add optional code to log messages Oct 26, 2026
@volfpeter
volfpeter merged commit 65c7f8c into main Oct 26, 2026
12 checks passed
@volfpeter
volfpeter deleted the feat/log-message-code branch October 26, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants