You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Marshall Shi (JIRA)" <ji...@apache.org> on 2012/07/20 05:35:36 UTC

[jira] [Created] (SHINDIG-1820) When EE gadgets fail to load, error message not returned as expected.

Marshall Shi created SHINDIG-1820:
-------------------------------------

             Summary: When EE gadgets fail to load, error message not returned as expected.
                 Key: SHINDIG-1820
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1820
             Project: Shindig
          Issue Type: Bug
          Components: Javascript 
    Affects Versions: 2.5.0-beta2
            Reporter: Marshall Shi
            Priority: Minor
             Fix For: 2.5.0-beta2


When EE gadgets fail to load, say the EE gadget url is invalid, the expected callback param should contain a error property telling user about the failure. 
This is aligned with the callback param with the common container navigateGadget API call.

While looking into current EE implementation, the callback is having two params, site and the full result of preload.

function ccCallback(gadgetInfo) {
	if (gadgetInfo.error) {
		console.log("Got error!");  // can't get here...
	} else {
		console.log("Success!");
	}
}

var eeRenderParams = {};

var eeDataModel = {
	gadget : "<invalid gadget url>",
	context : {}
};

cc.ee.navigate(
	element,
	eeDataModel,
	eeRenderParams,
	ccCallback
);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (SHINDIG-1820) When EE gadgets fail to load, error message not returned as expected.

Posted by "Marshall Shi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-1820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Shi resolved SHINDIG-1820.
-----------------------------------

    Resolution: Invalid
    
> When EE gadgets fail to load, error message not returned as expected.
> ---------------------------------------------------------------------
>
>                 Key: SHINDIG-1820
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1820
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript 
>    Affects Versions: 2.5.0-beta2
>            Reporter: Marshall Shi
>            Priority: Minor
>             Fix For: 2.5.0-beta2
>
>         Attachments: 40052.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When EE gadgets fail to load, say the EE gadget url is invalid, the expected callback param should contain a error property telling user about the failure. 
> This is aligned with the callback param with the common container navigateGadget API call.
> While looking into current EE implementation, the callback is having two params, site and the full result of preload.
> function ccCallback(gadgetInfo) {
> 	if (gadgetInfo.error) {
> 		console.log("Got error!");  // can't get here...
> 	} else {
> 		console.log("Success!");
> 	}
> }
> var eeRenderParams = {};
> var eeDataModel = {
> 	gadget : "<invalid gadget url>",
> 	context : {}
> };
> cc.ee.navigate(
> 	element,
> 	eeDataModel,
> 	eeRenderParams,
> 	ccCallback
> );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SHINDIG-1820) When EE gadgets fail to load, error message not returned as expected.

Posted by "Marshall Shi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-1820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Shi updated SHINDIG-1820:
----------------------------------

    Attachment: 40052.patch

Attached is the patch for this issue.
                
> When EE gadgets fail to load, error message not returned as expected.
> ---------------------------------------------------------------------
>
>                 Key: SHINDIG-1820
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1820
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript 
>    Affects Versions: 2.5.0-beta2
>            Reporter: Marshall Shi
>            Priority: Minor
>             Fix For: 2.5.0-beta2
>
>         Attachments: 40052.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When EE gadgets fail to load, say the EE gadget url is invalid, the expected callback param should contain a error property telling user about the failure. 
> This is aligned with the callback param with the common container navigateGadget API call.
> While looking into current EE implementation, the callback is having two params, site and the full result of preload.
> function ccCallback(gadgetInfo) {
> 	if (gadgetInfo.error) {
> 		console.log("Got error!");  // can't get here...
> 	} else {
> 		console.log("Success!");
> 	}
> }
> var eeRenderParams = {};
> var eeDataModel = {
> 	gadget : "<invalid gadget url>",
> 	context : {}
> };
> cc.ee.navigate(
> 	element,
> 	eeDataModel,
> 	eeRenderParams,
> 	ccCallback
> );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira