Skip to content

Commit 0d0beec

Browse files
committed
fix: mark userratings list items as non-null
1 parent 608e990 commit 0d0beec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ repos:
1212
pass_filenames: false
1313

1414
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
15-
rev: v0.8.0
15+
rev: v0.9.0
1616
hooks:
1717
- id: pre-commit-update
1818

1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.14.2
20+
rev: v0.14.4
2121
hooks:
2222
- id: ruff-check
2323
args: [--fix]

terraso_backend/apps/graphql/schema/schema.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ enum SoilIdDepthDependentSoilDataCarbonatesChoices {
15641564

15651565
type SoilMetadataNode {
15661566
site: SiteNode!
1567-
userRatings: [UserRatingEntry]!
1567+
userRatings: [UserRatingEntry!]!
15681568
selectedSoilId: String
15691569
}
15701570

terraso_backend/apps/soil_id/graphql/soil_metadata/queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SoilMetadataNode(DjangoObjectType):
3737
selected_soil_id = graphene.String()
3838

3939
# New field: expose user_ratings as a list
40-
user_ratings = graphene.List(UserRatingEntry, required=True)
40+
user_ratings = graphene.List(graphene.NonNull(UserRatingEntry), required=True)
4141

4242
class Meta:
4343
model = SoilMetadata

0 commit comments

Comments
 (0)