diff --git a/CHANGELOG.md b/CHANGELOG.md index 89f11aa1b..fb133f1e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,9 +8,11 @@ ### Changes - Work with newer python-mapnik ([#1550](../../pull/1550)) +- Use the new official yaml mime-type of application/yaml ([#1558](../../pull/1558)) ### Bug Fixes - Fix an issue emitting rectangles in geojson ([#1552](../../pull/1552)) +- Fix an issue writing zarr channel meatdata ([#1557](../../pull/1557)) ## 1.29.0 diff --git a/girder/girder_large_image/__init__.py b/girder/girder_large_image/__init__.py index 77f25fdb5..060de66cf 100644 --- a/girder/girder_large_image/__init__.py +++ b/girder/girder_large_image/__init__.py @@ -251,6 +251,8 @@ def handleFileSave(event): for mimeType, ext, std in [ ('text/yaml', '.yaml', True), ('text/yaml', '.yml', True), + ('application/yaml', '.yaml', True), + ('application/yaml', '.yml', True), ('application/vnd.geo+json', '.geojson', True), ]: if ext not in mimetypes.types_map: @@ -499,14 +501,14 @@ def yamlConfigFileWrite(folder, name, user, yaml_config): item = Item().createItem(name, user, folder, reuseExisting=True) existingFiles = list(Item().childFiles(item)) if (len(existingFiles) == 1 and - existingFiles[0]['mimeType'] == 'text/yaml' and + existingFiles[0]['mimeType'] == 'application/yaml' and existingFiles[0]['name'] == name): upload = Upload().createUploadToFile( existingFiles[0], user, size=len(yaml_config)) else: upload = Upload().createUpload( user, name, 'item', item, size=len(yaml_config), - mimeType='text/yaml', save=True) + mimeType='application/yaml', save=True) newfile = Upload().handleChunk(upload, yaml_config) with _configWriteLock: for entry in list(Item().childFiles(item)): diff --git a/girder/girder_large_image/web_client/views/itemViewCodemirror.js b/girder/girder_large_image/web_client/views/itemViewCodemirror.js index 7786a1727..021db1a4c 100644 --- a/girder/girder_large_image/web_client/views/itemViewCodemirror.js +++ b/girder/girder_large_image/web_client/views/itemViewCodemirror.js @@ -156,6 +156,7 @@ const Formats = { Formats['application/vnd.geo+json'] = Formats['application/json']; Formats['text/x-yaml'] = Formats['text/yaml']; Formats['application/x-yaml'] = Formats['text/yaml']; +Formats['application/yaml'] = Formats['text/yaml']; function lintGirderIni(text, callback) { return restRequest({ diff --git a/tox.ini b/tox.ini index dca08a32c..60a331ada 100644 --- a/tox.ini +++ b/tox.ini @@ -395,7 +395,6 @@ include = utilities/converter/* utilities/tasks* parallel = True -core = sysmon [coverage:html] directory = build/test/artifacts/python_coverage