Opened 17 years ago
Last modified 17 years ago
#300 released defect
Dataview import should ignore empty SQL statements
| Reported by: | bweaver | Owned by: | bweaver |
|---|---|---|---|
| Priority: | major | Milestone: | Beta 3 |
| Component: | Public Website App. | Version: | 1.5.953 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
To facilitate merging sql from different database engines for the dataviews into one central location, the dataview import should ignore empty SQL statements.
Ideally, the GUI should let the user choose which database engine(s) they are wanting to export/import the SQL for.
To actually do this, the GUI would be simply setting the SQL statements to empty string on engine(s) that didn't match whatever the user selected.
However, since we are supposed to be transitioning all admin functionality to the Admin Tool, the web site editor should not be changed at this time.
Change History (6)
comment:1 by , 17 years ago
| Status: | new → addressed |
|---|
comment:2 by , 17 years ago
| Status: | addressed → released |
|---|
comment:3 by , 17 years ago
| Resolution: | → invalid |
|---|---|
| Status: | released → closed |
comment:4 by , 17 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
Reopening because I found this to not be working. Created an empty dataview (through the web admin). Imported it and it overwrote the existing SQL values.
comment:5 by , 17 years ago
| Status: | reopened → addressed |
|---|
(In [1088]) - fixes #300, commented out the deletion of sec_dataview_sql records that were not touched during import. Previously it would delete ones that were left untouched, which worked when the sql for a particular db engine code was zero-length string (i.e. unchecked in the web page before clicking the import button). However, it would improperly delete the sql row when no sec_dataview_sql row existed in the .dat file being imported.
comment:6 by , 17 years ago
| Status: | addressed → released |
|---|

(In [957]) Fixes #304 - command line params not being passed to postgresql properly, and sql being given to oracle command line tools wasn't quite proper
Fixes #300 - dataview import now ignores rows in sec_dataview_sql dataset table with sql_statement field that is empty of just whitespace. Also tweaked dataview editor to allow user to select which db engine(s) to import sql for (by overriding the .dat file's sql_statement values with "")