Page MenuHomeSoftware Heritage

D8859.diff
No OneTemporary

D8859.diff

diff --git a/swh/graphql/resolvers/content.py b/swh/graphql/resolvers/content.py
--- a/swh/graphql/resolvers/content.py
+++ b/swh/graphql/resolvers/content.py
@@ -42,7 +42,7 @@
}
@property
- def fileType(self):
+ def mimeType(self):
# FIXME, fetch data from the indexers
return None
diff --git a/swh/graphql/schema/schema.graphql b/swh/graphql/schema/schema.graphql
--- a/swh/graphql/schema/schema.graphql
+++ b/swh/graphql/schema/schema.graphql
@@ -828,7 +828,7 @@
url: String
}
-type ContentFileType {
+type ContentMimeType {
"""
Detected content encoding
"""
@@ -891,7 +891,7 @@
"""
Information about the content MIME type
"""
- fileType: ContentFileType
+ mimeType: ContentMimeType
"""
Information about the programming language used in the content
diff --git a/swh/graphql/tests/functional/test_content.py b/swh/graphql/tests/functional/test_content.py
--- a/swh/graphql/tests/functional/test_content.py
+++ b/swh/graphql/tests/functional/test_content.py
@@ -27,7 +27,7 @@
data {
url
}
- fileType {
+ mimeType {
encoding
}
language {
@@ -55,7 +55,7 @@
"data": {
"url": f"{archive_url}content/sha1:{content.sha1.hex()}/raw/",
},
- "fileType": None,
+ "mimeType": None,
"language": None,
"license": None,
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 5:00 AM (7 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223644

Event Timeline