Data Access: Add fields for Vendor User to Community and ServiceTicket schemas#344
Draft
kdelongecf wants to merge 14 commits intomainfrom
Draft
Conversation
Contributor
Reviewer's Guide by SourceryThis PR adds support for assigning vendors to service tickets by introducing a new ER diagram for updated ServiceTicket schemaerDiagram
ServiceTicket {
String activityLog
String messages
String revisionRequest
String assignedVendor
ObjectID id
String schemaVersion
DateTime createdAt
String description
ObjectID serviceId
}
ServiceTicket ||--o{ Community : belongs_to
ServiceTicket ||--o{ Member : assigned_to
ServiceTicket ||--o{ Vendor : assigned_vendor
Class diagram for ServiceTicketV1DomainApiImpl changesclassDiagram
class ServiceTicketV1DomainApiImpl {
+getServiceTicketsOpenByRequestor(memberId: string) Promise~ServiceTicketData[]~
+getServiceTicketsClosedByRequestor(memberId: string) Promise~ServiceTicketData[]~
+getServiceTicketsByAssignedTo(communityId: string, memberId: string) Promise~ServiceTicketData[]~
+getServiceTicketsByVendor(vendorId: string) Promise~ServiceTicketData[]~
+applyPermissionFilter(serviceTickets: ServiceTicketData[], context: AppContext) Promise~ServiceTicketData[]~
}
note for ServiceTicketV1DomainApiImpl "Added method getServiceTicketsByVendor to handle vendor-specific queries."
Class diagram for ServiceTicket schema changesclassDiagram
class ServiceTicket {
+String activityLog
+String messages
+String revisionRequest
+String assignedVendor
+ObjectID id
+String schemaVersion
+DateTime createdAt
+String description
+ObjectID serviceId
}
note for ServiceTicket "Added assignedVendor field to support vendor assignment."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
heruwala
reviewed
Dec 13, 2024
data-access/seedwork/services-seedwork-datastore-mongodb/interfaces/base.ts
Outdated
Show resolved
Hide resolved
nnoce14
requested changes
Dec 16, 2024
data-access/src/app/application-services/cases/service-ticket/v1/service-ticket.domain.ts
Outdated
Show resolved
Hide resolved
data-access/src/app/application-services/cases/service-ticket/v1/service-ticket.domain.ts
Outdated
Show resolved
Hide resolved
data-access/src/app/application-services/users/vendor-user/vendor-user.data.ts
Outdated
Show resolved
Hide resolved
data-access/src/app/domain/contexts/community/community/community.ts
Outdated
Show resolved
Hide resolved
data-access/src/infrastructure-services-impl/datastore/mongodb/models/cases/service-ticket.ts
Outdated
Show resolved
Hide resolved
data-access/src/infrastructure-services-impl/datastore/mongodb/models/community.ts
Outdated
Show resolved
Hide resolved
data-access/src/infrastructure-services-impl/datastore/mongodb/models/community.ts
Outdated
Show resolved
Hide resolved
data-access/src/infrastructure-services-impl/datastore/mongodb/models/community.ts
Outdated
Show resolved
Hide resolved
data-access/src/infrastructure-services-impl/datastore/mongodb/models/community.ts
Outdated
Show resolved
Hide resolved
nnoce14
reviewed
Dec 16, 2024
…o-community-and-serviceticket-schemas
nnoce14
requested changes
Dec 19, 2024
data-access/src/infrastructure-services-impl/datastore/mongodb/models/community.ts
Outdated
Show resolved
Hide resolved
...ructure-services-impl/datastore/mongodb/infrastructure/community/community.domain-adapter.ts
Outdated
Show resolved
Hide resolved
...pl/datastore/mongodb/infrastructure/cases/service-ticket/v1/service-ticket.domain-adapter.ts
Show resolved
Hide resolved
data-access/src/app/application-services/cases/service-ticket/v1/service-ticket.domain.ts
Outdated
Show resolved
Hide resolved
data-access/src/app/application-services/community/community.domain.ts
Outdated
Show resolved
Hide resolved
data-access/src/app/domain/contexts/community/community/community.ts
Outdated
Show resolved
Hide resolved
data-access/src/app/domain/contexts/community/community/community.value-objects.ts
Outdated
Show resolved
Hide resolved
data-access/src/functions/http-graphql/schema/types/community.graphql
Outdated
Show resolved
Hide resolved
data-access/src/functions/http-graphql/schema/types/community.resolvers.ts
Outdated
Show resolved
Hide resolved
data-access/src/functions/http-graphql/schema/types/service-ticket.graphql
Outdated
Show resolved
Hide resolved
…o-community-and-serviceticket-schemas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Add support for vendor assignment in service tickets by introducing the 'assignedVendor' field in the ServiceTicket schema and implementing a method to retrieve service tickets by vendor ID.
New Features:
Enhancements: