Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123355
D8859.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8859.diff
View Options
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
Details
Attached
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
Attached To
D8859: Rename the content attribute fileType to mimeType in the schema
Event Timeline
Log In to Comment