Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix: v0.27.0-rc1 bugs

Matthew Kilgore58912736bb5e
diff --git a/backend/app/api/handlers/v1/v1_ctrl_entities.go b/backend/app/api/handlers/v1/v1_ctrl_entities.go
index b91b13ca..0b612e61 100644
--- a/backend/app/api/handlers/v1/v1_ctrl_entities.go
+++ b/backend/app/api/handlers/v1/v1_ctrl_entities.go
@@ -56,7 +56,7 @@ func startEntityCtrlSpan(ctx context.Context, name string, attrs ...attribute.Ke
// @Param parentIds query []string false "parent Ids" collectionFormat(multi)
// @Param entityTypeIds query []string false "entity type IDs; when provided this filter takes precedence over isLocation" collectionFormat(multi)
// @Param orderBy query string false "field to order by; valid values: name, createdAt, updatedAt, assetId"
-// @Param orderDirection query string false "order direction; valid values: asc, desc"
+// @Param orderDirection query string false "order direction; valid values: asc, desc. Defaults to desc for createdAt and updatedAt, asc otherwise"
// @Success 200 {object} repo.EntityListResult
// @Router /v1/entities [GET]
// @Security Bearer
diff --git a/backend/app/api/static/docs/docs.go b/backend/app/api/static/docs/docs.go
index 040b018b..f897a3da 100644
--- a/backend/app/api/static/docs/docs.go
+++ b/backend/app/api/static/docs/docs.go
@@ -288,6 +288,28 @@ const docTemplate = `{
"description": "parent Ids",
"name": "parentIds",
"in": "query"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "collectionFormat": "multi",
+ "description": "entity type IDs; when provided this filter takes precedence over isLocation",
+ "name": "entityTypeIds",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "description": "field to order by; valid values: name, createdAt, updatedAt, assetId",
+ "name": "orderBy",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "description": "order direction; valid values: asc, desc. Defaults to desc for createdAt and updatedAt, asc otherwise",
+ "name": "orderDirection",
+ "in": "query"
}
],
"responses": {
@@ -4816,7 +4838,7 @@ const docTemplate = `{
"type": "string"
},
"locationId": {
- "description": "LocationID is only needed when ParentID refers to another item and\nthe new entity is stored somewhere other than that item's location.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).",
"type": "string",
"x-nullable": true,
"x-omitempty": true
@@ -4965,7 +4987,7 @@ const docTemplate = `{
"type": "boolean"
},
"location": {
- "description": "Location is where this entity resolves to: its own location when one\nis set, otherwise the nearest ancestor whose entity type is a\nlocation. Nil for top-level entities. This is a *resolved* value —\nwrite it back through LocationID, not through this field.",
+ "description": "Location is resolved: this entity's own location, else the nearest\nlocation ancestor. Read-only — write via LocationID.",
"allOf": [
{
"$ref": "#/definitions/repo.EntitySummary"
@@ -4975,7 +4997,7 @@ const docTemplate = `{
"x-omitempty": true
},
"locationId": {
- "description": "LocationID is this entity's own location, and is nil when Location was\ninherited from an ancestor. It is named to match the locationId field\non EntityUpdate on purpose: a GET body PUT back verbatim keeps the\nentity exactly where it was, rather than silently pinning an\ninherited location or dropping an explicit one.",
+ "description": "LocationID is set only when this entity has its own location, nil when\ninherited. Same name as the EntityUpdate field so a GET/PUT round trip\ndoesn't pin an inherited location or drop an explicit one.",
"type": "string",
"x-nullable": true,
"x-omitempty": true
@@ -5579,7 +5601,7 @@ const docTemplate = `{
"type": "boolean"
},
"locationId": {
- "description": "LocationID names the location this entity is stored in. It only\nneeds to be sent when ParentID refers to another item and the entity\nlives somewhere other than that item's location (#1688); otherwise\nParentID alone carries the location. See resolveLocationOverride.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).\nOtherwise ParentID carries the location. See resolveLocationOverride.",
"type": "string",
"x-nullable": true,
"x-omitempty": true
diff --git a/backend/app/api/static/docs/openapi-3.json b/backend/app/api/static/docs/openapi-3.json
index 82963259..f05579e2 100644
--- a/backend/app/api/static/docs/openapi-3.json
+++ b/backend/app/api/static/docs/openapi-3.json
@@ -299,6 +299,34 @@
"type": "string"
}
}
+ },
+ {
+ "description": "entity type IDs; when provided this filter takes precedence over isLocation",
+ "name": "entityTypeIds",
+ "in": "query",
+ "explode": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "description": "field to order by; valid values: name, createdAt, updatedAt, assetId",
+ "name": "orderBy",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "description": "order direction; valid values: asc, desc. Defaults to desc for createdAt and updatedAt, asc otherwise",
+ "name": "orderDirection",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -5057,7 +5085,7 @@
"type": "string"
},
"locationId": {
- "description": "LocationID is only needed when ParentID refers to another item and\nthe new entity is stored somewhere other than that item's location.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).",
"type": "string",
"x-omitempty": true,
"nullable": true
@@ -5206,7 +5234,7 @@
"type": "boolean"
},
"location": {
- "description": "Location is where this entity resolves to: its own location when one\nis set, otherwise the nearest ancestor whose entity type is a\nlocation. Nil for top-level entities. This is a *resolved* value —\nwrite it back through LocationID, not through this field.",
+ "description": "Location is resolved: this entity's own location, else the nearest\nlocation ancestor. Read-only — write via LocationID.",
"allOf": [
{
"$ref": "#/components/schemas/repo.EntitySummary"
@@ -5216,7 +5244,7 @@
"nullable": true
},
"locationId": {
- "description": "LocationID is this entity's own location, and is nil when Location was\ninherited from an ancestor. It is named to match the locationId field\non EntityUpdate on purpose: a GET body PUT back verbatim keeps the\nentity exactly where it was, rather than silently pinning an\ninherited location or dropping an explicit one.",
+ "description": "LocationID is set only when this entity has its own location, nil when\ninherited. Same name as the EntityUpdate field so a GET/PUT round trip\ndoesn't pin an inherited location or drop an explicit one.",
"type": "string",
"x-omitempty": true,
"nullable": true
@@ -5820,7 +5848,7 @@
"type": "boolean"
},
"locationId": {
- "description": "LocationID names the location this entity is stored in. It only\nneeds to be sent when ParentID refers to another item and the entity\nlives somewhere other than that item's location (#1688); otherwise\nParentID alone carries the location. See resolveLocationOverride.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).\nOtherwise ParentID carries the location. See resolveLocationOverride.",
"type": "string",
"x-omitempty": true,
"nullable": true
diff --git a/backend/app/api/static/docs/openapi-3.yaml b/backend/app/api/static/docs/openapi-3.yaml
index a00c2bbc..7be5c735 100644
--- a/backend/app/api/static/docs/openapi-3.yaml
+++ b/backend/app/api/static/docs/openapi-3.yaml
@@ -183,6 +183,27 @@ paths:
type: array
items:
type: string
+ - description: entity type IDs; when provided this filter takes precedence over
+ isLocation
+ name: entityTypeIds
+ in: query
+ explode: true
+ schema:
+ type: array
+ items:
+ type: string
+ - description: "field to order by; valid values: name, createdAt, updatedAt,
+ assetId"
+ name: orderBy
+ in: query
+ schema:
+ type: string
+ - description: "order direction; valid values: asc, desc. Defaults to desc for
+ createdAt and updatedAt, asc otherwise"
+ name: orderDirection
+ in: query
+ schema:
+ type: string
responses:
"200":
description: OK
@@ -3186,9 +3207,8 @@ components:
entityTypeId:
type: string
locationId:
- description: |-
- LocationID is only needed when ParentID refers to another item and
- the new entity is stored somewhere other than that item's location.
+ description: Only needed when ParentID is another item and this lives elsewhere
+ (#1688).
type: string
x-omitempty: true
nullable: true
@@ -3296,26 +3316,20 @@ components:
type: boolean
location:
description: |-
- Location is where this entity resolves to: its own location when one
- is set, otherwise the nearest ancestor whose entity type is a
- location. Nil for top-level entities. This is a *resolved* value —
- write it back through LocationID, not through this field.
+ Location is resolved: this entity's own location, else the nearest
+ location ancestor. Read-only — write via LocationID.
allOf:
- $ref: "#/components/schemas/repo.EntitySummary"
x-omitempty: true
nullable: true
locationId:
description: >-
- LocationID is this entity's own location, and is nil when Location
- was
-
- inherited from an ancestor. It is named to match the locationId field
+ LocationID is set only when this entity has its own location, nil
+ when
- on EntityUpdate on purpose: a GET body PUT back verbatim keeps the
+ inherited. Same name as the EntityUpdate field so a GET/PUT round trip
- entity exactly where it was, rather than silently pinning an
-
- inherited location or dropping an explicit one.
+ doesn't pin an inherited location or drop an explicit one.
type: string
x-omitempty: true
nullable: true
@@ -3735,11 +3749,11 @@ components:
description: Warranty
type: boolean
locationId:
- description: |-
- LocationID names the location this entity is stored in. It only
- needs to be sent when ParentID refers to another item and the entity
- lives somewhere other than that item's location (#1688); otherwise
- ParentID alone carries the location. See resolveLocationOverride.
+ description: >-
+ Only needed when ParentID is another item and this lives elsewhere
+ (#1688).
+
+ Otherwise ParentID carries the location. See resolveLocationOverride.
type: string
x-omitempty: true
nullable: true
diff --git a/backend/app/api/static/docs/swagger.json b/backend/app/api/static/docs/swagger.json
index 8ec23bee..a694e223 100644
--- a/backend/app/api/static/docs/swagger.json
+++ b/backend/app/api/static/docs/swagger.json
@@ -285,6 +285,28 @@
"description": "parent Ids",
"name": "parentIds",
"in": "query"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "collectionFormat": "multi",
+ "description": "entity type IDs; when provided this filter takes precedence over isLocation",
+ "name": "entityTypeIds",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "description": "field to order by; valid values: name, createdAt, updatedAt, assetId",
+ "name": "orderBy",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "description": "order direction; valid values: asc, desc. Defaults to desc for createdAt and updatedAt, asc otherwise",
+ "name": "orderDirection",
+ "in": "query"
}
],
"responses": {
@@ -4813,7 +4835,7 @@
"type": "string"
},
"locationId": {
- "description": "LocationID is only needed when ParentID refers to another item and\nthe new entity is stored somewhere other than that item's location.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).",
"type": "string",
"x-nullable": true,
"x-omitempty": true
@@ -4962,7 +4984,7 @@
"type": "boolean"
},
"location": {
- "description": "Location is where this entity resolves to: its own location when one\nis set, otherwise the nearest ancestor whose entity type is a\nlocation. Nil for top-level entities. This is a *resolved* value —\nwrite it back through LocationID, not through this field.",
+ "description": "Location is resolved: this entity's own location, else the nearest\nlocation ancestor. Read-only — write via LocationID.",
"allOf": [
{
"$ref": "#/definitions/repo.EntitySummary"
@@ -4972,7 +4994,7 @@
"x-omitempty": true
},
"locationId": {
- "description": "LocationID is this entity's own location, and is nil when Location was\ninherited from an ancestor. It is named to match the locationId field\non EntityUpdate on purpose: a GET body PUT back verbatim keeps the\nentity exactly where it was, rather than silently pinning an\ninherited location or dropping an explicit one.",
+ "description": "LocationID is set only when this entity has its own location, nil when\ninherited. Same name as the EntityUpdate field so a GET/PUT round trip\ndoesn't pin an inherited location or drop an explicit one.",
"type": "string",
"x-nullable": true,
"x-omitempty": true
@@ -5576,7 +5598,7 @@
"type": "boolean"
},
"locationId": {
- "description": "LocationID names the location this entity is stored in. It only\nneeds to be sent when ParentID refers to another item and the entity\nlives somewhere other than that item's location (#1688); otherwise\nParentID alone carries the location. See resolveLocationOverride.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).\nOtherwise ParentID carries the location. See resolveLocationOverride.",
"type": "string",
"x-nullable": true,
"x-omitempty": true
diff --git a/backend/app/api/static/docs/swagger.yaml b/backend/app/api/static/docs/swagger.yaml
index f4f1fb2a..a1dd6540 100644
--- a/backend/app/api/static/docs/swagger.yaml
+++ b/backend/app/api/static/docs/swagger.yaml
@@ -1110,9 +1110,8 @@ definitions:
entityTypeId:
type: string
locationId:
- description: |-
- LocationID is only needed when ParentID refers to another item and
- the new entity is stored somewhere other than that item's location.
+ description: Only needed when ParentID is another item and this lives elsewhere
+ (#1688).
type: string
x-nullable: true
x-omitempty: true
@@ -1224,19 +1223,15 @@ definitions:
allOf:
- $ref: '#/definitions/repo.EntitySummary'
description: |-
- Location is where this entity resolves to: its own location when one
- is set, otherwise the nearest ancestor whose entity type is a
- location. Nil for top-level entities. This is a *resolved* value —
- write it back through LocationID, not through this field.
+ Location is resolved: this entity's own location, else the nearest
+ location ancestor. Read-only — write via LocationID.
x-nullable: true
x-omitempty: true
locationId:
description: |-
- LocationID is this entity's own location, and is nil when Location was
- inherited from an ancestor. It is named to match the locationId field
- on EntityUpdate on purpose: a GET body PUT back verbatim keeps the
- entity exactly where it was, rather than silently pinning an
- inherited location or dropping an explicit one.
+ LocationID is set only when this entity has its own location, nil when
+ inherited. Same name as the EntityUpdate field so a GET/PUT round trip
+ doesn't pin an inherited location or drop an explicit one.
type: string
x-nullable: true
x-omitempty: true
@@ -1655,10 +1650,8 @@ definitions:
type: boolean
locationId:
description: |-
- LocationID names the location this entity is stored in. It only
- needs to be sent when ParentID refers to another item and the entity
- lives somewhere other than that item's location (#1688); otherwise
- ParentID alone carries the location. See resolveLocationOverride.
+ Only needed when ParentID is another item and this lives elsewhere (#1688).
+ Otherwise ParentID carries the location. See resolveLocationOverride.
type: string
x-nullable: true
x-omitempty: true
@@ -2580,6 +2573,24 @@ paths:
type: string
name: parentIds
type: array
+ - collectionFormat: multi
+ description: entity type IDs; when provided this filter takes precedence over
+ isLocation
+ in: query
+ items:
+ type: string
+ name: entityTypeIds
+ type: array
+ - description: 'field to order by; valid values: name, createdAt, updatedAt,
+ assetId'
+ in: query
+ name: orderBy
+ type: string
+ - description: 'order direction; valid values: asc, desc. Defaults to desc for
+ createdAt and updatedAt, asc otherwise'
+ in: query
+ name: orderDirection
+ type: string
produces:
- application/json
responses:
diff --git a/backend/go.mod b/backend/go.mod
index 801eaf22..89d90d78 100644
--- a/backend/go.mod
+++ b/backend/go.mod
@@ -55,7 +55,7 @@ require (
go.opentelemetry.io/otel/sdk/metric v1.46.0
go.opentelemetry.io/otel/trace v1.46.0
go.opentelemetry.io/proto/otlp v1.11.1
- gocloud.dev v0.46.0
+ gocloud.dev v0.46.1-0.20261001165631-b77c6be2700b
gocloud.dev/pubsub/kafkapubsub v0.46.0
gocloud.dev/pubsub/natspubsub v0.46.0
gocloud.dev/pubsub/rabbitpubsub v0.46.0
@@ -70,53 +70,53 @@ require (
require (
ariga.io/atlas v0.36.2-0.20250730182955-2c6300d0a3e1 // indirect
- cel.dev/expr v0.25.2 // indirect
+ cel.dev/expr v0.25.3 // indirect
cloud.google.com/go v0.123.0 // indirect
cloud.google.com/go/auth v0.24.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.3.0 // indirect
cloud.google.com/go/compute/metadata v0.10.0 // indirect
- cloud.google.com/go/iam v1.12.0 // indirect
+ cloud.google.com/go/iam v1.13.0 // indirect
cloud.google.com/go/monitoring v1.30.0 // indirect
- cloud.google.com/go/pubsub v1.51.0 // indirect
- cloud.google.com/go/pubsub/v2 v2.6.0 // indirect
- cloud.google.com/go/storage v1.61.3 // indirect
+ cloud.google.com/go/pubsub v1.51.1 // indirect
+ cloud.google.com/go/pubsub/v2 v2.7.0 // indirect
+ cloud.google.com/go/storage v1.67.0 // indirect
github.com/Azure/azure-amqp-common-go/v3 v3.2.3 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.23.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.14.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.12.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.10.0 // indirect
- github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.4 // indirect
- github.com/Azure/go-amqp v1.5.1 // indirect
+ github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.8.0 // indirect
+ github.com/Azure/go-amqp v1.7.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v1.9.0 // indirect
- github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.34.0 // indirect
- github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.55.0 // indirect
- github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.55.0 // indirect
+ github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.37.0 // indirect
+ github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0 // indirect
+ github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.61.0 // indirect
github.com/IBM/sarama v1.61.1 // indirect
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/andybalholm/brotli v1.2.6 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
- github.com/aws/aws-sdk-go-v2 v1.41.9 // indirect
- github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.11 // indirect
- github.com/aws/aws-sdk-go-v2/config v1.32.20 // indirect
- github.com/aws/aws-sdk-go-v2/credentials v1.19.19 // indirect
- github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.25 // indirect
- github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.2.3 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.25 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.25 // indirect
- github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.26 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.10 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.18 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.25 // indirect
- github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.25 // indirect
- github.com/aws/aws-sdk-go-v2/service/s3 v1.102.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/signin v1.1.1 // indirect
- github.com/aws/aws-sdk-go-v2/service/sns v1.39.14 // indirect
- github.com/aws/aws-sdk-go-v2/service/sqs v1.42.24 // indirect
- github.com/aws/aws-sdk-go-v2/service/sso v1.30.19 // indirect
- github.com/aws/aws-sdk-go-v2/service/ssooidc v1.36.2 // indirect
- github.com/aws/aws-sdk-go-v2/service/sts v1.42.3 // indirect
- github.com/aws/smithy-go v1.26.0 // indirect
+ github.com/aws/aws-sdk-go-v2 v1.46.0 // indirect
+ github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.20 // indirect
+ github.com/aws/aws-sdk-go-v2/config v1.33.3 // indirect
+ github.com/aws/aws-sdk-go-v2/credentials v1.20.3 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.19.2 // indirect
+ github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.4.3 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.19 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.2 // indirect
+ github.com/aws/aws-sdk-go-v2/service/s3 v1.111.0 // indirect
+ github.com/aws/aws-sdk-go-v2/service/signin v1.9.0 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sns v1.46.0 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sqs v1.51.0 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sso v1.37.0 // indirect
+ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.42.0 // indirect
+ github.com/aws/aws-sdk-go-v2/service/sts v1.49.0 // indirect
+ github.com/aws/smithy-go v1.28.1 // indirect
github.com/bmatcuk/doublestar v1.3.4 // indirect
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
@@ -126,12 +126,12 @@ require (
github.com/eapache/go-resiliency v1.7.0 // indirect
github.com/ebitengine/purego v0.11.1 // indirect
github.com/eclipse/paho.golang v0.23.0 // indirect
- github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect
+ github.com/envoyproxy/go-control-plane/envoy v1.39.0 // indirect
github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect
github.com/felixge/httpsnoop v1.1.0 // indirect
github.com/fogleman/gg v1.3.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.15 // indirect
- github.com/go-jose/go-jose/v4 v4.1.4 // indirect
+ github.com/go-jose/go-jose/v4 v4.1.5 // indirect
github.com/go-logr/logr v1.4.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
@@ -201,7 +201,7 @@ require (
github.com/zclconf/go-cty v1.14.4 // indirect
github.com/zclconf/go-cty-yaml v1.1.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
- go.opentelemetry.io/contrib/detectors/gcp v1.44.0 // indirect
+ go.opentelemetry.io/contrib/detectors/gcp v1.46.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.71.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.71.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
@@ -215,7 +215,7 @@ require (
golang.org/x/tools v0.50.0 // indirect
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
google.golang.org/api v0.300.0 // indirect
- google.golang.org/genproto v0.0.0-20260715232425-e75dac1f907d // indirect
+ google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260928230214-8a89bd6388cc // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260928230214-8a89bd6388cc // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
diff --git a/backend/go.sum b/backend/go.sum
index c8abd362..a44f6aa3 100644
--- a/backend/go.sum
+++ b/backend/go.sum
@@ -2,6 +2,8 @@ ariga.io/atlas v0.36.2-0.20250730182955-2c6300d0a3e1 h1:NPPfBaVZgz4LKBCIc0FbMogC
ariga.io/atlas v0.36.2-0.20250730182955-2c6300d0a3e1/go.mod h1:Ex5l1xHsnWQUc3wYnrJ9gD7RUEzG76P7ZRQp8wNr0wc=
cel.dev/expr v0.25.2 h1:K6j46C81hXtZQfuX60cVWQFBJahKSE2gfRbNuvr5bFs=
cel.dev/expr v0.25.2/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
+cel.dev/expr v0.25.3 h1:A2jO8jwOugrrovveCWfj0KEZOfqiLgAcwjpHPhzIGw0=
+cel.dev/expr v0.25.3/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
cloud.google.com/go v0.123.0 h1:2NAUJwPR47q+E35uaJeYoNhuNEM9kM8SjgRgdeOJUSE=
cloud.google.com/go v0.123.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU=
cloud.google.com/go/auth v0.22.0 h1:Xp9wAKkLoeaYb5pYZZoQGz4E9sdPxIbzS3gywZE3ciQ=
@@ -22,9 +24,12 @@ cloud.google.com/go/iam v1.5.3 h1:+vMINPiDF2ognBJ97ABAYYwRgsaqxPbQDlMnbHMjolc=
cloud.google.com/go/iam v1.5.3/go.mod h1:MR3v9oLkZCTlaqljW6Eb2d3HGDGK5/bDv93jhfISFvU=
cloud.google.com/go/iam v1.12.0 h1:Aki3bX9aHUDKPHfnRJfDcTdVedvy6quGBQcTqx3DRXk=
cloud.google.com/go/iam v1.12.0/go.mod h1:FEZ4lXpADAC2AIpQY7LANNjjwyQ2jK439CI2VaD+sLY=
+cloud.google.com/go/iam v1.13.0 h1:ufT3FPT5rFFXu6UtLkNoxaOaV5EuA1dsSkmemCSTo6U=
+cloud.google.com/go/iam v1.13.0/go.mod h1:gHXdDEiPDvqd1q1KwBDGQlgZY/BwY760zU2LhOZS5w0=
cloud.google.com/go/logging v1.13.2 h1:qqlHCBvieJT9Cdq4QqYx1KPadCQ2noD4FK02eNqHAjA=
cloud.google.com/go/logging v1.13.2/go.mod h1:zaybliM3yun1J8mU2dVQ1/qDzjbOqEijZCn6hSBtKak=
cloud.google.com/go/logging v1.19.0 h1:NCqhdVUg3wQ8Cobdf16FDSuTGi3+6+hdSBHrY5TsR6Q=
+cloud.google.com/go/logging v1.19.1 h1:7SsLhyTDBDrJw+Ll6Ns3I2mByqHXvJUc3rGjSlwiWgU=
cloud.google.com/go/longrunning v0.8.0 h1:LiKK77J3bx5gDLi4SMViHixjD2ohlkwBi+mKA7EhfW8=
cloud.google.com/go/longrunning v0.8.0/go.mod h1:UmErU2Onzi+fKDg2gR7dusz11Pe26aknR4kHmJJqIfk=
cloud.google.com/go/longrunning v1.2.0 h1:WjYH3YHBGCxGJP9M4dWGHBfXr/cFIjMkNgWcJj7/iMM=
@@ -36,12 +41,18 @@ cloud.google.com/go/pubsub v1.50.1 h1:fzbXpPyJnSGvWXF1jabhQeXyxdbCIkXTpjXHy7xviB
cloud.google.com/go/pubsub v1.50.1/go.mod h1:6YVJv3MzWJUVdvQXG081sFvS0dWQOdnV+oTo++q/xFk=
cloud.google.com/go/pubsub v1.51.0 h1:XOaCejsqX7EEtUdQz+WPag66wWsUUGliyCOfGPKfo90=
cloud.google.com/go/pubsub v1.51.0/go.mod h1:NERXf11sd82UV3VnflcUj8POIyQUXT/QwrKlxD8di/I=
+cloud.google.com/go/pubsub v1.51.1 h1:R3G1wCOxBO7jRpL8x2pdZMv1GAJDF6ax/m2zPOtvTNE=
+cloud.google.com/go/pubsub v1.51.1/go.mod h1:y2T0IKtW1iWwVvazYaRpqOAFO4gy2+O7dTDt9TWY/5U=
cloud.google.com/go/pubsub/v2 v2.4.0 h1:oMKNiBQpXImRWnHYla9uSU66ZzByZwBSCJOEs/pTKVg=
cloud.google.com/go/pubsub/v2 v2.4.0/go.mod h1:2lS/XQKq5qtOMs6kHBK+WX1ytUC36kLl2ig3zqsGUx8=
cloud.google.com/go/pubsub/v2 v2.6.0 h1:8pjR0id+GTB+krKx5G6AGJoYrHog58w2Q89PCOrfM64=
cloud.google.com/go/pubsub/v2 v2.6.0/go.mod h1:4anqvV/w8Pcgu2tO0qr2XgsF3GXHowzryfQ5gOnVmWY=
+cloud.google.com/go/pubsub/v2 v2.7.0 h1:MFrBTZZa6PDWZzCi4NJRsHKMm2w0a4oAaYNqwjgbQTE=
+cloud.google.com/go/pubsub/v2 v2.7.0/go.mod h1:JaFvWNVRk3Knoil/4M1ECeLOaI9D8drbmJWypQlK5aM=
cloud.google.com/go/storage v1.61.3 h1:VS//ZfBuPGDvakfD9xyPW1RGF1Vy3BWUoVZXgW1KMOg=
cloud.google.com/go/storage v1.61.3/go.mod h1:JtqK8BBB7TWv0HVGHubtUdzYYrakOQIsMLffZ2Z/HWk=
+cloud.google.com/go/storage v1.67.0 h1:8xD3NvKuHE4c+b/kmSIVBdTc0BiOjplx+KecKGR9fr8=
+cloud.google.com/go/storage v1.67.0/go.mod h1:UsS9OgFg/XHOSYakQ8ZtLWWeyGkk1WnmD/GsGfN0BHM=
cloud.google.com/go/trace v1.11.7 h1:kDNDX8JkaAG3R2nq1lIdkb7FCSi1rCmsEtKVsty7p+U=
cloud.google.com/go/trace v1.11.7/go.mod h1:TNn9d5V3fQVf6s4SCveVMIBS2LJUqo73GACmq/Tky0s=
cloud.google.com/go/trace v1.16.0 h1:GmQovzFc5F0CNfl0VLgL64aoTtu7xsM0YajW2GlG9+E=
@@ -70,9 +81,13 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.8.1
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage v1.8.1/go.mod h1:Ng3urmn6dYe8gnbCMoHHVl5APYz2txho3koEkV2o2HA=
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.4 h1:jWQK1GI+LeGGUKBADtcH2rRqPxYB1Ljwms5gFA2LqrM=
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.4/go.mod h1:8mwH4klAm9DUgR2EEHyEEAQlRDvLPyg5fQry3y+cDew=
+github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.8.0 h1:irsmOWwkp0KCTTNS5e2hdFeIvSQClQo2No3IaNmL3Vw=
+github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.8.0/go.mod h1:GWcBkQj3MqN7ozHKLaCCAuNLiXoIGv2RtanfAwSjY/Y=
github.com/Azure/go-amqp v0.17.0/go.mod h1:9YJ3RhxRT1gquYnzpZO1vcYMMpAdJT+QEg6fwmw9Zlg=
github.com/Azure/go-amqp v1.5.1 h1:WyiPTz2C3zVvDL7RLAqwWdeoYhMtX62MZzQoP09fzsU=
github.com/Azure/go-amqp v1.5.1/go.mod h1:vZAogwdrkbyK3Mla8m/CxSc/aKdnTZ4IbPxl51Y5WZE=
+github.com/Azure/go-amqp v1.7.0 h1:9VlH/LEWr386XWWJRNON0eslFqSClYBXP4HewvIqkDQ=
+github.com/Azure/go-amqp v1.7.0/go.mod h1:pCJaHsvRlmmFUpxyQbh2qPkUFqYJeRBTqJSHKJadvPg=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA=
github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M=
@@ -92,12 +107,19 @@ github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.33.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.33.0/go.mod h1:pJTkW8hEUIIi3Pf65lPZOnn4Y81yCllX6IWk2jNXdkM=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.34.0 h1:yzIYdwuro811Z27D3T80Wkd3rqZzb0K43nner7Eh1yE=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.34.0/go.mod h1:pJTkW8hEUIIi3Pf65lPZOnn4Y81yCllX6IWk2jNXdkM=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.37.0 h1:edOuLWehuDlQ68roBF900Y09jvBoJP5W5d/wusz9nWY=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.37.0/go.mod h1:iIyrdhveU5Ow84ipRlxtjCOQnIM0DiqSMxuxm50xwZY=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.55.0 h1:UnDZ/zFfG1JhH/DqxIZYU/1CUAlTUScoXD/LcM2Ykk8=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.55.0/go.mod h1:IA1C1U7jO/ENqm/vhi7V9YYpBsp+IMyqNrEN94N7tVc=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0 h1:BeC1Bub7Ttk33TF8v3ZeQ2L8acvz4ZLqtQuLyJAZquc=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.61.0/go.mod h1:UgG/Xn9+NXb1/ueSczIFxyuya3hs3srFDiZG2JrpJwY=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.55.0 h1:7t/qx5Ost0s0wbA/VDrByOooURhp+ikYwv20i9Y07TQ=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.55.0/go.mod h1:vB2GH9GAYYJTO3mEn8oYwzEdhlayZIdQz6zdzgUIRvA=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.61.0 h1:eSgSuKdcpY7RTN1oXSzC6S39rPBImn03ubLMsWK4RRg=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.55.0 h1:0s6TxfCu2KHkkZPnBfsQ2y5qia0jl3MMrmBhu3nCOYk=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.55.0/go.mod h1:Mf6O40IAyB9zR/1J8nGDDPirZQQPbYJni8Yisy7NTMc=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.61.0 h1:KhpL26/GviYITHMCEGGqT/l50siFaBCBBKrjv6Z0G/k=
+github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.61.0/go.mod h1:sg6Wqbl0BKKZ5zKnQj2q0qic/3ziF894SCx1LpbX37Y=
github.com/IBM/sarama v1.60.1 h1:2IjpLPCL16CvaJcpxUT5+zE6tpeY5HdhREZOES80kGE=
github.com/IBM/sarama v1.60.1/go.mod h1:ugg061kdM8zE4mgCeCUwDMd9NRd7QIRMoiA4a/Z8VH8=
github.com/IBM/sarama v1.61.1 h1:I59MWPHQUWqJNdRpsDUcbeCriog8SxjQaPfHNWxidEg=
@@ -124,46 +146,88 @@ github.com/ardanlabs/conf/v3 v3.13.0 h1:XKQXX35fFq/jencPu19xh0a6NPMT4NrpcRP/F9x7
github.com/ardanlabs/conf/v3 v3.13.0/go.mod h1:XlL9P0quWP4m1weOVFmlezabinbZLI05niDof/+Ochk=
github.com/aws/aws-sdk-go-v2 v1.41.9 h1:/rYeyO2+HrMztAmxAq9++XJtFMqSIpSsNA0yDGALYq4=
github.com/aws/aws-sdk-go-v2 v1.41.9/go.mod h1:+HsoOEX80qAVUitj1A2DhCNTjmb3edVyuDypb6LNEeo=
+github.com/aws/aws-sdk-go-v2 v1.46.0 h1:1kt7m/EKcEHt5mlyyxx9cSlMddRPIKbjb6DIQsu4HPk=
+github.com/aws/aws-sdk-go-v2 v1.46.0/go.mod h1:bttEH6JqnUL8LepvDVfdrds/fZ5bCIxzpe3abyUrhDU=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.11 h1:h5+3VT69KUBK24grGuuA5saDJTj2IIjLb9au668Fo5I=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.11/go.mod h1:dnakxebH6UwFvcvujL0LVggYQ8nEvBGjU4G/V79Nv94=
+github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.20 h1:GPRlPwz40I2B2VrBEASOA3Bi77NyeqejNLkifosX0rs=
+github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.20/go.mod h1:g7PNzKcsOKWb4fkSRBA7BZVAS6Y8IcxzN+nRohhQ1Q8=
github.com/aws/aws-sdk-go-v2/config v1.32.20 h1:8VMDnWc/kEzxsI/1ngGM9mG81a8IGmIHD8KLcYGwagc=
github.com/aws/aws-sdk-go-v2/config v1.32.20/go.mod h1:PuwEpciweIXGULWeOeSTXtSbH4CW9mWdWrhdCKQI1sM=
+github.com/aws/aws-sdk-go-v2/config v1.33.3 h1:h090b3O5S17bF87/0ysHZuIT/7DCb4EBRFQX2PMVPCw=
+github.com/aws/aws-sdk-go-v2/config v1.33.3/go.mod h1:YYDB1kTejxbfAbEVUqgCtkVp26xvNCHev9cLKABMGAk=
github.com/aws/aws-sdk-go-v2/credentials v1.19.19 h1:yuFzSV1U0aRNYCQGVaTY2zW2M/L93pYHnXnrJUphYhU=
github.com/aws/aws-sdk-go-v2/credentials v1.19.19/go.mod h1:7y63L1kGzeoDlJaQ3Z578KrnmfBut96JjvJUzGwR+YE=
+github.com/aws/aws-sdk-go-v2/credentials v1.20.3 h1:tToOYM/LXev4NpfWlIYGDvBvjHmJ3HXpRU9ppl+pM6k=
+github.com/aws/aws-sdk-go-v2/credentials v1.20.3/go.mod h1:wfGneWyncO7p67wqXV2IQhPk14JqIc25woKlaArT3WI=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.25 h1:0w6dCiO8iez+YKwRhRBlL1CH/E3GTfdkuzrwj1by8vo=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.25/go.mod h1:9FDWUothyr5RCRAHc45XOiVCzUR8n/IhCYX+uVqw6vk=
+github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.19.2 h1:Ldv7RPHs7qwwTscRjAl3YBud32f3BvdAGRmSvAx5L38=
+github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.19.2/go.mod h1:XyK6UV8xbo66ysVqLd2783C09pBYHOm8aKTRV5DVJ30=
github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.2.3 h1:w5OoDiMN6x53ROmiIImGzmVcxXv2q1GXY+aKV4WAJYM=
github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.2.3/go.mod h1:dAhgYp776bX3LuWvnSCFwQEjNs6fuFg7YXIy5PXcP3Q=
+github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.4.3 h1:vsFkmFrfzODkxVbyuPLscv5j5lC8KbG48LZwV+p56Y0=
+github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.4.3/go.mod h1:pjQYVtvVBEtlsf2p6nXMsjPuDaWs9GM44FMdHbmnmYU=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.25 h1:Uii3frf9ztec/ABM2/FSH9/z7PLzxfpG8h4RpkUFflQ=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.25/go.mod h1:G6kntsA2GorAxDPbap6xgB2F+amSLUF8GJTi7PUoX44=
+github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.2 h1:q/PSLGuRWCChWg+dLnb9dWOnrCxJtnboXbBtFoqqRrI=
+github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.2/go.mod h1:TD1jvU2LvXkJexct5vBqcd8QlNXh5EmRUeL/Z32p0n4=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.25 h1:r1+/l6m+WaUJF9HISEsNOLHSNj5EXYQxK8VX6Cz9NlA=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.25/go.mod h1:cKf+D+NMDK1LndD7BowHbBZPgR9V0/5HubH0PFWvA+c=
+github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.2 h1:6fl86IPqKEXoySqiOWdfgbEp9OVbn44zTfEICNEBDhY=
+github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.2/go.mod h1:63HDfhFkdzBpI8WGXTSKUHPKS6mqldj4u3LJW7RZtSU=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.26 h1:A1PmWU2zfkIm9EyFlJncFXL4W4phML+h8KjltUsCvNQ=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.26/go.mod h1:dY4MRzXEizrD4hqtpKvWVGPX7QleSGGVY+EBolo1RmM=
+github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.2 h1:XMgIRS+uW9F3yFKnXGRrI9pkHi99CXTmoz2kz2/TGBA=
+github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.2/go.mod h1:vorxDzK+n3jiv9a5ST/LG0Eu9cSv1CRdKTpG6pDMs+M=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.10 h1:d5/908OJ4bXg8lyjeMPvXetEKqoDoLi5Owy1zNue3yg=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.10/go.mod h1:a57l7Hwh+FWI+we50g5NPJHYUKeJKfXbc4w8SyXu8Ig=
+github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.19 h1:bAdDl/HkGCcGPoe25ToSHEw23VIxt6CT5fLcg111BKg=
+github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.19/go.mod h1:KaUzbLxv4CeSxh6ZCl9B4m7CuFenS8kUEaDs+f/DQr4=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.18 h1:W/EyPFl9A5rXrtoilfwHYEvzHER+K4SpBPtMXi24Mos=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.18/go.mod h1:UG50K+pvd/uy6xExbobg0rjqFBFZe6I3l75EPDZw4tg=
+github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.2 h1:CO485zrLOZBeq8mrdsudc8cjyhvC4LY4JFt8ZfHvXZ0=
+github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.2/go.mod h1:cBAjVUKBr+5wnx1K3XWS8u5AZsqpA2S/0z7YtI6BGFc=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.25 h1:dD3dhHNglpd98gs72my22Ndqi1hqQGllFFg1F+twfxg=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.25/go.mod h1:0yAbjPfd64gG7mj85RW+fMEYdfBgCRZw8g/oWcL1pjc=
+github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.2 h1:ZtHYnumr6QyxhzEzNZwzQTFJEXOswrZqTTkRxthwvr4=
+github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.2/go.mod h1:a1NXrYpBd311gBzn1UI5UzJyyvXktM4xNh/ydPiPpqY=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.25 h1:2pQEbwf+/6EDbiit/GcBE2K4IUpMZymaA0kOz3xK978=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.25/go.mod h1:KvT6NCcQ0EZ+ZkVRrlBMt04Po3ok23YELEp7WimhLhM=
+github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.2 h1:Enx5JcIy/o90kio1LFZ/HguxIsos3clbGuSpGdyshX8=
+github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.2/go.mod h1:Ldmll8/2VqaVerWWDf8IGG+6pAvZY04gs3tevq3nIFs=
github.com/aws/aws-sdk-go-v2/service/s3 v1.102.2 h1:ie4ElCmUKS26pzrZcIk/lmt4yWjAqLLcawstyQCh298=
github.com/aws/aws-sdk-go-v2/service/s3 v1.102.2/go.mod h1:zjsomFeX5duj+4PlMB+o4JoWTIx+G0XMyzjYrUbQkN0=
+github.com/aws/aws-sdk-go-v2/service/s3 v1.111.0 h1:4PokON/ISKuD6Zl062n4WfQNnEFBMHvfeJy73Jp7K+g=
+github.com/aws/aws-sdk-go-v2/service/s3 v1.111.0/go.mod h1:6ZFrmv/qIAYFmG+2WhA7mFU8+edldRlISwT+tNnyLuA=
github.com/aws/aws-sdk-go-v2/service/signin v1.1.1 h1:1VwbP3qMNfxUDEXWki4rCE5iA+44VA1lokTz9HasGzw=
github.com/aws/aws-sdk-go-v2/service/signin v1.1.1/go.mod h1:vUtyoSj0OPji3kjIVSc/GlKuWEiL33f/WFxl6dmpy/A=
+github.com/aws/aws-sdk-go-v2/service/signin v1.9.0 h1:c3k+k/CS4L+sAIH6fxikL+g5g2LpeNczaoyjjw1iMKI=
+github.com/aws/aws-sdk-go-v2/service/signin v1.9.0/go.mod h1:AGIoQg99fBrOIQnF78TLx4lj18mc4gZ0hJx1UaLIFM4=
github.com/aws/aws-sdk-go-v2/service/sns v1.39.14 h1:p8WdWDh5AwSZdp19Haa3XMyPCICi9Z375a/Nu3IIEZY=
github.com/aws/aws-sdk-go-v2/service/sns v1.39.14/go.mod h1:NKVY7DER6VXHkt2I/ycmHakALNboi3Rqwt4eEf/1Cnk=
+github.com/aws/aws-sdk-go-v2/service/sns v1.46.0 h1:fD02zeo2Kc4hlFUvGX3FfA+gGOwd4BBcYgPDHDEzx9Y=
+github.com/aws/aws-sdk-go-v2/service/sns v1.46.0/go.mod h1:/lB2ILjoT5/q0zSwtHnrJPjXBvjalnEIl0IgSEdvHec=
github.com/aws/aws-sdk-go-v2/service/sqs v1.42.24 h1:JP2wjWGmUp8lTCZb13Dv0Eciyc1jbO8pd0HZVMHFlrc=
github.com/aws/aws-sdk-go-v2/service/sqs v1.42.24/go.mod h1:Ql9ziDutk8ERAN9HMaYANCW3lop451ppebkxEJMLCTM=
+github.com/aws/aws-sdk-go-v2/service/sqs v1.51.0 h1:FghdY9ebeZf9iIan9J0xfBEID8arYibNBeZ1XHvs4oA=
+github.com/aws/aws-sdk-go-v2/service/sqs v1.51.0/go.mod h1:wu7uOJ/2nAdenjvhHikeF6j0al99kfPVG6ZDU4e76OY=
github.com/aws/aws-sdk-go-v2/service/sso v1.30.19 h1:N6pIsdFOW1Kd9S4KyFKXdGRBojPPxkP32+uHFWLv4Hc=
github.com/aws/aws-sdk-go-v2/service/sso v1.30.19/go.mod h1:3gt5WJArFooNmyLONS+h/R4J+o86II8du38IgCwj9dE=
+github.com/aws/aws-sdk-go-v2/service/sso v1.37.0 h1:+rqBaOq7jzInjY8M12hr+zEe85JpRll9BjMx38r33Ok=
+github.com/aws/aws-sdk-go-v2/service/sso v1.37.0/go.mod h1:XFlVwUsw3sYh8Hw37umYVJnrcWrwXWRxbNw/JY0bblw=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.36.2 h1:hc+lBYiiTr8Zk4MTzIsQ92MeDWCIDvWGmzKUWOaBcOg=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.36.2/go.mod h1:hU6fqB3OJA6/ePheD47LQnxvjYk6br6PtQxs+Q9ojvk=
+github.com/aws/aws-sdk-go-v2/service/ssooidc v1.42.0 h1:hzM3GslEAOBcLn3DHH6ENToFi+vXP+n02W+x6zejAIM=
+github.com/aws/aws-sdk-go-v2/service/ssooidc v1.42.0/go.mod h1:588e7skMkYIYkSUseT8E3WKFfbAfrA1bj3Zf+qxJtJY=
github.com/aws/aws-sdk-go-v2/service/sts v1.42.3 h1:ErklX/7uhSbkAAeyQD/Y1OoQ9hO3SJXQNEgksORW3Js=
github.com/aws/aws-sdk-go-v2/service/sts v1.42.3/go.mod h1:ULe4HCzfKPiR6R3HEurE3b1upEkuk8AkMrOKtaOxKO8=
+github.com/aws/aws-sdk-go-v2/service/sts v1.49.0 h1:N7Ey8obY3uSui+cxl0OUzFlFmkxSucoJnrniFhw+cLc=
+github.com/aws/aws-sdk-go-v2/service/sts v1.49.0/go.mod h1:zMBwjSf4Pt8a1OHYiZ5rPD0PJRK1kQrUaxhS/Dbld8E=
github.com/aws/smithy-go v1.26.0 h1:9ouqbi+NyKP7fV3Te7UElCwdAb6Y8uk7LGwPE5tVe/s=
github.com/aws/smithy-go v1.26.0/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=
+github.com/aws/smithy-go v1.28.1 h1:R/nXH00c8qcfCzQVELtRw+eLQWtzv+VAIEFJ1/xxXlQ=
+github.com/aws/smithy-go v1.28.1/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=
github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQrS0=
github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE=
github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM=
@@ -199,6 +263,8 @@ github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwB
github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU=
github.com/envoyproxy/go-control-plane/envoy v1.37.0 h1:u3riX6BoYRfF4Dr7dwSOroNfdSbEPe9Yyl09/B6wBrQ=
github.com/envoyproxy/go-control-plane/envoy v1.37.0/go.mod h1:DReE9MMrmecPy+YvQOAOHNYMALuowAnbjjEMkkWOi6A=
+github.com/envoyproxy/go-control-plane/envoy v1.39.0 h1:1uwRDYPYG8BIBU9Mj1sUAebNmlM6beu/ZKKweSLDxk8=
+github.com/envoyproxy/go-control-plane/envoy v1.39.0/go.mod h1:5e4ylfTZO723MEEFsCpSW4ZEBWR8mwkEyXfwJBTCZ9c=
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI=
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4=
github.com/envoyproxy/protoc-gen-validate v1.3.3 h1:MVQghNeW+LZcmXe7SY1V36Z+WFMDjpqGAGacLe2T0ds=
@@ -232,6 +298,8 @@ github.com/go-chi/chi/v5 v5.3.2 h1:5YQkICvTCSZ25hoRsyJazN0scjzKGiu4VAUc7H1o1nY=
github.com/go-chi/chi/v5 v5.3.2/go.mod h1:R+tYY2hNuVUUjxoPtqUdgBqevM9s9njzkTLutVsOCto=
github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA=
github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
+github.com/go-jose/go-jose/v4 v4.1.5 h1:RjgjO2LOtWOJKUC5wpwY9LR3B3vwVAz6JS2YHfYU6eA=
+github.com/go-jose/go-jose/v4 v4.1.5/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8=
github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
@@ -346,6 +414,7 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/go-replayers/grpcreplay v1.3.0 h1:1Keyy0m1sIpqstQmgz307zhiJ1pV4uIlFds5weTmxbo=
github.com/google/go-replayers/grpcreplay v1.3.0/go.mod h1:v6NgKtkijC0d3e3RW8il6Sy5sqRVUwoQa4mHOGEy8DI=
+github.com/google/go-replayers/grpcreplay v1.5.1 h1:R90FMYaA6GQNhi/GG0D4zS14HEQ+wpO8bQAV0Qwyt08=
github.com/google/go-replayers/httpreplay v1.2.0 h1:VM1wEyyjaoU53BwrOnaf9VhAyQQEEioJvFYxYcLRKzk=
github.com/google/go-replayers/httpreplay v1.2.0/go.mod h1:WahEFFZZ7a1P4VM1qEeHy+tME4bwyqPcwWbNlUI1Mcg=
github.com/google/go-tpm v0.9.8 h1:slArAR9Ft+1ybZu0lBwpSmpwhRXaa85hWtMinMyRAWo=
@@ -617,6 +686,8 @@ go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/contrib/detectors/gcp v1.44.0 h1:NmLfL734pJhM0JKaYd2Y28+nY9dPRWYAAbxhRCrKXPw=
go.opentelemetry.io/contrib/detectors/gcp v1.44.0/go.mod h1:tNAsgd8avTGke1+MndXlU5Cru4PQ9Ai/cCNWQv/ZJ/s=
+go.opentelemetry.io/contrib/detectors/gcp v1.46.0 h1:PI8dGkqDaQkwJ8kOopqMhDTbrnK3UIeG/RCHH4HErbo=
+go.opentelemetry.io/contrib/detectors/gcp v1.46.0/go.mod h1:nsrN5c/sOLoY2vsPxN/rQ0V0nvGrWJCqcW4UXLtqNG8=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0 h1:yI1/OhfEPy7J9eoa6Sj051C7n5dvpj0QX8g4sRchg04=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0/go.mod h1:NoUCKYWK+3ecatC4HjkRktREheMeEtrXoQxrqYFeHSc=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.70.0 h1:oECp5f+hN7nkwjU/8BxQ/q23bGPb8FIrD839owX222E=
@@ -715,6 +786,8 @@ go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
gocloud.dev v0.46.0 h1:niIuZwSjMtBx8K+ITB2s5kZullB13PGOS2ZoQPZxQ4Q=
gocloud.dev v0.46.0/go.mod h1:ACQe+2qO+hEO+pdcvvsM+RB63r8TyGD1W3ESCLFyzvM=
+gocloud.dev v0.46.1-0.20261001165631-b77c6be2700b h1:pT3Zmdp8sPxY9RcqFmJTs1y9lCROC5yOKP52xFl+TpA=
+gocloud.dev v0.46.1-0.20261001165631-b77c6be2700b/go.mod h1:OdMnyXQRhM17U0a0DwU57pe0c01qN3lJNmaeeRYW0D0=
gocloud.dev/pubsub/kafkapubsub v0.46.0 h1:Oe/BjfqMXX0God3sogh+otXsRtgCKz1WCIfw1SyKtuM=
gocloud.dev/pubsub/kafkapubsub v0.46.0/go.mod h1:G9K68JOVF9ND29QNGU+w0df1/+nshyDnhjVl5dzJCFg=
gocloud.dev/pubsub/natspubsub v0.46.0 h1:cTmJnWOmhb3dYRzX7PvNkq2m5mQdBLFFxZbl/21pfjk=
@@ -827,6 +900,8 @@ google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 h1:XzmzkmB14QhVhgn
google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7/go.mod h1:L43LFes82YgSonw6iTXTxXUX1OlULt4AQtkik4ULL/I=
google.golang.org/genproto v0.0.0-20260715232425-e75dac1f907d h1:C9v1o0/4quuhOAfmRXA2j+we0PqZIp8traLdeogF3Ms=
google.golang.org/genproto v0.0.0-20260715232425-e75dac1f907d/go.mod h1:Wz2wFJntZFmLGo7pLDXZ3wYk5hyc0Mb+SkHhDDXT+lU=
+google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4 h1:6QRNo34FxJcE1LG6XfnmaQ17m6w21oXaKlKoBaF+UqE=
+google.golang.org/genproto v0.0.0-20260904194346-d0f1323225a4/go.mod h1:eifJ91nefXnfP/bMkZsACVGm14ZtEL4eUXRLTryfbY4=
google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d h1:FarXi840EJWSHYTN3ERkADbPWjl307+FGrA22KAVjjc=
google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d/go.mod h1:K/+WGbmBY7aNW1HDw1fJnKYo10i0DkAX6pows00dLig=
google.golang.org/genproto/googleapis/api v0.0.0-20260819154853-08b0e4226688 h1:ax2KzoSRIZU/M0cIxri3pKxy99vniH1PVxWC6si/eZI=
diff --git a/backend/internal/data/repo/repo_entities.go b/backend/internal/data/repo/repo_entities.go
index 545ee23e..edfc7785 100644
--- a/backend/internal/data/repo/repo_entities.go
+++ b/backend/internal/data/repo/repo_entities.go
@@ -767,15 +767,19 @@ func orderByLocation(gid uuid.UUID, desc bool) entity.OrderOption {
}
// applyEntityOrder applies the ORDER BY for q.OrderBy / q.OrderDirection and
-// returns the resolved order field name for logging.
+// returns the resolved order field name for logging. When no direction is
+// given, timestamps sort newest first and every other field ascending.
func applyEntityOrder(qb *ent.EntityQuery, gid uuid.UUID, q EntityQuery) (*ent.EntityQuery, string) {
var orderBy string
+ defaultDesc := false
switch q.OrderBy {
case "createdAt":
orderBy = entity.FieldCreatedAt
+ defaultDesc = true
case "updatedAt":
orderBy = entity.FieldUpdatedAt
+ defaultDesc = true
case "assetId":
orderBy = entity.FieldAssetID
case "quantity":
@@ -793,12 +797,11 @@ func applyEntityOrder(qb *ent.EntityQuery, gid uuid.UUID, q EntityQuery) (*ent.E
orderBy = entity.FieldName
}
- switch q.OrderDirection {
- case "desc":
+ desc := q.OrderDirection == "desc" || (q.OrderDirection == "" && defaultDesc)
+ if desc {
return qb.Order(ent.Desc(orderBy)), orderBy
- default: // "asc"
- return qb.Order(ent.Asc(orderBy)), orderBy
}
+ return qb.Order(ent.Asc(orderBy)), orderBy
}
// QueryByGroup returns a list of entities that belong to a specific group based on the provided query.
diff --git a/backend/internal/data/repo/repo_entities_test.go b/backend/internal/data/repo/repo_entities_test.go
index f0ab2b68..949200d9 100644
--- a/backend/internal/data/repo/repo_entities_test.go
+++ b/backend/internal/data/repo/repo_entities_test.go
@@ -991,3 +991,47 @@ func TestEntityRepository_QueryByGroup_OrderByLocation(t *testing.T) {
assert.Equal(t, []uuid.UUID{direct.ID, box.ID, nested.ID, orphan.ID}, order("asc"))
assert.Equal(t, []uuid.UUID{box.ID, nested.ID, direct.ID, orphan.ID}, order("desc"))
}
+
+// TestEntityRepository_QueryByGroup_TimestampOrderDefaultsDesc verifies that
+// ordering by createdAt/updatedAt without a direction returns the newest
+// entities first, while an explicit direction is still respected.
+func TestEntityRepository_QueryByGroup_TimestampOrderDefaultsDesc(t *testing.T) {
+ ctx := context.Background()
+ itemET := useItemEntityType(t)
+
+ first := mustCreateEntity(t, "ts-first", itemET.ID, uuid.Nil)
+ second := mustCreateEntity(t, "ts-second", itemET.ID, uuid.Nil)
+ third := mustCreateEntity(t, "ts-third", itemET.ID, uuid.Nil)
+
+ // Touch the first entity so it becomes the most recently updated.
+ _, err := tClient.Entity.UpdateOneID(first.ID).SetDescription("touched").Save(ctx)
+ require.NoError(t, err)
+
+ // The test group is shared, so only the entities created here are ordered.
+ mine := map[uuid.UUID]bool{first.ID: true, second.ID: true, third.ID: true}
+ order := func(orderBy, direction string) []uuid.UUID {
+ t.Helper()
+ res, err := tRepos.Entities.QueryByGroup(ctx, tGroup.ID, EntityQuery{
+ Page: -1,
+ PageSize: -1,
+ OrderBy: orderBy,
+ OrderDirection: direction,
+ })
+ require.NoError(t, err)
+
+ ids := make([]uuid.UUID, 0, len(mine))
+ for _, e := range res.Items {
+ if mine[e.ID] {
+ ids = append(ids, e.ID)
+ }
+ }
+ return ids
+ }
+
+ assert.Equal(t, []uuid.UUID{third.ID, second.ID, first.ID}, order("createdAt", ""))
+ assert.Equal(t, []uuid.UUID{third.ID, second.ID, first.ID}, order("createdAt", "desc"))
+ assert.Equal(t, []uuid.UUID{first.ID, second.ID, third.ID}, order("createdAt", "asc"))
+
+ assert.Equal(t, []uuid.UUID{first.ID, third.ID, second.ID}, order("updatedAt", ""))
+ assert.Equal(t, []uuid.UUID{second.ID, third.ID, first.ID}, order("updatedAt", "asc"))
+}
diff --git a/backend/internal/data/repo/repo_item_attachments_test.go b/backend/internal/data/repo/repo_item_attachments_test.go
index 561e1858..edd51b98 100644
--- a/backend/internal/data/repo/repo_item_attachments_test.go
+++ b/backend/internal/data/repo/repo_item_attachments_test.go
@@ -4,6 +4,7 @@ import (
"context"
"os"
"path/filepath"
+ "runtime"
"strings"
"testing"
@@ -13,6 +14,7 @@ import (
"github.com/sysadminsmedia/homebox/backend/internal/data/ent"
"github.com/sysadminsmedia/homebox/backend/internal/data/ent/attachment"
"github.com/sysadminsmedia/homebox/backend/internal/sys/config"
+ "gocloud.dev/blob"
)
func TestMimeTypeForSourceType(t *testing.T) {
@@ -472,3 +474,39 @@ func TestAttachmentRepo_MigrateLegacyFlatPaths_TargetExistsKeepsSource(t *testin
require.NoError(t, err)
assert.Equal(t, "new", string(dst), "target file should not be overwritten")
}
+
+// TestAttachmentRepo_FilesystemRootBucket covers the Docker image defaults,
+// where the bucket root is "/" (file:///) and the prefix selects the data
+// directory. Keys under a root bucket must be readable and writable.
+func TestAttachmentRepo_FilesystemRootBucket(t *testing.T) {
+ if runtime.GOOS == "windows" {
+ t.Skip("filesystem root bucket layout only applies to unix-like systems")
+ }
+
+ ctx := context.Background()
+ dataDir := t.TempDir()
+
+ r := &AttachmentRepo{storage: config.Storage{
+ ConnString: "file:///?no_tmp_dir=true",
+ PrefixPath: strings.TrimPrefix(dataDir, "/"),
+ }}
+
+ gid := uuid.New()
+ key := r.fullPath(r.path(gid, "hash"))
+
+ bucket, err := blob.OpenBucket(ctx, r.GetConnString())
+ require.NoError(t, err)
+ t.Cleanup(func() { _ = bucket.Close() })
+
+ require.NoError(t, bucket.WriteAll(ctx, key, []byte("hello"), nil))
+
+ got, err := bucket.ReadAll(ctx, key)
+ require.NoError(t, err)
+ assert.Equal(t, []byte("hello"), got)
+
+ onDisk, err := os.ReadFile(filepath.Join(dataDir, gid.String(), "documents", "hash"))
+ require.NoError(t, err)
+ assert.Equal(t, []byte("hello"), onDisk)
+
+ require.NoError(t, bucket.Delete(ctx, key))
+}
diff --git a/docs/public/api/openapi-3.0.json b/docs/public/api/openapi-3.0.json
index 82963259..f05579e2 100644
--- a/docs/public/api/openapi-3.0.json
+++ b/docs/public/api/openapi-3.0.json
@@ -299,6 +299,34 @@
"type": "string"
}
}
+ },
+ {
+ "description": "entity type IDs; when provided this filter takes precedence over isLocation",
+ "name": "entityTypeIds",
+ "in": "query",
+ "explode": true,
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ {
+ "description": "field to order by; valid values: name, createdAt, updatedAt, assetId",
+ "name": "orderBy",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "description": "order direction; valid values: asc, desc. Defaults to desc for createdAt and updatedAt, asc otherwise",
+ "name": "orderDirection",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
}
],
"responses": {
@@ -5057,7 +5085,7 @@
"type": "string"
},
"locationId": {
- "description": "LocationID is only needed when ParentID refers to another item and\nthe new entity is stored somewhere other than that item's location.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).",
"type": "string",
"x-omitempty": true,
"nullable": true
@@ -5206,7 +5234,7 @@
"type": "boolean"
},
"location": {
- "description": "Location is where this entity resolves to: its own location when one\nis set, otherwise the nearest ancestor whose entity type is a\nlocation. Nil for top-level entities. This is a *resolved* value —\nwrite it back through LocationID, not through this field.",
+ "description": "Location is resolved: this entity's own location, else the nearest\nlocation ancestor. Read-only — write via LocationID.",
"allOf": [
{
"$ref": "#/components/schemas/repo.EntitySummary"
@@ -5216,7 +5244,7 @@
"nullable": true
},
"locationId": {
- "description": "LocationID is this entity's own location, and is nil when Location was\ninherited from an ancestor. It is named to match the locationId field\non EntityUpdate on purpose: a GET body PUT back verbatim keeps the\nentity exactly where it was, rather than silently pinning an\ninherited location or dropping an explicit one.",
+ "description": "LocationID is set only when this entity has its own location, nil when\ninherited. Same name as the EntityUpdate field so a GET/PUT round trip\ndoesn't pin an inherited location or drop an explicit one.",
"type": "string",
"x-omitempty": true,
"nullable": true
@@ -5820,7 +5848,7 @@
"type": "boolean"
},
"locationId": {
- "description": "LocationID names the location this entity is stored in. It only\nneeds to be sent when ParentID refers to another item and the entity\nlives somewhere other than that item's location (#1688); otherwise\nParentID alone carries the location. See resolveLocationOverride.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).\nOtherwise ParentID carries the location. See resolveLocationOverride.",
"type": "string",
"x-omitempty": true,
"nullable": true
diff --git a/docs/public/api/openapi-3.0.yaml b/docs/public/api/openapi-3.0.yaml
index a00c2bbc..7be5c735 100644
--- a/docs/public/api/openapi-3.0.yaml
+++ b/docs/public/api/openapi-3.0.yaml
@@ -183,6 +183,27 @@ paths:
type: array
items:
type: string
+ - description: entity type IDs; when provided this filter takes precedence over
+ isLocation
+ name: entityTypeIds
+ in: query
+ explode: true
+ schema:
+ type: array
+ items:
+ type: string
+ - description: "field to order by; valid values: name, createdAt, updatedAt,
+ assetId"
+ name: orderBy
+ in: query
+ schema:
+ type: string
+ - description: "order direction; valid values: asc, desc. Defaults to desc for
+ createdAt and updatedAt, asc otherwise"
+ name: orderDirection
+ in: query
+ schema:
+ type: string
responses:
"200":
description: OK
@@ -3186,9 +3207,8 @@ components:
entityTypeId:
type: string
locationId:
- description: |-
- LocationID is only needed when ParentID refers to another item and
- the new entity is stored somewhere other than that item's location.
+ description: Only needed when ParentID is another item and this lives elsewhere
+ (#1688).
type: string
x-omitempty: true
nullable: true
@@ -3296,26 +3316,20 @@ components:
type: boolean
location:
description: |-
- Location is where this entity resolves to: its own location when one
- is set, otherwise the nearest ancestor whose entity type is a
- location. Nil for top-level entities. This is a *resolved* value —
- write it back through LocationID, not through this field.
+ Location is resolved: this entity's own location, else the nearest
+ location ancestor. Read-only — write via LocationID.
allOf:
- $ref: "#/components/schemas/repo.EntitySummary"
x-omitempty: true
nullable: true
locationId:
description: >-
- LocationID is this entity's own location, and is nil when Location
- was
-
- inherited from an ancestor. It is named to match the locationId field
+ LocationID is set only when this entity has its own location, nil
+ when
- on EntityUpdate on purpose: a GET body PUT back verbatim keeps the
+ inherited. Same name as the EntityUpdate field so a GET/PUT round trip
- entity exactly where it was, rather than silently pinning an
-
- inherited location or dropping an explicit one.
+ doesn't pin an inherited location or drop an explicit one.
type: string
x-omitempty: true
nullable: true
@@ -3735,11 +3749,11 @@ components:
description: Warranty
type: boolean
locationId:
- description: |-
- LocationID names the location this entity is stored in. It only
- needs to be sent when ParentID refers to another item and the entity
- lives somewhere other than that item's location (#1688); otherwise
- ParentID alone carries the location. See resolveLocationOverride.
+ description: >-
+ Only needed when ParentID is another item and this lives elsewhere
+ (#1688).
+
+ Otherwise ParentID carries the location. See resolveLocationOverride.
type: string
x-omitempty: true
nullable: true
diff --git a/docs/public/api/swagger-2.0.json b/docs/public/api/swagger-2.0.json
index 8ec23bee..a694e223 100644
--- a/docs/public/api/swagger-2.0.json
+++ b/docs/public/api/swagger-2.0.json
@@ -285,6 +285,28 @@
"description": "parent Ids",
"name": "parentIds",
"in": "query"
+ },
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "collectionFormat": "multi",
+ "description": "entity type IDs; when provided this filter takes precedence over isLocation",
+ "name": "entityTypeIds",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "description": "field to order by; valid values: name, createdAt, updatedAt, assetId",
+ "name": "orderBy",
+ "in": "query"
+ },
+ {
+ "type": "string",
+ "description": "order direction; valid values: asc, desc. Defaults to desc for createdAt and updatedAt, asc otherwise",
+ "name": "orderDirection",
+ "in": "query"
}
],
"responses": {
@@ -4813,7 +4835,7 @@
"type": "string"
},
"locationId": {
- "description": "LocationID is only needed when ParentID refers to another item and\nthe new entity is stored somewhere other than that item's location.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).",
"type": "string",
"x-nullable": true,
"x-omitempty": true
@@ -4962,7 +4984,7 @@
"type": "boolean"
},
"location": {
- "description": "Location is where this entity resolves to: its own location when one\nis set, otherwise the nearest ancestor whose entity type is a\nlocation. Nil for top-level entities. This is a *resolved* value —\nwrite it back through LocationID, not through this field.",
+ "description": "Location is resolved: this entity's own location, else the nearest\nlocation ancestor. Read-only — write via LocationID.",
"allOf": [
{
"$ref": "#/definitions/repo.EntitySummary"
@@ -4972,7 +4994,7 @@
"x-omitempty": true
},
"locationId": {
- "description": "LocationID is this entity's own location, and is nil when Location was\ninherited from an ancestor. It is named to match the locationId field\non EntityUpdate on purpose: a GET body PUT back verbatim keeps the\nentity exactly where it was, rather than silently pinning an\ninherited location or dropping an explicit one.",
+ "description": "LocationID is set only when this entity has its own location, nil when\ninherited. Same name as the EntityUpdate field so a GET/PUT round trip\ndoesn't pin an inherited location or drop an explicit one.",
"type": "string",
"x-nullable": true,
"x-omitempty": true
@@ -5576,7 +5598,7 @@
"type": "boolean"
},
"locationId": {
- "description": "LocationID names the location this entity is stored in. It only\nneeds to be sent when ParentID refers to another item and the entity\nlives somewhere other than that item's location (#1688); otherwise\nParentID alone carries the location. See resolveLocationOverride.",
+ "description": "Only needed when ParentID is another item and this lives elsewhere (#1688).\nOtherwise ParentID carries the location. See resolveLocationOverride.",
"type": "string",
"x-nullable": true,
"x-omitempty": true
diff --git a/docs/public/api/swagger-2.0.yaml b/docs/public/api/swagger-2.0.yaml
index f4f1fb2a..a1dd6540 100644
--- a/docs/public/api/swagger-2.0.yaml
+++ b/docs/public/api/swagger-2.0.yaml
@@ -1110,9 +1110,8 @@ definitions:
entityTypeId:
type: string
locationId:
- description: |-
- LocationID is only needed when ParentID refers to another item and
- the new entity is stored somewhere other than that item's location.
+ description: Only needed when ParentID is another item and this lives elsewhere
+ (#1688).
type: string
x-nullable: true
x-omitempty: true
@@ -1224,19 +1223,15 @@ definitions:
allOf:
- $ref: '#/definitions/repo.EntitySummary'
description: |-
- Location is where this entity resolves to: its own location when one
- is set, otherwise the nearest ancestor whose entity type is a
- location. Nil for top-level entities. This is a *resolved* value —
- write it back through LocationID, not through this field.
+ Location is resolved: this entity's own location, else the nearest
+ location ancestor. Read-only — write via LocationID.
x-nullable: true
x-omitempty: true
locationId:
description: |-
- LocationID is this entity's own location, and is nil when Location was
- inherited from an ancestor. It is named to match the locationId field
- on EntityUpdate on purpose: a GET body PUT back verbatim keeps the
- entity exactly where it was, rather than silently pinning an
- inherited location or dropping an explicit one.
+ LocationID is set only when this entity has its own location, nil when
+ inherited. Same name as the EntityUpdate field so a GET/PUT round trip
+ doesn't pin an inherited location or drop an explicit one.
type: string
x-nullable: true
x-omitempty: true
@@ -1655,10 +1650,8 @@ definitions:
type: boolean
locationId:
description: |-
- LocationID names the location this entity is stored in. It only
- needs to be sent when ParentID refers to another item and the entity
- lives somewhere other than that item's location (#1688); otherwise
- ParentID alone carries the location. See resolveLocationOverride.
+ Only needed when ParentID is another item and this lives elsewhere (#1688).
+ Otherwise ParentID carries the location. See resolveLocationOverride.
type: string
x-nullable: true
x-omitempty: true
@@ -2580,6 +2573,24 @@ paths:
type: string
name: parentIds
type: array
+ - collectionFormat: multi
+ description: entity type IDs; when provided this filter takes precedence over
+ isLocation
+ in: query
+ items:
+ type: string
+ name: entityTypeIds
+ type: array
+ - description: 'field to order by; valid values: name, createdAt, updatedAt,
+ assetId'
+ in: query
+ name: orderBy
+ type: string
+ - description: 'order direction; valid values: asc, desc. Defaults to desc for
+ createdAt and updatedAt, asc otherwise'
+ in: query
+ name: orderDirection
+ type: string
produces:
- application/json
responses:
diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.ts
index e3dc66d1..e1e445b8 100644
--- a/frontend/lib/api/types/data-contracts.ts
+++ b/frontend/lib/api/types/data-contracts.ts
@@ -749,10 +749,7 @@ export interface EntityCreate {
/** @maxLength 1000 */
description: string;
entityTypeId: string;
- /**
- * LocationID is only needed when ParentID refers to another item and
- * the new entity is stored somewhere other than that item's location.
- */
+ /** Only needed when ParentID is another item and this lives elsewhere (#1688). */
locationId?: string | null;
/** @maxLength 255 */
manufacturer?: string | null;
@@ -809,18 +806,14 @@ export interface EntityOut {
/** Warranty */
lifetimeWarranty: boolean;
/**
- * Location is where this entity resolves to: its own location when one
- * is set, otherwise the nearest ancestor whose entity type is a
- * location. Nil for top-level entities. This is a *resolved* value —
- * write it back through LocationID, not through this field.
+ * Location is resolved: this entity's own location, else the nearest
+ * location ancestor. Read-only — write via LocationID.
*/
location?: EntitySummary | null;
/**
- * LocationID is this entity's own location, and is nil when Location was
- * inherited from an ancestor. It is named to match the locationId field
- * on EntityUpdate on purpose: a GET body PUT back verbatim keeps the
- * entity exactly where it was, rather than silently pinning an
- * inherited location or dropping an explicit one.
+ * LocationID is set only when this entity has its own location, nil when
+ * inherited. Same name as the EntityUpdate field so a GET/PUT round trip
+ * doesn't pin an inherited location or drop an explicit one.
*/
locationId?: string | null;
manufacturer: string;
@@ -1034,10 +1027,8 @@ export interface EntityUpdate {
/** Warranty */
lifetimeWarranty: boolean;
/**
- * LocationID names the location this entity is stored in. It only
- * needs to be sent when ParentID refers to another item and the entity
- * lives somewhere other than that item's location (#1688); otherwise
- * ParentID alone carries the location. See resolveLocationOverride.
+ * Only needed when ParentID is another item and this lives elsewhere (#1688).
+ * Otherwise ParentID carries the location. See resolveLocationOverride.
*/
locationId?: string | null;
manufacturer: string;
diff --git a/frontend/pages/home/table.ts b/frontend/pages/home/table.ts
index 195d46f1..77794653 100644
--- a/frontend/pages/home/table.ts
+++ b/frontend/pages/home/table.ts
@@ -8,6 +8,7 @@ export function itemsTable(api: UserClient) {
page: 1,
pageSize: 5,
orderBy: "createdAt",
+ orderDirection: "desc",
});
return data.items;
},