chore!: remove stdout logging functionality#37114
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 91ac680 The changes in this PR will be included in the next version bump. This PR includes changesets to release 42 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughRemoves stdout logging/streaming: deletes the log queue implementation, stdout streamer, related Notifications stream and permission checks, REST endpoint and typings, ServerLogs UI and tab, Log_View_Limit setting and watcher, related tests and i18n keys; adds a migration to delete the setting and a changeset bumping related packages. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant App as Application
participant Logger as Logger (pino)
participant Queue as Log Queue (removed)
participant Stream as Stdout Streamer (removed)
participant Notif as Notifications (removed)
participant Client as ServerLogs UI (removed)
rect rgb(245,248,250)
Note over App,Client: Previous flow (before changes)
App->>Logger: write(log)
Logger->>Queue: enqueue(log)
Queue-->>Stream: provide queued entries
Stream-->>Notif: emit 'stdout'
Notif-->>Client: push via DDP stream
Client->>Client: render/auto-scroll logs
end
rect rgb(250,250,245)
Note over App,Logger: New flow (after changes)
App->>Logger: write(log)
Logger--x Queue: no enqueue
Logger--x Stream: no stdout emission
Client--x Client: ServerLogs UI removed
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.0.0 #37114 +/- ##
=================================================
+ Coverage 70.24% 70.27% +0.03%
=================================================
Files 2999 2999
Lines 102301 102301
Branches 18221 18222 +1
=================================================
+ Hits 71861 71892 +31
+ Misses 28576 28540 -36
- Partials 1864 1869 +5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
b3153ec to
09c0ccc
Compare
09c0ccc to
7d12033
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
apps/meteor/client/views/admin/viewLogs/ViewLogsPage.tsx (1)
11-25: Consider removing the single-tab Tabs component.Since only the Analytics tab remains after removing the Logs tab, the
Tabscomponent andtabstate serve no interactive purpose. The UI would be cleaner without the non-interactive single-tab element.Apply this diff to simplify the component:
const ViewLogsPage = (): ReactElement => { const { t } = useTranslation(); - const [tab, setTab] = useState('Analytics'); return ( <Page background='tint'> <PageHeader title={t('Reports')} /> - <Margins blockEnd={24}> - <Tabs> - <Tabs.Item onClick={() => setTab('Analytics')} selected={tab === 'Analytics'}> - {t('Analytic_reports')} - </Tabs.Item> - </Tabs> - </Margins> <PageContent> <AnalyticsReports /> </PageContent>apps/meteor/server/startup/migrations/v324.ts (1)
8-10: Consider removing unnecessary Promise.all wrapper.The
Promise.allwrapper is unnecessary when awaiting a single promise. This is a minor clarity improvement.Apply this diff to simplify:
async up() { - await Promise.all([Settings.deleteOne({ _id: 'Log_View_Limit' })]); + await Settings.deleteOne({ _id: 'Log_View_Limit' }); },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (16)
.changeset/tough-baboons-wash.md(1 hunks)apps/meteor/app/api/server/v1/misc.ts(0 hunks)apps/meteor/client/views/admin/viewLogs/ServerLogs.tsx(0 hunks)apps/meteor/client/views/admin/viewLogs/ViewLogsPage.tsx(1 hunks)apps/meteor/server/configuration/configureLogLevel.ts(1 hunks)apps/meteor/server/modules/notifications/notifications.module.ts(0 hunks)apps/meteor/server/settings/logs.ts(0 hunks)apps/meteor/server/startup/migrations/index.ts(1 hunks)apps/meteor/server/startup/migrations/v324.ts(1 hunks)apps/meteor/server/stream/stdout.ts(0 hunks)apps/meteor/tests/end-to-end/api/miscellaneous.ts(1 hunks)packages/ddp-client/src/types/streams.ts(0 hunks)packages/logger/src/getPino.ts(0 hunks)packages/logger/src/index.ts(0 hunks)packages/logger/src/logQueue.ts(0 hunks)packages/rest-typings/src/v1/misc.ts(0 hunks)
💤 Files with no reviewable changes (10)
- packages/logger/src/logQueue.ts
- apps/meteor/server/stream/stdout.ts
- apps/meteor/app/api/server/v1/misc.ts
- packages/logger/src/index.ts
- packages/ddp-client/src/types/streams.ts
- apps/meteor/server/modules/notifications/notifications.module.ts
- packages/logger/src/getPino.ts
- apps/meteor/client/views/admin/viewLogs/ServerLogs.tsx
- apps/meteor/server/settings/logs.ts
- packages/rest-typings/src/v1/misc.ts
🔇 Additional comments (3)
apps/meteor/server/configuration/configureLogLevel.ts (1)
1-16: LGTM!The removal of the
Log_View_Limitwatcher andsetQueueLimitimport is clean and consistent with the broader stdout logging removal. TheLog_Levelfunctionality is correctly preserved.apps/meteor/tests/end-to-end/api/miscellaneous.ts (1)
8-8: No references tomethodCallfound in miscellaneous.ts.apps/meteor/server/startup/migrations/index.ts (1)
31-31: Confirm missing v323 migration
No file or references for v323 found in apps/meteor/server/startup/migrations; ensure skipping v323 is intentional or add the missing migration.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.changeset/tough-baboons-wash.md (1)
8-8: Tighten wording (imperative + Oxford comma).Use imperative style and add the comma for consistency with release notes.
-Removes stdout logging functionality, related components and settings +Remove stdout logging functionality, related components, and settings
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
.changeset/tough-baboons-wash.md(1 hunks)
🔇 Additional comments (1)
.changeset/tough-baboons-wash.md (1)
1-8: Add brief BREAKING note and migration hints.Since these are major bumps, add a one-liner about removed surfaces (API/UI/setting) to aid consumers.
Suggested addition after the description:
- BREAKING: Removes stdout streaming API and Server Logs UI; deletes Log_View_Limit setting. Remove uses of stdout stream, REST endpoints, and update any scripts relying on them.
To verify no leftovers remain, run:
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
ARCH-1799
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
Refactor
Chores