You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd6c54c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/reference/architecture/data-mongo-sync/ticket-repository/ticket-repository.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ The module is implemented in `openframe-data-mongo-sync` and is enabled only whe
8
8
9
9
| Component | Responsibility |
10
10
| --- | --- |
11
-
|`CustomTicketRepository`| Defines the ticket query, pagination, reporting, transition, synchronization, and activity-stamping contract. |
12
-
|`CustomTicketRepositoryImpl`| Implements the contract with Spring Data MongoDB queries, aggregations, targeted updates, tenant criteria, and cursor handling. |
11
+
|`TicketRepositoryOperations`| Defines the ticket query, pagination, reporting, transition, synchronization, and activity-stamping contract. |
12
+
|`TicketRepositoryOperationsImpl`| Implements the contract with Spring Data MongoDB queries, aggregations, targeted updates, tenant criteria, and cursor handling. |
13
13
|`TicketAggregateSpec`| Describes the ticket aggregate for event publication and connects ticket changes to projections. |
14
14
|`TimeEntryTicketView`| Stores the ticket fields reconciled by the time-entry projection. |
`CustomTicketRepositoryImpl` extends `TenantAwareRepositorySupport`, so tenant criteria are applied through the shared repository infrastructure for tenant-bound operations. The implementation is conditionally registered only when tenant isolation is enabled. This prevents the custom repository from being active in an application configuration that has not opted into the tenant-aware data path.
44
+
`TicketRepositoryOperationsImpl` extends `TenantAwareRepositorySupport`, so tenant criteria are applied through the shared repository infrastructure for tenant-bound operations. The implementation is conditionally registered only when tenant isolation is enabled. This prevents the repository fragment from being active in an application configuration that has not opted into the tenant-aware data path.
45
45
46
46
Owner-scoped reads add a second layer of visibility control for agent principals:
47
47
@@ -174,7 +174,7 @@ The activity methods return the newly written ticket when available. Their versi
174
174
175
175
`TicketAggregateSpec` identifies the aggregate type as `tickets`. It converts a `Ticket` into a compact `TicketEvent` containing the ticket ID and title, then exposes the `TicketOnTimeEntriesProjection` as its projection.
176
176
177
-
This means a ticket change can update the ticket-related fields used by time-entry processing without requiring the projection to consume the entire ticket document. `CustomTicketRepositoryImpl.updateTitle` explicitly uses the same specification for title writes that occur outside the normal repository save path, preserving publication behavior for that special mutation.
177
+
This means a ticket change can update the ticket-related fields used by time-entry processing without requiring the projection to consume the entire ticket document. `TicketRepositoryOperationsImpl.updateTitle` explicitly uses the same specification for title writes that occur outside the normal repository save path, preserving publication behavior for that special mutation.
178
178
179
179
`TimeEntryTicketView` is the projection's persisted read model. It contains:
Copy file name to clipboardExpand all lines: openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/TicketAttachmentRepository.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
/** Reads and writes metadata for files linked to tickets. */
Copy file name to clipboardExpand all lines: openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/TicketAttachmentUpsertOperations.java
Copy file name to clipboardExpand all lines: openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/TicketAttachmentUpsertOperationsImpl.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
22
22
/** Atomically inserts ticket attachment metadata while preserving an existing copy on retry. */
Copy file name to clipboardExpand all lines: openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/TicketRepositoryOperations.java
Copy file name to clipboardExpand all lines: openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/TicketRepositoryOperationsImpl.java
Copy file name to clipboardExpand all lines: openframe-data-mongo-sync/src/main/java/com/openframe/data/repository/ticket/publishing/TicketAggregateSpec.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
importjava.util.List;
10
10
11
-
// TicketRepository publishes with this spec, and so does CustomTicketRepositoryImpl.updateTitle, which writes outside it.
11
+
// TicketRepository publishes with this spec, and so does TicketRepositoryOperationsImpl.updateTitle, which writes outside it.
0 commit comments