<commit_before>Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',

    launch: function() {
    	
    	console.log("Interactive Grid App");
    	
    	this.pulldownContainer = Ext.create('Ext.container.Container',{
    		id: 'pulldownContainer-id',
    		layout: {
		        type: 'hbox',
		        align: 'stretch'
		    },
    	});

    	this.add(this.pulldownContainer);
    	this._loadIteration();
    },

    _loadIteration: function () {
    	this.iterbox = Ext.create('Rally.ui.combobox.IterationComboBox', {
			listeners: {
				ready: function (combobox) {
					//this._loadData();
					this._loadSeverity();
				},
				select: function(combobox, records) {
					this._loadData();
				},
				scope: this
			}	    
		});		

    	this.pulldownContainer.add(this.iterbox);
    },

    _loadSeverity: function() {
    	this.sevbox = Ext.create('Rally.ui.combobox.FieldValueComboBox',{
    		model: 'Defect',
    		field: 'Severity',
    		listeners: {
				ready: function (combobox) {
					this._loadPriority();
				},
				select: function(combobox, records) {
					this._loadData();
				},
				scope: this
			}
    	});

    	this.pulldownContainer.add(this.sevbox);
    },

	_loadPriority: function() {
    	this.priobox = Ext.create('Rally.ui.combobox.FieldValueComboBox',{
    		model: 'Defect',
    		field: 'Priority',
    		listeners: {
				ready: function (combobox) {
					this._loadData();
				},
				select: function(combobox, records) {
					this._loadData();
				},
				scope: this
			}
    	});

    	this.pulldownContainer.add(this.priobox);
    },

    _loadData: function() {

    	var itersel = this.iterbox.getRecord().get('_ref');
    	var sevsel = this.sevbox.getRecord().get('value');
    	var priosel = this.priobox.getRecord().get('value');

    	var myfilter = [{
				            property: 'Iteration',
				            operation: '=',
				            value: itersel
				        },
				        {
				            property: 'Severity',
				            operation: '=',
				            value: sevsel
				        },
				        {
				            property: 'Priority',
				            operation: '=',
				            value: priosel
				        }];

    	if (this.DefectStore) {

    		this.DefectStore.setFilter(myfilter);
    		this.DefectStore.load();

    	} else {

    		this.DefectStore = Ext.create('Rally.data.wsapi.Store', {
			    model: 'Defect',
			    autoLoad: true,
			    filters: myfilter,
			    listeners: {
			        load: function(store, data, success) {
			            console.log("got data",store, data, success);
		            	if(!this.myGrid) {
		            		this._createGrid(store);
		            	}
			        },
			        scope: this
			    },
			    fetch: ['FormattedID', 'Name', 'ScheduleState', 'Severity', 'Priority', 'Iteration']
			});
    	}
    	
    },

    _createGrid: function(myStoryStore) {
    	
    	this.myGrid = Ext.create('Rally.ui.grid.Grid', {
				store: myStoryStore,
				columnCfgs: [
					'FormattedID', 'Name', 'ScheduleState', 'Severity', 'Priority', 'Iteration'
				]	
			});

    	console.log("my grid", this.myGrid);

    	this.add(this.myGrid);
    }
});
<commit_msg>Added labels for Interactive Grid<commit_after>Ext.define('CustomApp', {
    extend: 'Rally.app.App',
    componentCls: 'app',

    launch: function() {
    	
    	console.log("Interactive Grid App");
    	
    	this.pulldownContainer = Ext.create('Ext.container.Container',{
    		id: 'pulldownContainer-id',
    		layout: {
		        type: 'hbox',
		        align: 'stretch'
		    },
    	});

    	this.add(this.pulldownContainer);
    	this._loadIteration();
    },

    _loadIteration: function () {
    	this.iterbox = Ext.create('Rally.ui.combobox.IterationComboBox', {
			fieldLabel: 'Select Iteration:',
			labelAlign: 'right',
			width: 300,
			listeners: {
				ready: function (combobox) {
					//this._loadData();
					this._loadSeverity();
				},
				select: function(combobox, records) {
					this._loadData();
				},
				scope: this
			}	    
		});		

    	this.pulldownContainer.add(this.iterbox);
    },

    _loadSeverity: function() {
    	this.sevbox = Ext.create('Rally.ui.combobox.FieldValueComboBox',{
    		model: 'Defect',
    		field: 'Severity',
    		fieldLabel: 'Select Severity:',
    		labelAlign: 'right',
    		width: 300,
    		listeners: {
				ready: function (combobox) {
					this._loadPriority();
				},
				select: function(combobox, records) {
					this._loadData();
				},
				scope: this
			}
    	});

    	this.pulldownContainer.add(this.sevbox);
    },

	_loadPriority: function() {
    	this.priobox = Ext.create('Rally.ui.combobox.FieldValueComboBox',{
    		model: 'Defect',
    		field: 'Priority',
    		fieldLabel: 'Select Priority:',
    		labelAlign: 'right',
    		width: 300,
    		listeners: {
				ready: function (combobox) {
					this._loadData();
				},
				select: function(combobox, records) {
					this._loadData();
				},
				scope: this
			}
    	});

    	this.pulldownContainer.add(this.priobox);
    },

    _loadData: function() {

    	var itersel = this.iterbox.getRecord().get('_ref');
    	var sevsel = this.sevbox.getRecord().get('value');
    	var priosel = this.priobox.getRecord().get('value');

    	var myfilter = [{
				            property: 'Iteration',
				            operation: '=',
				            value: itersel
				        },
				        {
				            property: 'Severity',
				            operation: '=',
				            value: sevsel
				        },
				        {
				            property: 'Priority',
				            operation: '=',
				            value: priosel
				        }];

    	if (this.DefectStore) {

    		this.DefectStore.setFilter(myfilter);
    		this.DefectStore.load();

    	} else {

    		this.DefectStore = Ext.create('Rally.data.wsapi.Store', {
			    model: 'Defect',
			    autoLoad: true,
			    filters: myfilter,
			    listeners: {
			        load: function(store, data, success) {
			            console.log("got data",store, data, success);
		            	if(!this.myGrid) {
		            		this._createGrid(store);
		            	}
			        },
			        scope: this
			    },
			    fetch: ['FormattedID', 'Name', 'ScheduleState', 'Severity', 'Priority', 'Iteration']
			});
    	}
    	
    },

    _createGrid: function(myStoryStore) {
    	
    	this.myGrid = Ext.create('Rally.ui.grid.Grid', {
				store: myStoryStore,
				columnCfgs: [
					'FormattedID', 'Name', 'ScheduleState', 'Severity', 'Priority', 'Iteration'
				]	
			});

    	console.log("my grid", this.myGrid);

    	this.add(this.myGrid);
    }
});

{'fraction_non_alphanumeric': 0.14777358490566037, 'fraction_numerical': 0.001358490566037736, 'mean_word_length': 1.94619831036016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1800344', 'n_tokens_mistral': 2660, 'n_tokens_neox': 2184, 'n_words': 337}