Fix syntax error when creating new pgAgent schedules with a start

date/time and exception. Fixes #3638

- Fixed syntax error.
- Update/Delete exceptions are not working, SQL is wrong.
- Wrong exception time is shown, it should shown in UTC as datatype of
  the column is timestamp with out timezone.
- Added test cases for Schedule and Steps of pgAgent Job.
This commit is contained in:
Akshay Joshi
2018-10-17 12:28:31 +01:00
committed by Dave Page
parent 6fa6939f52
commit 50738db2b8
11 changed files with 703 additions and 13 deletions

View File

@@ -151,8 +151,8 @@ define('pgadmin.node.pga_schedule', [
options: {format: 'HH:mm', buttons: {
showToday: false,
}}, displayFormat: 'HH:mm',
modelFormat: 'HH:mm:ss', displayInUTC: false, allowEmpty: true,
cellHeaderClasses:'width_percent_50', modalInUTC: false,
modelFormat: 'HH:mm:ss', displayInUTC: true, allowEmpty: true,
cellHeaderClasses:'width_percent_50', modalInUTC: true,
}],
validate: function() {
var self = this, exceptions = this.collection,
@@ -356,7 +356,7 @@ define('pgadmin.node.pga_schedule', [
}),
schema:[{
id: 'jscweekdays', label: gettext('Week Days'), cell: 'select2',
group: gettext('Days'), control: 'select2',
group: gettext('Days'), control: 'select2', type: 'array',
select2: {
first_empty: false,
multiple: true,
@@ -372,7 +372,7 @@ define('pgadmin.node.pga_schedule', [
options: BooleanArrayOptions,
},{
id: 'jscmonthdays', label: gettext('Month Days'), cell: 'select2',
group: gettext('Days'), control: 'select2',
group: gettext('Days'), control: 'select2', type: 'array',
select2: {
first_empty: false,
multiple: true,
@@ -387,7 +387,7 @@ define('pgadmin.node.pga_schedule', [
selector: monthdays, options: BooleanArrayOptions,
},{
id: 'jscmonths', label: gettext('Months'), cell: 'select2',
group: gettext('Days'), control: 'select2',
group: gettext('Days'), control: 'select2', type: 'array',
select2: {
first_empty: false,
multiple: true,
@@ -406,7 +406,7 @@ define('pgadmin.node.pga_schedule', [
group: gettext('Repeat'), mode: ['create', 'edit'],
schema:[{
id: 'jschours', label: gettext('Hours'), cell: 'select2',
group: gettext('Times'), control: 'select2',
group: gettext('Times'), control: 'select2', type: 'array',
select2: {
first_empty: false,
multiple: true,
@@ -421,7 +421,7 @@ define('pgadmin.node.pga_schedule', [
selector: hours, options: BooleanArrayOptions,
},{
id: 'jscminutes', label: gettext('Minutes'), cell: 'select2',
group: gettext('Times'), control: 'select2',
group: gettext('Times'), control: 'select2', type: 'array',
select2: {
first_empty: false,
multiple: true,