Skip to content

Commit

Permalink
Update model-garage to get the privilege right on oil level (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
elffjs authored Jul 20, 2024
1 parent 5c7dfae commit c302f38
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/ClickHouse/clickhouse-go/v2 v2.26.0
github.com/DIMO-Network/attestation-api v0.0.2
github.com/DIMO-Network/clickhouse-infra v0.0.1
github.com/DIMO-Network/model-garage v0.2.8
github.com/DIMO-Network/model-garage v0.2.11
github.com/DIMO-Network/nameindexer v0.0.1
github.com/DIMO-Network/shared v0.10.19
github.com/auth0/go-jwt-middleware/v2 v2.2.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ github.com/DIMO-Network/attestation-api v0.0.2 h1:rHxy0VdCaaXLg5RBg5/bjBhMvzLcTe
github.com/DIMO-Network/attestation-api v0.0.2/go.mod h1:xqLVVCSCo/zVbujSCmNwDQq1DPto+8nFI05wDeugz10=
github.com/DIMO-Network/clickhouse-infra v0.0.1 h1:4Mp9ayfOQyPWquXYBc2ElOtDxWjms0+VUals2XW43Lc=
github.com/DIMO-Network/clickhouse-infra v0.0.1/go.mod h1:SNz+mqccq4AYWFpJ65v3NRXDBY9/f7PKJSHCPtbk9+E=
github.com/DIMO-Network/model-garage v0.2.8 h1:CiU2eMv18ChB5wyW9mXND3gJKgdon/waF+iFvl4Oh2E=
github.com/DIMO-Network/model-garage v0.2.8/go.mod h1:voOvGWwtAnazsciDVTqjPYDttIkXx0YG4xA+MIjM/8k=
github.com/DIMO-Network/model-garage v0.2.11 h1:3ofR3McKnngQb6ehApA9u80MfCyhugMiM7zBs+svlVM=
github.com/DIMO-Network/model-garage v0.2.11/go.mod h1:voOvGWwtAnazsciDVTqjPYDttIkXx0YG4xA+MIjM/8k=
github.com/DIMO-Network/nameindexer v0.0.1 h1:eQqsaLa84CYzwE0vZ2j0Qu4arl2/qfNQ5lLYK8Dk7Qc=
github.com/DIMO-Network/nameindexer v0.0.1/go.mod h1:M+KvLHakKW8ce4/tZlOsii++9zkjtxEjy3kyEF2+h2E=
github.com/DIMO-Network/shared v0.10.19 h1:f3WFBXr2pZ8Se2rzw1IdKrmjlG+Q5c3ATiOyfFOXkuA=
Expand Down
12 changes: 6 additions & 6 deletions internal/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions schema/signals_gen.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ extend type SignalAggregations {

"""
Engine oil level as a percentage.
Required Privileges: [VEHICLE_ALL_TIME_LOCATION]
Required Privileges: [VEHICLE_NON_LOCATION_DATA]
"""
powertrainCombustionEngineEngineOilRelativeLevel(
agg: FloatAggregation!
): Float @requiresPrivilege(privileges: [VEHICLE_ALL_TIME_LOCATION]) @goField(name: "PowertrainCombustionEngineEngineOilRelativeLevel", forceResolver: true) @isSignal @hasAggregation
): Float @requiresPrivilege(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineEngineOilRelativeLevel", forceResolver: true) @isSignal @hasAggregation

"""
Grams of air drawn into engine per second.
Expand Down Expand Up @@ -405,9 +405,9 @@ extend type SignalCollection {

"""
Engine oil level as a percentage.
Required Privileges: [VEHICLE_ALL_TIME_LOCATION]
Required Privileges: [VEHICLE_NON_LOCATION_DATA]
"""
powertrainCombustionEngineEngineOilRelativeLevel: SignalFloat @requiresPrivilege(privileges: [VEHICLE_ALL_TIME_LOCATION]) @goField(name: "PowertrainCombustionEngineEngineOilRelativeLevel") @isSignal
powertrainCombustionEngineEngineOilRelativeLevel: SignalFloat @requiresPrivilege(privileges: [VEHICLE_NON_LOCATION_DATA]) @goField(name: "PowertrainCombustionEngineEngineOilRelativeLevel") @isSignal

"""
Grams of air drawn into engine per second.
Expand Down

0 comments on commit c302f38

Please sign in to comment.