New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphs #12
Merged
Merged
Graphs #12
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
05ec60f
Added g.Raphael files to repo
m0hamed abb708b
Added g.Raphael and g.pie to the list of loaded script files in the d…
m0hamed 6ae7122
Added raphael.js file to repo
m0hamed fd99b3a
Added raphael js file to default layout
m0hamed 6b8e563
Changed the way the related entries information is passed to the repo…
m0hamed 5cffe50
Added pie.js which has a function to draw a piechart
m0hamed 6669bb4
Now draws charts for all relevant columns that a summary is collected…
m0hamed 440c0f4
Fixed key for configuration storage and scriptname in incidents view
m0hamed 77524c9
Added migration to add extra columns to incidents table
m0hamed 7118689
Added syntax highlighter files to repo
m0hamed 1ad41ed
Added shBrushXml.js to the repo
m0hamed 9d4a569
Added script name and configuration storage to summarized columns
m0hamed 9e22db4
Added pma version to linenumber and file name for report grouping
m0hamed 2781544
Added fallback if error occurs in error_report.js
m0hamed 601f07b
Added syntax highlighting to code snipets
m0hamed dbc95d2
removed log messages to console used in debugging
m0hamed 5aa121e
Stopped using html-script within the syntax highlighting since it doe…
m0hamed 46902db
Fixed 'scriptname' index in incident model array
m0hamed 54f258f
Sanitized column name in chart helper method
m0hamed File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
app/Config/Migration/1376824296_add_extra_columns_to_incidents_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
class AddExtraColumnsToIncidentsTable extends CakeMigration { | ||
|
||
/** | ||
* Migration description | ||
* | ||
* @var string | ||
* @access public | ||
*/ | ||
public $description = 'Add two extra columns to the incidents table'; | ||
|
||
/** | ||
* Actions to be performed | ||
* | ||
* @var array $migration | ||
* @access public | ||
*/ | ||
public $migration = array( | ||
'up' => array( | ||
'create_field' => array( | ||
'incidents' => array( | ||
'script_name' => array('type' => 'string', 'null' => true, 'default' => NULL, 'collate' => 'utf8_general_ci', 'charset' => 'utf8', 'after' => 'server_software'), | ||
'configuration_storage' => array('type' => 'string', 'null' => true, 'default' => NULL, 'length' => 30, 'collate' => 'utf8_general_ci', 'charset' => 'utf8', 'after' => 'server_software'), | ||
), | ||
), | ||
), | ||
'down' => array( | ||
'drop_field' => array( | ||
'incidents' => array('script_name', 'configuration_storage',), | ||
), | ||
), | ||
); | ||
|
||
/** | ||
* Before migration callback | ||
* | ||
* @param string $direction, up or down direction of migration process | ||
* @return boolean Should process continue | ||
* @access public | ||
*/ | ||
public function before($direction) { | ||
return true; | ||
} | ||
|
||
/** | ||
* After migration callback | ||
* | ||
* @param string $direction, up or down direction of migration process | ||
* @return boolean Should process continue | ||
* @access public | ||
*/ | ||
public function after($direction) { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't $column be escaped with htmlspecialchars() or a similar function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$columns is an array that I have defined in the controller to store the list of summarizable columns in one place so its not exactly user entered but using htmlspecialchars() wouldnt hurt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please escape it, better safe than sorry. ;) You never know what might end up in the array in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I escaped it just in case