Skip to content

feat: add Atom feeds for organizations - #1684

Open
eruimaduro wants to merge 1 commit into
dev-null-sh:productionfrom
eruimaduro:feat/organization-feeds
Open

eruimaduro wants to merge 1 commit into
dev-null-sh:productionfrom
eruimaduro:feat/organization-feeds

Conversation

@eruimaduro

@eruimaduro eruimaduro commented Nov 28, 2026 •

Copy link
Copy Markdown

Summary

Organizations post under their own handle, but only users had an Atom feed. Now /@{handle}/feed.atom serves the latest commits of a user or an organization, and organization pages link to it, so feed readers find it from the page URL.

Changes

  • The feed route binds a Profile (like og.png): ProfileFeedController and CreateProfileFeed replace UserFeedController and CreateUserFeed.
  • Organization pages and commit pages from organizations advertise the feed.
  • Handles of developers who have not joined get an empty feed instead of a 404.

Validation

  • composer test:lint, composer test:types: pass.
  • composer test:type-coverage: 100%.
  • bun run test:unit: 333 passed.
  • pest --parallel --ci: 6729 passed.

Independent review

PASS (code), visual N/A, on base baa02bbf and head f41233af.

Limitations

The coverage run could not execute locally (no coverage driver); CI runs it.

Summary by CodeRabbit

  • New Features
    • Atom feeds are now available for both developer and organization profiles, showing their latest 50 approved top-level commits.
    • Profile pages and link previews include feed links for organizations as well as developers.
    • Feed details reflect the profile’s name, handle, and bio, and update when the profile or its commits change.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Atom feed endpoint now resolves a profile handle and generates feeds for developer and organization profiles. Page metadata includes profile feed links for commits, users, and organizations. Tests cover organization feed contents and profiles without a joined developer.

Changes: Profile Atom feeds

Layer / File(s) Summary
Generate and serve profile feeds
app/Actions/CreateProfileFeed.php, app/Http/Controllers/ProfileFeedController.php, app/Http/Controllers/UserFeedController.php (removed), routes/web.php, tests/Feature/Controllers/ProfileFeedControllerTest.php, KNOWLEDGE_BASE.md
The feed action and route now use a profile. The feature tests cover organization feed contents and identity, exclusion of member-authored commits from organization feeds, and profiles without a joined developer. The documentation describes feeds for developers and organizations.
Add profile feeds to page metadata
app/Services/PageMetadata.php, tests/Feature/Controllers/OrganizationControllerTest.php, tests/Unit/Services/PageMetadataTest.php
Commit, user, and organization metadata now include profile feed details. Tests check organization feed metadata and the organization feed link in a guest link preview.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant WebRoute
  participant ProfileFeedController
  participant CreateProfileFeed
  participant Profile
  Client->>WebRoute: Request feed by profile handle
  WebRoute->>ProfileFeedController: Resolve profile and call show
  ProfileFeedController->>CreateProfileFeed: handle(profile)
  CreateProfileFeed->>Profile: Load profile commits
  Profile-->>CreateProfileFeed: Return commits
  CreateProfileFeed-->>ProfileFeedController: Return Atom feed
  ProfileFeedController-->>Client: Return Atom XML response
Loading

Possibly related PRs

  • dev-null-sh/dev-null.sh#1359: This PR also addresses the absence of Atom feeds for organization commits and updates organization-aware metadata.

Suggested reviewers: xheaven, mnapoli

Merge Risk: Minimal · up to f4123

This change adds Atom feeds for organizations and moves the feed route to profile handles. No merge-blocking risk was found, and tests are reported to cover the main organization and empty-feed cases.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat: add Atom feeds for organizations" matches the main change. The PR adds an organization Atom feed at /@{handle}/feed.atom, renames the user feed classes to profile-based ones (CreatePr…
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.
Full details: Title check

Explanation

The title "feat: add Atom feeds for organizations" matches the main change. The PR adds an organization Atom feed at /@{handle}/feed.atom, renames the user feed classes to profile-based ones (CreateProfileFeed, ProfileFeedController), and links organization pages to the feed. The title names the primary change, though it does not mention the rename to profile-based feeds, which is a secondary detail.

Finishing Touches

Generate unit tests (beta)

  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eaa8e10b-2f73-4357-a14f-da5a8b1c6a40
Commits

Reviewing files that changed from the base of the PR and between baa02bb and f41233a.

Files selected for processing: 9

  • KNOWLEDGE_BASE.md
  • app/Actions/CreateProfileFeed.php
  • app/Http/Controllers/ProfileFeedController.php
  • app/Http/Controllers/UserFeedController.php
  • app/Services/PageMetadata.php
  • routes/web.php
  • tests/Feature/Controllers/OrganizationControllerTest.php
  • tests/Feature/Controllers/ProfileFeedControllerTest.php
  • tests/Unit/Services/PageMetadataTest.php
Files with no reviewable changes: 1

  • app/Http/Controllers/UserFeedController.php

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

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.

1 participant