2754e3e820
chore(application): fix unused import and clippy warnings in thoughts use cases
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m7s
test / unit (pull_request) Successful in 16m39s
test / integration (pull_request) Failing after 17m43s
2026-05-16 11:31:07 +02:00
4b1e7565ac
feat(bootstrap): wire ApiKeyServiceImpl + PgEngagementRepository
2026-05-16 11:21:19 +02:00
5618da7d37
refactor(presentation): replace impl FromAppState boilerplate with deps_struct! macro in remaining handlers
2026-05-16 11:19:04 +02:00
e9f7851400
refactor(presentation/feed): call ports directly — remove shallow use case wrappers
2026-05-16 11:16:57 +02:00
d701a40e61
feat(presentation/thoughts): use enrichment use cases — real engagement stats, no hardcoded zeros
2026-05-16 11:16:54 +02:00
eea1d3fe24
feat(presentation): add deps_struct! macro; add api_key_auth + engagement to AppState; use ApiKeyService in extractor
2026-05-16 11:10:45 +02:00
90866aea58
refactor(application): delete shallow feed use cases — keep only get_home_feed
2026-05-16 11:09:26 +02:00
2d2b5dde6a
feat(application): add get_thought_view + get_thread_views use cases with real engagement stats
2026-05-16 11:08:31 +02:00
bf5fd618cb
feat(postgres): add PgEngagementRepository with batch stats query
2026-05-16 11:04:54 +02:00
ae8a3dc6ed
feat(postgres): add list_paginated + find_by_ids to PgUserRepository
2026-05-16 11:04:33 +02:00
0222a168db
feat(auth): add ApiKeyServiceImpl — moves sha256 hashing out of presentation
2026-05-16 11:03:07 +02:00
d3223923e4
feat(domain/testing): add ApiKeyService, EngagementRepository, list_paginated, find_by_ids to TestStore
2026-05-16 11:01:54 +02:00
f4db518167
feat(domain): add ApiKeyService, EngagementRepository ports; extend UserReader with list_paginated + find_by_ids
2026-05-16 10:59:32 +02:00
8628acfb77
refactor(application): use UniqueViolation in register — remove postgres constraint strings
2026-05-16 10:58:14 +02:00
1ab3766ce8
fix(postgres): map unique constraint violations to DomainError::UniqueViolation
2026-05-16 10:57:04 +02:00
ca35e8e774
feat(domain): add DomainError::UniqueViolation {field}
2026-05-16 10:55:58 +02:00
efa9bbc6e5
feat(bootstrap): inject TagRepository into ThoughtsObjectHandler
2026-05-16 02:52:58 +02:00
3907ee1538
feat(activitypub): index hashtags from incoming federated notes
2026-05-16 02:51:09 +02:00
98e96b306a
fix(postgres): accept_note returns ThoughtId via SELECT after INSERT
2026-05-16 02:48:52 +02:00
0d43d0adb9
refactor(ap-ports): accept_note returns ThoughtId instead of ()
2026-05-16 02:46:20 +02:00
29e4af26d8
fix(api): top-friends endpoint returns full UserResponse — eliminates frontend N+1
2026-05-16 02:08:22 +02:00
57b1bfc447
feat(api-types): TopFriendsResponse with Vec<UserResponse>
2026-05-16 02:06:06 +02:00
0592861edd
refactor: 5 architectural improvements (Tasks 2-5 + Task 6 fix)
...
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 5m2s
test / unit (pull_request) Successful in 16m19s
test / integration (pull_request) Failing after 17m15s
- feat(domain): Hashtag value object with canonical extract() — unifies two
divergent private implementations; fields pre-compute raw/normalized/url_slug/ap_name
- feat(presentation): Deps<S: FromAppState> extractor — each handler now
declares its exact dependency surface; AppState unchanged; handlers
become unit-testable without mocking all 20 deps
- refactor(feed): replace 5 flat FeedRepository methods with FeedQuery/FeedScope
— single query() method; SQL shared logic lives once; adding feed types
no longer requires 5 edits
- refactor(activitypub): ActivityPubRepository + OutboundFederationPort moved
out of domain::ports into activitypub-base::ap_ports — domain crate no
longer knows about AP IDs, inboxes, or actor URLs
- fix(outbox): OutboxRelay now opens a per-row transaction so FOR UPDATE
SKIP LOCKED actually holds the lock during publish + mark_delivered
2026-05-15 18:54:20 +02:00
6024a65060
feat(infra): transactional outbox — OutboxWriter port, PgOutboxWriter, OutboxRelay, TestOutbox; update create_thought + delete_thought
2026-05-15 18:31:57 +02:00
15b1d0fdb7
fix(db): map 23505 unique_violation to DomainError::Conflict (→ HTTP 409); close TOCTOU on register save
2026-05-15 17:03:48 +02:00
a02ae3e662
fix(db): in_reply_to_id FK ON DELETE SET NULL — deleting a thought no longer blocks if it has replies
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m40s
test / unit (pull_request) Successful in 16m10s
test / integration (pull_request) Failing after 17m4s
2026-05-15 16:29:57 +02:00
e43d784c39
feat(worker): DLQ processor — exhausted events moved to failed_events with exponential retry
2026-05-15 16:26:44 +02:00
c092b9e658
feat(postgres): failed_events table and PgFailedEventStore for dead-letter queue
2026-05-15 16:23:21 +02:00
340886fcfe
fix(nats): explicit consumer config, ack timeouts, unknown-event acking, delivery_count
2026-05-15 16:20:31 +02:00
75e8d349e3
fix(auth): validate JWT secret length, equalize login timing, reduce TTL to 24h
2026-05-15 16:16:58 +02:00
fd9e526b81
fix(search): use to_thought_response in search handler — was returning snake_case partial data
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m24s
test / unit (pull_request) Successful in 16m42s
test / integration (pull_request) Failing after 17m1s
2026-05-15 15:44:59 +02:00
6dd4e3366c
fix(search): viewer-aware SQL in search_thoughts — ViewerContext now real instead of hardcoded false
2026-05-15 15:24:55 +02:00
48b57abf92
refactor(adapters): update FeedEntry construction to use EngagementStats + ViewerContext
2026-05-15 15:21:48 +02:00
686dc1c91a
refactor(domain): FeedEntry — EngagementStats + Option<ViewerContext> sub-structs
2026-05-15 15:20:07 +02:00
988f5c75aa
fix(tests): use distinct usernames in notification tests
2026-05-15 14:11:58 +02:00
3f6b91c943
refactor(ports): ActivityPubRepository takes &str instead of url::Url — infra type stays in adapter
2026-05-15 14:06:33 +02:00
c76894e527
refactor(domain): remove AP delivery fields (inbox_url, public_key) from domain RemoteActor
2026-05-15 14:02:53 +02:00
1a77e15d70
refactor(application): remove pass-through search use cases — call SearchPort directly
2026-05-15 13:59:30 +02:00
f697267828
fix(domain): from_db_str returns Result — unknown DB values are errors not silent defaults
2026-05-15 13:57:38 +02:00
5a64dd361c
refactor(domain): algebraic NotificationKind — invalid states now unrepresentable
2026-05-15 13:53:53 +02:00
189901b778
refactor(ports): CQRS split — FederationActionPort into four focused sub-ports
2026-05-15 13:49:58 +02:00
8ed7f3d5bc
refactor(ports): CQRS split — UserRepository = UserReader + UserWriter supertrait
2026-05-15 13:43:43 +02:00
a902154777
refactor(domain): remove FetchRemoteActorPosts/FetchActorConnections from DomainEvent; add FederationSchedulerPort
2026-05-15 13:28:19 +02:00
e935c8973e
refactor(domain): remove ap_id/inbox_url from User and Thought; use ActivityPubRepository lookups
2026-05-15 13:21:21 +02:00
bf3e336d0f
feat(ports): add get_thought_ap_id and get_actor_ap_urls to ActivityPubRepository
2026-05-15 13:09:37 +02:00
711b3ec63b
fix(ap): protocol compliance — actor verification, on_unlike, Move, bto/bcc
...
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m31s
test / unit (pull_request) Successful in 16m12s
test / integration (pull_request) Failing after 16m53s
- Add verify() to Accept/Reject (actor must match Follow target)
- Add verify() to Create/Update (actor must match attributedTo)
- Add verify() to Delete (actor domain must match object domain)
- Fix UpdateActivity passing wrapper id instead of object id to on_update
- Implement on_unlike (was no-op stub) — publishes LikeRemoved event
- BlockActivity now removes remote actor as follower, not just following
- Add MoveActivity (account migration) to InboxActivities enum
- Add bto/bcc fields to CreateActivity for blind DM support
- http_signature_compat(true) restricted to debug mode only
- Announce of non-local object logs debug instead of silent drop
- postgres-federation: get_followers/get_following_page/count_following
now consistently filter by status='accepted'
2026-05-15 12:52:37 +02:00
314dad5451
Refactor database error handling across repositories to use IntoDbResult for improved error management
...
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m30s
test / unit (pull_request) Successful in 16m10s
test / integration (pull_request) Failing after 16m44s
- Updated PgNotificationRepository to utilize IntoDbResult for error handling in various methods.
- Refactored PgRemoteActorRepository to replace manual error mapping with IntoDbResult.
- Modified PgRemoteActorConnectionRepository to implement IntoDbResult for error handling.
- Adjusted PgTagRepository to use IntoDbResult for consistent error management.
- Introduced test_helpers module for seeding users and thoughts in tests.
- Enhanced PgThoughtRepository to leverage IntoDbResult for error handling.
- Updated PgTopFriendRepository to utilize IntoDbResult for error management.
- Refactored PgUserRepository to implement IntoDbResult for error handling.
- Added constants for pagination defaults in requests.
- Introduced MAX_TOP_FRIENDS constant for top friends validation.
- Refactored JWT expiration time to use a constant.
- Improved rate limiter configuration with constants for better readability.
- Added utility methods for FollowState and Visibility enums for string conversions.
- Introduced maximum length constants for Username, Email, and Content value objects.
- Cleaned up test modules by removing redundant code and utilizing a shared testing state.
2026-05-15 12:31:25 +02:00
a040a38036
fix(service): remove unused followers and following route handlers
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m20s
test / unit (pull_request) Successful in 16m27s
test / integration (pull_request) Failing after 16m54s
2026-05-15 12:08:45 +02:00
6273635aeb
feat: implement unread notification count and enhance user listing with pagination
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m33s
test / unit (pull_request) Successful in 16m24s
test / integration (pull_request) Failing after 16m52s
2026-05-15 12:04:00 +02:00
5f61a71336
test(activitypub): add missing argument to test case for clarity
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m22s
test / unit (pull_request) Successful in 16m26s
test / integration (pull_request) Failing after 16m58s
2026-05-15 11:52:49 +02:00