Skip to content

Commit 6cc68f1

Browse files
committed
scoping
1 parent 70de9c4 commit 6cc68f1

File tree

4 files changed

+10
-33
lines changed

4 files changed

+10
-33
lines changed

deploy/Ugly.txt

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "custom-grid-with-deep-export",
3-
"version": "1.3.0",
3+
"version": "1.3.1-alpha",
44
"scripts": {
55
"debug": "grunt debug",
66
"debug:watch": "nodemon --exec grunt debug",

src/javascript/app.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Ext.define("custom-grid-with-deep-export", {
2828
showControls: true,
2929
type: 'HierarchicalRequirement',
3030
pageSize: 50,
31-
searchAllProjects: false,
3231
enableUrlSharing: false
3332
}
3433
},
@@ -461,24 +460,11 @@ Ext.define("custom-grid-with-deep-export", {
461460
return typeof(this.getAppId()) == 'undefined';
462461
},
463462

464-
isMilestoneScoped: function() {
465-
var result = false;
466-
467-
var tbscope = this.getContext().getTimeboxScope();
468-
if (tbscope && tbscope.getType() == 'milestone') {
469-
result = true;
470-
}
471-
return result
472-
},
473-
474463
searchAllProjects: function() {
475-
var searchAllProjects = this.getSetting('searchAllProjects');
476-
return this.isMilestoneScoped() && searchAllProjects;
464+
return this.ancestorFilterPlugin.getIgnoreProjectScope();
477465
},
478466

479467
getSettingsFields: function() {
480-
return Rally.technicalservices.CustomGridWithDeepExportSettings.getFields({
481-
showSearchAllProjects: this.isMilestoneScoped()
482-
});
468+
return Rally.technicalservices.CustomGridWithDeepExportSettings.getFields();
483469
}
484470
});

src/javascript/utils/settings.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,19 @@
2222
'Rally.ui.CheckboxField'
2323
],
2424

25-
getFields: function(config) {
25+
getFields: function() {
2626

2727
var type_filters = Rally.data.wsapi.Filter.or([
2828
{ property: 'TypePath', value: 'HierarchicalRequirement' },
2929
{ property: 'TypePath', operator: 'contains', value: 'PortfolioItem/' }
3030
]);
3131

3232
return [{
33-
id: 'searchAllProjects',
34-
name: 'searchAllProjects',
35-
fieldLabel: 'Scope Across Workspace',
36-
labelAlign: 'left',
37-
xtype: 'rallycheckboxfield',
38-
hidden: !config.showSearchAllProjects
39-
},
40-
{
4133
name: 'type',
4234
xtype: 'rallycombobox',
4335
allowBlank: false,
4436
autoSelect: false,
4537
shouldRespondToScopeChange: true,
46-
context: config.context,
4738
initialValue: 'HierarchicalRequirement',
4839
storeConfig: {
4940
model: Ext.identityFn('TypeDefinition'),

0 commit comments

Comments
 (0)