Skip to content

Commit

Permalink
Version 0.8.48
Browse files Browse the repository at this point in the history
- Removed outdated terminology from the UI.
  • Loading branch information
jhuckaby committed Sep 15, 2020
1 parent 6ec734f commit 3300a5a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions htdocs/js/pages/admin/Activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Class.add( Page.Admin, {
break;
case 'master_server': // legacy
case 'server_master': // current
desc = 'Server has become master: <b>' + item.hostname + '</b>';
desc = 'Server has become primary: <b>' + item.hostname + '</b>';
break;

case 'server_restart':
Expand Down Expand Up @@ -207,7 +207,7 @@ Class.add( Page.Admin, {

// scheduler
case 'state_update':
desc = 'Scheduler master switch was <b>' + (item.enabled ? 'enabled' : 'disabled') + '</b>';
desc = 'Scheduler was <b>' + (item.enabled ? 'enabled' : 'disabled') + '</b>';
break;

// errors
Expand Down
10 changes: 5 additions & 5 deletions htdocs/js/pages/admin/Servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Class.add( Page.Admin, {
'<div class="td_big">' + self.getNiceGroup(null, server.hostname, col_width) + '</div>',
(server.ip || 'n/a').replace(/^\:\:ffff\:(\d+\.\d+\.\d+\.\d+)$/, '$1'),
group_names.length ? group_names.join(', ') : '(None)',
server.master ? '<span class="color_label green"><i class="fa fa-check">&nbsp;</i>Master</span>' : (eligible ? '<span class="color_label purple">Backup</span>' : '<span class="color_label blue">Slave</span>'),
server.master ? '<span class="color_label green"><i class="fa fa-check">&nbsp;</i>Primary</span>' : (eligible ? '<span class="color_label purple">Backup</span>' : '<span class="color_label blue">Worker</span>'),
num_jobs ? commify( num_jobs ) : '(None)',
get_text_from_seconds( server.uptime, true, true ).replace(/\bday\b/, 'days'),
short_float(cpu) + '%',
Expand Down Expand Up @@ -165,7 +165,7 @@ Class.add( Page.Admin, {
// group.description || '(No description)',
num_servers ? commify( num_servers) : '(None)',
num_events ? commify( num_events ) : '(None)',
group.master ? '<b>Master Eligible</b>' : 'Slave Only',
group.master ? '<b>Primary Eligible</b>' : 'Worker Only',
actions.join(' | ')
];
} );
Expand Down Expand Up @@ -279,8 +279,8 @@ Class.add( Page.Admin, {
get_form_table_row('Hostname Match:', '<input type="text" id="fe_eg_regexp" size="30" style="font-family:monospace; font-size:13px;" value="'+escape_text_field_value(group.regexp)+'" spellcheck="false"/>') +
get_form_table_caption("Enter a regular expression to auto-assign servers to this group by their hostnames, e.g. \"^mtx\\d+\\.\".") +
get_form_table_spacer() +
get_form_table_row('Server Class:', '<select id="fe_eg_master">' + render_menu_options([ [1,'Master Eligible'], [0,'Slave Only'] ], group.master, false) + '</select>') +
get_form_table_caption("Select whether servers in the group are eligible to become the master server, or run as slaves only.") +
get_form_table_row('Server Class:', '<select id="fe_eg_master">' + render_menu_options([ [1,'Primary Eligible'], [0,'Worker Only'] ], group.master, false) + '</select>') +
get_form_table_caption("Select whether servers in the group are eligible to become the primary server, or run as workers only.") +
'</table>';

app.confirm( '<i class="mdi mdi-server-network">&nbsp;&nbsp;</i>' + (edit ? "Edit Server Group" : "Add Server Group"), html, edit ? "Save Changes" : "Add Group", function(result) {
Expand Down Expand Up @@ -331,7 +331,7 @@ Class.add( Page.Admin, {
if (this.server_groups[idx].master) num_masters++;
}
if (num_masters == 1) {
return app.doError("Sorry, you cannot delete the last Master Eligible server group.");
return app.doError("Sorry, you cannot delete the last Primary Eligible server group.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/api/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = Class.create({
return this.doError('server', "Server is already a master server, controlling its own cluster.", callback);
}
if (this.multi.masterHostname && (this.multi.masterHostname != params.master)) {
return this.doError('server', "Server is already a member of a cluster (Master: " + this.multi.masterHostname + ")", callback);
return this.doError('server', "Server is already a member of a cluster (Primary: " + this.multi.masterHostname + ")", callback);
}

callback({ code: 0, hostname: this.server.hostname, ip: this.server.ip });
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Cronicle",
"version": "0.8.47",
"version": "0.8.48",
"description": "A simple, distributed task scheduler and runner with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/Cronicle",
Expand Down
2 changes: 1 addition & 1 deletion sample_conf/setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
[ "listCreate", "global/server_groups", {} ],
[ "listPush", "global/server_groups", {
"id": "maingrp",
"title": "Master Group",
"title": "Primary Group",
"regexp": "_HOSTNAME_",
"master": 1
} ],
Expand Down

0 comments on commit 3300a5a

Please sign in to comment.