Skip to content

fix(web): trailing slash on workspace notification list API - #9521

Merged
sriramveeraghanta merged 1 commit into
makeplane:previewfrom
misterkuka:fix/notification-list-trailing-slash
Aug 3, 2026
Merged

sriramveeraghanta merged 1 commit into
makeplane:previewfrom
misterkuka:fix/notification-list-trailing-slash

Conversation

@misterkuka

@misterkuka misterkuka commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • WorkspaceNotificationService.list() / fetchNotifications() called /users/notifications without a trailing slash.
  • Backend only registers .../users/notifications/ (Django).
  • Unread count (.../unread/) worked; the inbox list 404'd (often surfaces as 500 behind Traefik on self-hosted).
  • Every sibling method already used a trailing slash.

Changes

  • packages/services/src/workspace/notification.service.ts — append / on list()
  • apps/web/core/services/workspace-notification.service.ts — same for fetchNotifications()

Fixes

Closes #9489

Test plan

  • Open workspace inbox with existing notifications
  • Network: GET /api/workspaces/{slug}/users/notifications/?… → 200 with results
  • Badge unread count still works
  • Self-hosted + Traefik no longer shows 500 for the list call

Notes

Confirmed still present on v1.3.1, v1.4.0, and preview HEAD before this change.

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability when loading workspace notifications by correcting the notification listing endpoint.

list() omitted the trailing slash while every sibling method and the
Django route require /users/notifications/. Self-hosted (Traefik)
surfaces the upstream 404 as 500; unread badge still works.

Fixes makeplane#9489
@CLAassistant

CLAassistant commented Jul 31, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 29004c03-9bbf-4ac0-8efc-a73fb4b79ba9

📥 Commits

Reviewing files that changed from the base of the PR and between 3985693 and e511976.

📒 Files selected for processing (2)
  • apps/web/core/services/workspace-notification.service.ts
  • packages/services/src/workspace/notification.service.ts

📝 Walkthrough

Walkthrough

Both notification listing services now request trailing-slash endpoints. Existing pagination and response handling remain unchanged.

Changes

Notification endpoint alignment

Layer / File(s) Summary
Align notification list request paths
apps/web/core/services/workspace-notification.service.ts, packages/services/src/workspace/notification.service.ts
The notification listing requests now include trailing slashes. Pagination parameters and response/error handling are unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: sriramveeraghanta

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the workspace notification API trailing-slash fix.
Description check ✅ Passed The description explains the bug, root cause, changes, affected behavior, test plan, and linked issue.
Linked Issues check ✅ Passed The changes implement the trailing-slash fix required by issue #9489 in both notification service implementations.
Out of Scope Changes check ✅ Passed Both one-line changes directly address issue #9489, with no unrelated code changes identified.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@sriramveeraghanta
sriramveeraghanta merged commit 1942665 into makeplane:preview Aug 3, 2026
12 checks passed
disciple-zarrin pushed a commit to disciple-zarrin/plane that referenced this pull request Aug 15, 2026
…#9521)

list() omitted the trailing slash while every sibling method and the
Django route require /users/notifications/. Self-hosted (Traefik)
surfaces the upstream 404 as 500; unread badge still works.

Fixes makeplane#9489
szymczag added a commit to szymczag/hangar that referenced this pull request Nov 3, 2026
Bring Hangar onto upstream v1.4.3 as one signed commit: preview requires
signed commits and 24 of the upstream commits are unsigned, so the tag
cannot be merged directly. Upstream package versions stay at Hangar's own.

Where upstream and Hangar fixed the same endpoint, the stricter variant
is kept: Hangar's all-or-nothing sub-issue reparenting with row locks and
cycle checks, validated asset metadata, deduplicating assignee/label
validation and the password-auth throttle. Public comment updates and
deletes now combine Hangar's field allowlist with upstream's workspace and
EXTERNAL-access binding. SECUR-247 (project membership required to
publish) is taken from upstream with its tests, alongside Hangar's own
deploy-board tests. Upstream's MinIO image moves are left out; object
storage moves to SeaweedFS separately.

Upstream commits:
- bc0b1bb [GIT-384] Fix voting on published work items with no votes (makeplane#10103)
- dc93e16 [SECUR-247] fix(security): require project membership to publish (makeplane#10033) (makeplane#10034)
- 90717e5 fix: address v1.4.3 release review comments (makeplane#9925)
- b348e44 [INFRA-1039] fix(deployments): find the latest release when the GitHub API returns compact JSON (makeplane#9916)
- 5864647 [INFRA-804] fix(airgapped and minio): harden community restore-airgapped.sh script and minio image fix (makeplane#9727)
- 5fcc65f fix(security): bump the fast-uri pin to 3.1.8 (makeplane#9919)
- ec1e5de fix(deps): resolve dependabot security alerts (makeplane#9839)
- 1258f53 fix(security): clear the 2026-09-10 nightly Trivy findings (makeplane#9806)
- 00ecb12 [INFRA-843] fix(security): clear nightly Trivy findings (makeplane#9773)
- a97680d chore(deps): bump sanitize-html (makeplane#9736)
- c6be1fa chore: upgrade pnpm to 11.10, turbo to latest, fix dependabot alert (makeplane#9734)
- b2dd757 [WEB-9166] fix(project): scope project-join membership lookup to the invited project (makeplane#9866)
- a5595ea [WEB-8289] fix: scope draft-to-issue conversion to the draft owner (makeplane#9443)
- cd98fab fix(api): avoid re-crawling issue link on update when url is unchanged (makeplane#9763)
- c9b56cf [GIT-221] fix(cycle): guard against no end_date when archiving cycle (makeplane#9200)
- e3324b6 fix(api): validate assignees/labels in IssueSerializer instead of silently dropping invalid ids (makeplane#9526)
- 5c4d9b1 [WEB-8352] fix(security): scope SubIssuesEndpoint to the URL project (makeplane#9466)
- 1e1248a [WEB-8283] fix: bind Spaces board object IDs to the anchor's project (makeplane#9442)
- 2146cfd [WEB-8110] fix: sanitize page list order_by against an allowlist (makeplane#9387)
- 79b6075 [WEB-8103] fix: stop leaking webhook HMAC secret_key on reads (makeplane#9382)
- b99f74d [WEB-7946] fix: add rate limiting to email/password sign-in and sign-up endpoints (makeplane#9335)
- 1c8a60f [WEB-8632] fix(web): auto-reload on stale chunk load failure during navigation (makeplane#9579)
- 31853ab chore: resolve dependabot security alerts (pnpm + pip) (makeplane#9549)
- fa02716 fix(web): guard unguarded data derefs causing work-item and layout crashes (makeplane#9546)
- 25c6843 fix: enforce FILE_SIZE_LIMIT on published Space asset upload (makeplane#9242)
- c5951e7 [WEB-8510] fix(web): fix clipped/overlapping LayoutDropDown button in Create View modal (makeplane#9542)
- a18177c feat(api): enhance workspace module query to include member IDs (makeplane#9541)
- 1942665 fix(web): add trailing slash to notification list API call (makeplane#9521)
- 65f4a99 docs: add Zenith Hosting deploy option (makeplane#9529)
- 1ed664e [WEB-8512] feat: add workspace member reactivation command (makeplane#9520)
szymczag added a commit to szymczag/hangar that referenced this pull request Nov 3, 2026
Bring Hangar onto upstream v1.4.3 as one signed commit: preview requires
signed commits and 24 of the upstream commits are unsigned, so the tag
cannot be merged directly. Upstream package versions stay at Hangar's own.

Where upstream and Hangar fixed the same endpoint, the stricter variant
is kept: Hangar's all-or-nothing sub-issue reparenting with row locks and
cycle checks, validated asset metadata, deduplicating assignee/label
validation and the password-auth throttle. Public comment updates and
deletes now combine Hangar's field allowlist with upstream's workspace and
EXTERNAL-access binding. SECUR-247 (project membership required to
publish) is taken from upstream with its tests, alongside Hangar's own
deploy-board tests. Upstream's MinIO image moves are left out; object
storage moves to SeaweedFS separately.

Upstream commits:
- bc0b1bb [GIT-384] Fix voting on published work items with no votes (makeplane#10103)
- dc93e16 [SECUR-247] fix(security): require project membership to publish (makeplane#10033) (makeplane#10034)
- 90717e5 fix: address v1.4.3 release review comments (makeplane#9925)
- b348e44 [INFRA-1039] fix(deployments): find the latest release when the GitHub API returns compact JSON (makeplane#9916)
- 5864647 [INFRA-804] fix(airgapped and minio): harden community restore-airgapped.sh script and minio image fix (makeplane#9727)
- 5fcc65f fix(security): bump the fast-uri pin to 3.1.8 (makeplane#9919)
- ec1e5de fix(deps): resolve dependabot security alerts (makeplane#9839)
- 1258f53 fix(security): clear the 2026-09-10 nightly Trivy findings (makeplane#9806)
- 00ecb12 [INFRA-843] fix(security): clear nightly Trivy findings (makeplane#9773)
- a97680d chore(deps): bump sanitize-html (makeplane#9736)
- c6be1fa chore: upgrade pnpm to 11.10, turbo to latest, fix dependabot alert (makeplane#9734)
- b2dd757 [WEB-9166] fix(project): scope project-join membership lookup to the invited project (makeplane#9866)
- a5595ea [WEB-8289] fix: scope draft-to-issue conversion to the draft owner (makeplane#9443)
- cd98fab fix(api): avoid re-crawling issue link on update when url is unchanged (makeplane#9763)
- c9b56cf [GIT-221] fix(cycle): guard against no end_date when archiving cycle (makeplane#9200)
- e3324b6 fix(api): validate assignees/labels in IssueSerializer instead of silently dropping invalid ids (makeplane#9526)
- 5c4d9b1 [WEB-8352] fix(security): scope SubIssuesEndpoint to the URL project (makeplane#9466)
- 1e1248a [WEB-8283] fix: bind Spaces board object IDs to the anchor's project (makeplane#9442)
- 2146cfd [WEB-8110] fix: sanitize page list order_by against an allowlist (makeplane#9387)
- 79b6075 [WEB-8103] fix: stop leaking webhook HMAC secret_key on reads (makeplane#9382)
- b99f74d [WEB-7946] fix: add rate limiting to email/password sign-in and sign-up endpoints (makeplane#9335)
- 1c8a60f [WEB-8632] fix(web): auto-reload on stale chunk load failure during navigation (makeplane#9579)
- 31853ab chore: resolve dependabot security alerts (pnpm + pip) (makeplane#9549)
- fa02716 fix(web): guard unguarded data derefs causing work-item and layout crashes (makeplane#9546)
- 25c6843 fix: enforce FILE_SIZE_LIMIT on published Space asset upload (makeplane#9242)
- c5951e7 [WEB-8510] fix(web): fix clipped/overlapping LayoutDropDown button in Create View modal (makeplane#9542)
- a18177c feat(api): enhance workspace module query to include member IDs (makeplane#9541)
- 1942665 fix(web): add trailing slash to notification list API call (makeplane#9521)
- 65f4a99 docs: add Zenith Hosting deploy option (makeplane#9529)
- 1ed664e [WEB-8512] feat: add workspace member reactivation command (makeplane#9520)
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.

[bug]: Notification list endpoint 404s due to missing trailing slash in frontend service call

3 participants