Skip to content

Commit

Permalink
fix: bugs in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouxm committed Oct 29, 2024
1 parent 7b7346d commit a04af27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
19 changes: 1 addition & 18 deletions terraso_backend/apps/graphql/schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,7 @@ type SoilDataPushEntryFailure {
enum SoilDataPushFailureReason {
DOES_NOT_EXIST
NOT_ALLOWED
INTEGRITY_ERROR
INVALID_DATA
}

input SoilDataPushInput {
Expand All @@ -2371,23 +2371,6 @@ input SoilDataPushInput {
}

input SoilDataPushInputEntry {
downSlope: SoilIdSoilDataDownSlopeChoices
crossSlope: SoilIdSoilDataCrossSlopeChoices
bedrock: Int
slopeLandscapePosition: SoilIdSoilDataSlopeLandscapePositionChoices
slopeAspect: Int
slopeSteepnessSelect: SoilIdSoilDataSlopeSteepnessSelectChoices
slopeSteepnessPercent: Int
slopeSteepnessDegree: Int
surfaceCracksSelect: SoilIdSoilDataSurfaceCracksSelectChoices
surfaceSaltSelect: SoilIdSoilDataSurfaceSaltSelectChoices
floodingSelect: SoilIdSoilDataFloodingSelectChoices
limeRequirementsSelect: SoilIdSoilDataLimeRequirementsSelectChoices
surfaceStoninessSelect: SoilIdSoilDataSurfaceStoninessSelectChoices
waterTableDepthSelect: SoilIdSoilDataWaterTableDepthSelectChoices
soilDepthSelect: SoilIdSoilDataSoilDepthSelectChoices
landCoverSelect: SoilIdSoilDataLandCoverSelectChoices
grazingSelect: SoilIdSoilDataGrazingSelectChoices
siteId: ID!
soilData: SoilDataPushInputSoilData!
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import copy
import enum

import graphene
import structlog
Expand Down Expand Up @@ -69,7 +68,7 @@ class SoilDataPushInputSoilData(SoilDataInputs, graphene.InputObjectType):
)


class SoilDataPushInputEntry(SoilDataInputs, graphene.InputObjectType):
class SoilDataPushInputEntry(graphene.InputObjectType):
site_id = graphene.ID(required=True)
soil_data = graphene.Field(graphene.NonNull(SoilDataPushInputSoilData))

Expand Down

0 comments on commit a04af27

Please sign in to comment.