Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spark to list of potential index types in console #8

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

drcrallen
Copy link
Member

No description provided.

@@ -2,7 +2,7 @@ moment = require '../../../bower_components/moment/min/moment.min.js'

module.exports = ->
parseTaskId: (taskId) ->
m = taskId.match /^((hadoop_convert_segment)|index_(hadoop|realtime)|(archive))_(.+)_(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)/
m = taskId.match /^((hadoop_convert_segment)|index_(hadoop|realtime|spark)|(archive))_(.+)_(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)/
type = m[3]
type ||= m[2]
throw Error("Can't parse #{taskId}") unless m
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should avoid throwing an error here, so the console doesn't break with unknown task types

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but that is a feature above and beyond this PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we file an issue then :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed

xvrl added a commit that referenced this pull request Mar 18, 2016
Add spark to list of potential index types in console
@xvrl xvrl merged commit df03d74 into master Mar 18, 2016
@xvrl xvrl deleted the sparkConsoleFix branch March 18, 2016 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants