Skip to content

Commit

Permalink
Remove required False in analyisis pillar analyis
Browse files Browse the repository at this point in the history
  • Loading branch information
sudan45 committed Oct 18, 2024
1 parent 355a5f5 commit e8a506e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/analysis/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Meta:
type('FilterDataType', (graphene.ObjectType,), {
'id': graphene.String(),
'key': graphene.String(),
'unique_id': graphene.String()
'uniqueId': graphene.String()
})))

# XXX: N+1 and No pagination
Expand Down
1 change: 1 addition & 0 deletions apps/analysis/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ def validate(self, data):
class AnalysisPillarGqlSerializer(TempClientIdMixin, UserResourceSerializer):
id = IntegerIDField(required=False)
statements = AnalyticalStatementGqlSerializer(many=True, source='analyticalstatement_set', required=False)
analysis = serializers.PrimaryKeyRelatedField(queryset=Analysis.objects.all(), required=False)

class Meta:
model = AnalysisPillar
Expand Down
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ input AnalysisPillarGqlInputType {
informationGap: String
filters: GenericScalar
assignee: ID!
analysis: ID!
analysis: ID
clonedFrom: ID
statements: [AnalyticalStatementGqlInputType!]
clientId: String
Expand Down

0 comments on commit e8a506e

Please sign in to comment.