forked from cerc-io/snowballtools-base
Implement functionality for editing domain (#57)
* Make use of domain id for redirecting domains * Add checks in backend to prevent chain redirecting and editing redirected domain * Add self relation to domain entity and use it to create and edit domains * Add self referencing relation to initialize db script * Add redirectToId column in domain entity * Remove isRedirected flag from domain entity * Refactor edit domain dialog box * Use dummy data for repository --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
This commit is contained in:
committed by
Ashwin Phatak
co-authored by
neeraj
parent
ace27c7eae
commit
0dd6c7702a
@@ -48,7 +48,6 @@ query ($projectId: String!) {
|
||||
updatedAt
|
||||
id
|
||||
name
|
||||
isRedirected
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,7 +84,6 @@ query ($organizationId: String!) {
|
||||
updatedAt
|
||||
id
|
||||
name
|
||||
isRedirected
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,7 +134,6 @@ query ($projectId: String!) {
|
||||
domain{
|
||||
branch
|
||||
createdAt
|
||||
isRedirected
|
||||
id
|
||||
name
|
||||
status
|
||||
@@ -218,7 +215,12 @@ query ($projectId: String!) {
|
||||
domains(projectId: $projectId) {
|
||||
branch
|
||||
createdAt
|
||||
isRedirected
|
||||
redirectTo {
|
||||
id
|
||||
name
|
||||
branch
|
||||
status
|
||||
}
|
||||
id
|
||||
name
|
||||
status
|
||||
|
||||
@@ -41,8 +41,8 @@ export type Domain = {
|
||||
id: string
|
||||
branch: string
|
||||
name: string
|
||||
isRedirected: boolean
|
||||
status: DomainStatus
|
||||
redirectTo?: Domain
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
@@ -224,8 +224,8 @@ export type UpdateProjectInput = {
|
||||
|
||||
export type UpdateDomainInput = {
|
||||
name?: string;
|
||||
isRedirected?: boolean;
|
||||
branch?: string;
|
||||
redirectToId?: string | null;
|
||||
}
|
||||
|
||||
export type RedeployToProdResponse = {
|
||||
|
||||
Reference in New Issue
Block a user