Skip to content

Commit

Permalink
UI Artifact support for .log files as text (mlflow#393)
Browse files Browse the repository at this point in the history
* UI Artifact support for .log files as text

* adding yml as viewable extension

* Adding yml as viewable extension
  • Loading branch information
Shenggan authored and mparkhe committed Aug 28, 2018
1 parent 7839d95 commit 150a345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mlflow/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def get_handler(request_class):
return HANDLERS.get(request_class, _not_implemented)


_TEXT_EXTENSIONS = ['txt', 'yaml', 'json', 'js', 'py', 'csv', 'md', 'rst', 'MLmodel', 'MLproject']
_TEXT_EXTENSIONS = ['txt', 'log', 'yaml', 'yml', 'json', 'js', 'py',
'csv', 'md', 'rst', 'MLmodel', 'MLproject']


def get_artifact_handler():
Expand Down
2 changes: 1 addition & 1 deletion mlflow/server/js/src/utils/FileUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const getExtension = (path) => {

export const IMAGE_EXTENSIONS = new Set(['jpg', 'bmp', 'jpeg', 'png', 'gif', 'svg']);
export const TEXT_EXTENSIONS = new Set(
['txt', 'py', 'js', 'yaml', 'json', 'csv', 'md', 'rst', 'MLmodel', 'MLproject']);
['txt', 'log', 'py', 'js', 'yaml', 'yml', 'json', 'csv', 'md', 'rst', 'MLmodel', 'MLproject']);

0 comments on commit 150a345

Please sign in to comment.