对“类型”和“状态”字段的更新会中断WSAPI中的模型检索

Updates to Type and State fields break model retrieval from WSAPI

本文关键字:WSAPI 中断 模型 检索 更新 状态 字段 类型      更新时间:2023-09-26

似乎即将更新的类型和状态字段将打破Rally Portfolio Item看板板应用程序中的组合框,并导致加载状态的问题。

以下是两个受影响的代码片段,我想了解一下如何更新:

this.typeCombo = Ext.widget('rallycombobox', {
    fieldLabel:'Type:',
    labelWidth:30,
    labelClsExtra:'rui-label',
    stateful:false,
    margin: '0 10 0 0',
    storeConfig:{
        autoLoad:true,
        remoteFilter:false,
        model:'Type',
        sorters:{
            property:'ordinalValue',
            direction:'Asc'
        },
        cls:'typeCombo',
        defaultSelectionToFirst:false,
        context:this.getContext().getDataContext()
    }
});

Ext.create('Rally.data.WsapiDataStore', {
    model:'State',
    context:this.getContext().getDataContext(),
    autoLoad:true,
    fetch:['Name', 'WIPLimit', 'Description'],
    filters:[
        {
            property:'StateType',
            value:this.currentType
        },
        {
            property:'Enabled',
            value:true
        }
    ],
    sorters:[
        {
            property:'OrderIndex',
            direction:'ASC'
        }
    ],
    listeners:{
        load:function (store, records) {
            if (options.success) {
                options.success.call(options.scope || this, records);
            }
        }
    }
});

下一个版本应该会解决这个问题。1.37一出(9/1),它就应该重新开始工作。