Skip to content

Commit

Permalink
Merge pull request #21 from dayuy/fix-network
Browse files Browse the repository at this point in the history
fix: modify the field networks of Organization
  • Loading branch information
bjwswang authored Feb 17, 2023
2 parents 3a402e3 + 16743ab commit 62f184b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ FROM hyperledgerk8s/bc-console:dev-branch as bc-console
FROM hyperledgerk8s/bc-apis-base-pro:1.0.0

COPY --from=builder /usr/src/app/dist /usr/src/app/dist
COPY --from=builder /usr/src/app/src/kubernetes/docs /usr/src/app/public/kubernetes/
COPY --from=bc-console /build-files/dist /usr/src/app/public

EXPOSE 8024
Expand Down
1 change: 0 additions & 1 deletion Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ RUN nr build

FROM busybox
COPY --from=builder /usr/src/app/dist /build-files/app/dist
COPY --from=builder /usr/src/app/src/kubernetes/docs /builder-files/app/public/kubernetes/
3 changes: 2 additions & 1 deletion src/organization/models/organization.model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Field, HideField, ID, ObjectType } from '@nestjs/graphql';
import { Network } from 'src/network/models/network.model';
import { User } from 'src/users/models/user.model';
import { StatusType } from './status-type.enum';

Expand Down Expand Up @@ -43,5 +44,5 @@ export class Organization {
federations?: string[];

/** 所在网络 */
networks?: string[];
networks?: Network[];
}
15 changes: 13 additions & 2 deletions src/organization/organization.gql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ query getOrganizations($admin: String) {
admin
status
reason
networks
networks {
name
}
federations
}
}
Expand All @@ -25,7 +27,16 @@ query getOrganization($name: String!) {
admin
status
reason
networks
networks {
name
creationTimestamp
lastHeartbeatTime
expiredTime
clusterSize
organizations {
name
}
}
federations
users {
name
Expand Down
2 changes: 1 addition & 1 deletion src/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ type Organization {
name: ID!

"""所在网络"""
networks: [String!]
networks: [Network!]

"""原因(状态为非Deplyed时)"""
reason: String
Expand Down

0 comments on commit 62f184b

Please sign in to comment.