Harshal Dhumal
c7d25c33f2
Make the Parameter grid use a workflow consistent with other grids. Fixes #1241
...
1. Altered variable control to make its UI consistent with privileges and Security labels.
2. Changed datamodel.js to handle duplicate rows at datamodel level and not UI/Control level. (See variable control for example)
2016-07-18 11:50:42 +01:00
Harshal Dhumal
4077de2187
Fix Select2 issues. Fixes #1418 . Fixes #1434
...
1. Select2 control fixed for multi-select mode.
2. Index constrains (primary and unique key) fixed column listing issue.
3. Table node "inherited from" (Select2 control) was not showing table name with public schema
2016-07-05 12:58:48 +01:00
Harshal Dhumal
9396cb03d5
Fix intermittent CodeMirror rendering issue. Fixes #1399
2016-06-29 11:19:04 +01:00
Harshal Dhumal
19b4f9e01f
Issue Fixed: Now User cannot be created with single (or less than 6 ) character password.
...
Fixes #1386
2016-06-21 09:20:21 +01:00
Harshal Dhumal
237f93591f
Keyboard shortcuts in the Query Tool:
...
Execute --> Ctrl + Shift + E
Explain --> Ctrl + Shift + X
Explain analyze --> Ctrl + Shift + A
2016-06-20 13:03:46 +01:00
Harshal Dhumal
fc40197d39
Fix handling of errors when using "Connect Now?" for new servers. Fixes #1313 .
...
Also fixes #1363 - display the server group properly in server properties.
2016-06-15 12:36:56 +01:00
Harshal Dhumal
6b95d6ac75
Added connect now option in server create dialog. Fixes #1313
2016-06-14 17:23:25 +01:00
Harshal Dhumal
b0b21fd46c
Avoid showing multiple 'Reset Layout' options under file menu. Fixes #1348
...
Also restructured code related to reset layout functionality.
2016-06-14 15:01:15 +01:00
Harshal Dhumal
93706ee40b
Preferences and user management help button fixes. Fixes #1318
2016-06-14 12:33:03 +01:00
Harshal Dhumal
6cfa022e35
Validate email addresses when creating the config DB.
2016-06-10 16:19:46 +01:00
Harshal Dhumal
f3fae9d238
Fix email validation and mouse pointer over the Users option.
2016-06-07 09:24:44 +01:00
Harshal Dhumal
e4f21568ad
Fix styling of Alertify buttons
2016-06-07 09:23:58 +01:00
Harshal Dhumal
7f1e57c2a6
Remove the header controls of subnode control properly, when removing it
...
from the VariableControl, and the customized TokenControl in the
fts_configuration javascript module during clean up process.
2016-06-06 18:53:19 +05:30
Harshal Dhumal
e3ab4501d5
User management.
2016-06-06 13:34:08 +01:00
Harshal Dhumal
5eef63c068
Added support for the password cell.
2016-06-03 16:13:43 +05:30
Harshal Dhumal
ab9f63d960
Fixes# 1210 - Send the columns SQL with proper mime type.
2016-06-03 15:24:39 +05:30
Harshal Dhumal
dea4b8ca31
Proper evaluation of the optionsValues in the Backgrid Select2Cell.
2016-06-03 15:20:56 +05:30
Harshal Dhumal
14839bf5de
Always make sure - we convert the psasword to string in the as_dict
...
function.
2016-05-14 01:14:26 +05:30
Harshal Dhumal
4816f5ed12
Change server password feature
2016-05-13 13:21:20 +05:30
Harshal Dhumal
180630ce0e
Fixed variable scope issue in server.js
2016-05-10 18:16:08 +05:30
Harshal Dhumal
585daddce2
Destroy the existing Select2 object before rerendering the control.
2016-05-12 16:14:06 +05:30
Harshal Dhumal
a4d981cced
Remove all the object view control within the subnode control, whenever
...
we remove it.
It will remove all the events, controls, elements, etc associated with
the subnode control.
2016-05-12 15:47:36 +05:30
Harshal Dhumal
176b99c90b
Added the multiple selection support in the Select2Cell
2016-05-10 13:48:54 +05:30
Harshal Dhumal
baae12dfcc
Improve the password error message color on the 'Change Password' page.
2016-05-10 12:47:51 +05:30
Harshal Dhumal
43d532321b
Allow to close the create/edit dialog after successful 'save'
...
operation.
Some of the nodes do not return id as result, when they were created.
Modified the logic to allow to open the parent node in such conditions.
2016-04-01 15:34:29 +05:30
Harshal Dhumal
219f208317
Evaluate the disabled option in SwitchControl.
...
Also - for consistency reason use the same evaluation logic in each of
the control.
2016-03-23 12:51:29 +05:30
Harshal Dhumal
709311b77c
Fix issues with multiple subnode forms being open at once when adding rows to a grid.
2016-03-22 17:04:46 +00:00
Harshal Dhumal
ddd4768937
Backform control for selecting multiple columns.
...
Usage:
{
id: 'columns', label: '{{ _('Columns') }}',
type: 'collection', group: '{{ _('Definition') }}', editable:true,
canDelete: true, canAdd: true, control: Backform.MultiColumnSelectControl,
deps: ['index'], node: 'column',
model: pgBrowser.Node.Model.extend({
keys: ['column'],
defaults: {
column: undefined
}
})
}
Note: When using this control model should have column attribute. And node property should be column.
2016-03-22 16:52:34 +00:00
Harshal Dhumal
8189b39b1e
Configuration options for switch control from different places should be merged together and not overridden.
2016-03-22 14:28:13 +00:00
Harshal Dhumal
def1a30251
Add support for Sequences.
2016-03-10 15:23:04 +00:00
Harshal Dhumal
986375d60e
Add support for Event Triggers.
2016-03-10 13:38:31 +00:00
Harshal Dhumal
d2e372114b
Security Label and ACL template macros:
...
Way to use in template:
1) Security labels:
SECLABLE.SET(conn, object_type, object_name, provider, security_label,
object.schema)
SECLABLE.UNSET(conn, object_type, object_name, provider, object.schema)
2) Privileges:
PRIVILEGE.SET(conn, object_type, grantee, object_name,
privileges_without_grant, privileges_with_grant,
object.schema)
PRIVILEGE.UNSETALL(conn, object_type, grantee, object_name, schema)
privileges_without_grant = comma separated string of privileges.
privileges_with_grant = comma separated string of privileges.
2016-03-03 15:12:37 +00:00
Harshal Dhumal
0b956813d4
public in the privilege control should not be allowed to select the
...
'WITH GRANT' options.
2016-02-22 17:36:23 +05:30
Harshal Dhumal
a3d23a65bb
Disconnect the database connection only once not every time before
...
running the offline queries i.e. renaming of the database, using
different tablespce for the database, etc.
2016-02-18 17:08:24 +05:30
Harshal Dhumal
a0648ed54b
Using different strategy to render different type of data based on the
...
type for the Variable control, instead of using the complex DynamicCell.
2016-02-05 14:35:52 +05:30
Harshal Dhumal
3ff77e9866
Common functions to convert the privileges format to/from the database
...
server.
2016-02-04 21:02:15 +05:30
Harshal Dhumal
b77c5a6c54
Python 2.6 support fixes.
2016-01-27 15:59:54 +01:00
Harshal Dhumal
c421bef0d0
Changed the Unique Columns of the Variable Control based on the input
...
from the user.
i.e.
Set the uniqueCol as ['name', 'role'] in case of hasRole is set to true
in schema for it, ['name', ['database'] in case of hasDatabase is set to
true, otherwise ['name'].
Also - fixed a typo in the callback function headerDataChanged(..).
2016-01-22 18:19:13 +05:30
Harshal Dhumal
d0f7e69ad7
Added two jinja2 template macro for support for priviliges and default
...
privileges.
Also, made a change in the privilege.js to scroll the div to make the
opening div visible properly.
2016-01-22 18:07:12 +05:30
Harshal Dhumal
7f3c972d06
Resovled a typo in rendering the NodeAjaxOptionsCell about getting the
...
options from the column schema for the cell.
2016-01-22 13:23:09 +05:30
Harshal Dhumal
8f18ff04ae
Fix border display issue in unique column collection
2016-01-21 09:11:14 +00:00
Harshal Dhumal
c6cfad4f01
Fix minor status bar display issue.
2016-01-21 09:10:00 +00:00
Harshal Dhumal
720a9c819b
Resolved a typo in the datamodel javascript.
2016-01-21 12:25:31 +05:30
Harshal Dhumal
422bad4394
Allow the privileges control to work properly. Resolved few typos and
...
trivial bugs within the privilige control.
i.e.
- Do not show 'ALL' for only one privilege type.
- Show correct privilege label in PrivilegeEditor.
- Typo in TEMPORARY privilege.
- Added missing toJSON function call, while calling the parent's toJSON
function.
2016-01-20 20:23:23 +05:30
Harshal Dhumal
4e5e7755b5
Make the privilege control to work as expected. Using the
...
NodeListByNameCell for selecting the grantee.
This patch includes:
- Change the RolePrivilegesModel schema to allow to use the
NodeListByNameCell for showing grantee, and granter information.
- When setting some value - do not use the silent flag in Select2Cell, which
will allow the session manager to take the value in account, which is
used by the NodeListByNameCell.
- Set the top object in the children of the UniqueControl collections.
[Ashesh Vashi]
- Pass on the node information to the actual data model, so that - we can use
node information by the control itself. [Ashesh Vashi]
- While adding the new privilege, set the granter to the current user.
[Ashesh Vashi]
2016-01-15 19:10:49 +05:30
Harshal Dhumal
1ce0db3b58
Introducing NodeAjaxOptionsCell, NodeListByNameCell, NodeListByIdCell
...
for using them with Backgrid.
It has similar functionality which we have done for fetching node
options for select2 cell using ajax at the time of initialization to use
it with Backgrid.
2016-01-15 18:25:34 +05:30
Harshal Dhumal
fe05f2d0c6
Resolved an issue setting proper optionsValues for the Select2Cell.
2016-01-07 13:30:46 +05:30
Harshal Dhumal
df594d56e5
Resolving issue setting proper value for options in Select2Cell
2016-01-07 10:55:22 +05:30
Harshal Dhumal
67a80ce8dd
Adding Select2Cell, which uses select2.
2016-01-07 08:35:20 +05:30
Harshal Dhumal
eed1590a51
Do not close the privilege cell editor, when clicked one of its own
...
children.
Also, resolved an issue related showing 'unknown' instead of privileges,
when loading existing privileges.
2016-01-04 16:59:47 +05:30
Harshal Dhumal
9d9f17c163
Clear the status-bar on the 'on-status-clear' event of the model
2016-01-04 16:54:06 +05:30
Harshal Dhumal
6057259bdc
Create the status-bar in the properties dialog, and it will listen for
...
on-status event from the model.
2016-01-04 13:35:11 +05:30