Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add missing descriptions to csv export types (#13184)

Filip Owczarekb2e4d8d53cd3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2845d679df..8f4918d464 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,6 +36,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Add missing descriptions to channel module. - #13166 by @fowczarek
- Add missing descriptions to checkout module. - #13167 by @fowczarek
- Add missing descriptions to attribute module. - #13165 by @fowczarek
+- Add missing descriptions to csv module. - #13184 by @fowczarek
# 3.14.0
diff --git a/saleor/graphql/csv/types.py b/saleor/graphql/csv/types.py
index 34a1a014c6..303a930bb3 100644
--- a/saleor/graphql/csv/types.py
+++ b/saleor/graphql/csv/types.py
@@ -71,14 +71,14 @@ class ExportEvent(ModelObjectType[models.ExportEvent]):
class ExportFile(ModelObjectType[models.ExportFile]):
- id = graphene.GlobalID(required=True)
+ id = graphene.GlobalID(required=True, description="The ID of the export file.")
url = graphene.String(description="The URL of field to download.")
events = NonNullList(
ExportEvent,
description="List of events associated with the export.",
)
- user = graphene.Field(User)
- app = graphene.Field(App)
+ user = graphene.Field(User, description="The user who requests file export.")
+ app = graphene.Field(App, description="The app which requests file export.")
class Meta:
description = "Represents a job data of exported file."
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index be7e7f0af4..0a366a4cf7 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -12926,6 +12926,7 @@ enum VoucherSortField {
"""Represents a job data of exported file."""
type ExportFile implements Node & Job {
+ """The ID of the export file."""
id: ID!
"""Job status."""
@@ -12945,7 +12946,11 @@ type ExportFile implements Node & Job {
"""List of events associated with the export."""
events: [ExportEvent!]
+
+ """The user who requests file export."""
user: User
+
+ """The app which requests file export."""
app: App
}