Search code examples
rallyagile

Agile Central example app failing


After following the directions listed here , I received the following error in Google Chrome's Developer Tools:

sdk-debug.js:147611 Error: success callback for Deferred transformed result of Deferred transformed result of Deferred threw: TypeError: Cannot read property 'project' of undefined
at Ext.define.getFullyQualifiedName (sdk-debug.js:163998)
at Ext.define.build (sdk-debug.js:164052)
at Ext.define.buildCompositeArtifact (sdk-debug.js:164152)
at Ext.define.getModel (sdk-debug.js:196664)
at Ext.define._buildColumnsFromModel (sdk-debug.js:196985)
at Ext.define._parseColumns (sdk-debug.js:196977)
at sdk-debug.js:146417
at Ext.define.notify (sdk-debug.js:146514)
at Ext.define.register (sdk-debug.js:146481)
at Ext.define.then (sdk-debug.js:146299)

JSONP is enabled on my subscription, and I have gotten messages to read out onto my console. Also, I have gotten web-services to successfully respond to requests. This one here is new to me. This "should" work, but it doesn't. Is this a bug with the example itself?

The full source-code of the example as I've implemented it is here.


Solution

  • Wow, how embarrassing. This is definitely a bug with the Rally.ui.cardboard.CardBoard component. On the plus side, you can work around it by simply including the current context in your example code.

    var cardBoardConfig = {
        xtype: 'rallycardboard',
        types: ['Defect', 'User Story'],
        attribute: 'ScheduleState',
    
        context: this.getContext(), //<-- NEW CODE HERE
    
        storeConfig: {
            filters: [this.iterationCombobox.getQueryFromSelected()]
        }
    };
    

    It is generally good practice to provide the current context to all components anyway, but all components should also be smart enough to just use the default if it is not specified.

    I will file a defect to fix the card board component to use the default context correctly and to also fix the example to explicitly pass the context as well. Thanks for reporting this issue and sorry for the trouble!