Repository navigation
feat(logs): write app log lines, getLog, Retry-After on NorbixError - #102
Merged
Merged
Conversation
Generated from the private stack (Hub 127.0.0.1:15101, Api 127.0.0.1:15102), gateway branch audit/logging (includes refactoringV2 as of 2026-10-21). (Type `gen` is not in this repo's commitlint list; `feat(types)` as in 019b278.) Logs: WriteLogs / WriteLogEntry / WriteLogsResponse (Api), GetLog / GetLogResponse (Hub), SaveLogSettings fields now optional (absent = unchanged), AwsCloudWatchLoggingIntegrationRequest/Dto, TenantLogEntryDto.origin. Also brought in from refactoringV2: RegisterFilesRequest (+ items/results), ownerUserId / reassignOwner on Files requests, endUserOwnRecords on schema DTOs. Nothing removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on NorbixError
- norbix.api.logs.writeLogs({ entries }) (generated, POST /{version}/logs on
the Api host) and the hand-written norbix.api.logs.write(line | lines).
- norbix.hub.logs.getLog({ id }) (generated, GET /{version}/logs/{Id}).
- NorbixError.retryAfterSeconds: the answer's Retry-After header in seconds
(a 429 CM-ERRORS-LOGGING-003 from writeLogs). New optional field; nothing
else on NorbixError changes. The SDK still never retries a POST.
- Tests with a fake fetch: every entry field in the body, one line wrapped in
a list, accepted count, 429 thrown once with retryAfterSeconds = 7, 400
CM-ERRORS-LOGGING-002, getLog id in the path, saveLogSettings sends only
the given fields, MongoDB integration save then testLoggingIntegration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d, test after save docs/api/logs.md: write / writeLogs with every field, the refusals, and retryAfterSeconds on a 429. docs/hub/logs.md: getLog, saveLogSettings sends only what you give, and nothing is delivered to a logging integration until its last test passed (call testLoggingIntegration after every save). README: api.logs row, Retry-After in Error handling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
generate-endpoints run over the regenerated types adds the methods whose DTOs arrived from gateway refactoringV2: hub.account repairEnvironmentBuiltIns, removeTeamMember, setTeamMemberRoleEnvironments, getAccountTeamInvitations, cancelTeamInvitation, updateTeamMember; hub.database endUserOwnRecordsReport; api.files registerFiles. Generated tests and reference pages only; no hand-written helpers for them in this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Release previewNext version on merge to semantic-release dry-run output
|
|
🎉 This PR is included in version 4.31.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
What changed
audit/logging(private stack):WriteLogs(Api),GetLog(Hub),SaveLogSettingsfields optional (absent = unchanged), AWS CloudWatch logging DTOs. Also refactoringV2 items (Files register, team endpoints) — nothing removed.norbix.api.logs.writeLogs({ entries })(generated) + hand-writtennorbix.api.logs.write(line | lines);norbix.hub.logs.getLog({ id }).NorbixError.retryAfterSeconds— theRetry-Afterheader in seconds (429CM-ERRORS-LOGGING-003). New optional field only.docs/api/logs.md,docs/hub/logs.md(test a logging integration after every save — nothing is delivered until its last test passed), README.Tests
npx vitest run66 files / 1087 tests green ·npm run lint·npx prettier --check .·npx tsc --noEmit·npm run build·npm run typecheck:dist.Expected version
4.31.0 (feat → minor).
🤖 Generated with Claude Code