You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ss...@apache.org on 2013/10/15 21:10:04 UTC
git commit: Truncated only Mesos IDs that look like UUIDs.
Updated Branches:
refs/heads/master 0b9305799 -> 3540ee4d3
Truncated only Mesos IDs that look like UUIDs.
Framework IDs are truncated regardless of their format right now, but
frameworks assign their own IDs without any restrictions. For frameworks
that use IDs that don't look like UUIDs, they end up with just empty
strings as their truncated IDs.
Review: http://reviews.apache.org/r/14635
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3540ee4d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3540ee4d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3540ee4d
Branch: refs/heads/master
Commit: 3540ee4d32eddf01a724e3a05f1073d064b57b23
Parents: 0b93057
Author: Ross Allen <re...@gmail.com>
Authored: Mon Oct 14 15:09:19 2013 -0700
Committer: Ross Allen <re...@gmail.com>
Committed: Tue Oct 15 12:09:33 2013 -0700
----------------------------------------------------------------------
src/webui/master/static/js/app.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/3540ee4d/src/webui/master/static/js/app.js
----------------------------------------------------------------------
diff --git a/src/webui/master/static/js/app.js b/src/webui/master/static/js/app.js
index 92e8e2d..e7eba97 100644
--- a/src/webui/master/static/js/app.js
+++ b/src/webui/master/static/js/app.js
@@ -45,7 +45,13 @@
.filter('truncateMesosID', function() {
return function(id) {
if (id) {
- return '…' + id.split('-').splice(3, 3).join('-');
+ var truncatedIdParts = id.split('-');
+
+ if (truncatedIdParts.length > 3) {
+ return '…' + truncatedIdParts.splice(3, 3).join('-');
+ } else {
+ return id;
+ }
} else {
return '';
}