Skip to content

Commit

Permalink
Merge pull request #18 from RallyTechServices/listener
Browse files Browse the repository at this point in the history
Listener
  • Loading branch information
tyrjo authored Oct 25, 2018
2 parents 123211b + daf62fb commit 19fdbcc
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 23 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ A setting allows a portfolio item ancestor filter to be added to the page. If a
of that type is selected, all query values are filtered down to those that have the selected item
as an ancestor. Types that don't have that portfolio item type as an ancestor will return 0.

If placed on a page that also has a [pi-ancestor-filter-broadcaster](https://github.com/RallyTechServices/pi-ancestor-filter-broadcaster),
and filter by ancestor portfolio item is enabled, it will listen to the broadcaster for the selected ancestor.

## Development Notes

* Using the Rally rich text editor to get easy formatting, but it doesn't give
Expand Down
10 changes: 5 additions & 5 deletions deploy/Ugly.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-counter",
"version": "1.0.7",
"version": "1.1.0",
"scripts": {
"debug": "grunt debug",
"debug:watch": "nodemon --exec grunt debug",
Expand All @@ -9,7 +9,7 @@
"deploy-debugsdk:watch": "nodemon --exec grunt deploy-debugsdk"
},
"dependencies": {
"@agile-central-technical-services/utils-ancestor-pi-app-filter": "^3.0.0",
"@agile-central-technical-services/utils-ancestor-pi-app-filter": "^2.1.0",
"@agile-central-technical-services/utils-file-utils": "^1.0.0"
},
"devDependencies": {
Expand Down
29 changes: 16 additions & 13 deletions src/javascript/utils/__ts-logger.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
/*
*/
Ext.define('Rally.technicalservices.Logger',{
constructor: function(config){
Ext.apply(this,config);
Ext.define('Rally.technicalservices.Logger', {
enableLogging: false,
constructor: function(config) {
Ext.apply(this, config);
},
log: function(args){
var timestamp = "[ " + Ext.util.Format.date(new Date(), "Y-m-d H:i:s.u") + " ]";
//var output_args = arguments;
//output_args.unshift( [ "[ " + timestamp + " ]" ] );
//output_args = Ext.Array.push(output_args,arguments);

var output_args = [];
output_args = Ext.Array.push(output_args,[timestamp]);
output_args = Ext.Array.push(output_args, Ext.Array.slice(arguments,0));
log: function(args) {
if (this.enableLogging) {
var timestamp = "[ " + Ext.util.Format.date(new Date(), "Y-m-d H:i:s.u") + " ]";
//var output_args = arguments;
//output_args.unshift( [ "[ " + timestamp + " ]" ] );
//output_args = Ext.Array.push(output_args,arguments);

window.console && console.log.apply(console,output_args);
var output_args = [];
output_args = Ext.Array.push(output_args, [timestamp]);
output_args = Ext.Array.push(output_args, Ext.Array.slice(arguments, 0));

window.console && console.log.apply(console, output_args);
}
}

});
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# yarn lockfile v1


"@agile-central-technical-services/utils-ancestor-pi-app-filter@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@agile-central-technical-services/utils-ancestor-pi-app-filter/-/utils-ancestor-pi-app-filter-3.0.0.tgz#ddcf9eed9b13154b0b39168db416bf41feb2dc65"
"@agile-central-technical-services/utils-ancestor-pi-app-filter@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@agile-central-technical-services/utils-ancestor-pi-app-filter/-/utils-ancestor-pi-app-filter-2.1.0.tgz#a2417a0aa43cce28f6c0cc34a7f3d6a898f6e2bf"

"@agile-central-technical-services/utils-file-utils@^1.0.0":
version "1.0.0"
Expand Down

0 comments on commit 19fdbcc

Please sign in to comment.