[ALOY-1113] Fix case on 'alloy info adapters' command output
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-10-23T20:44:10.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Alloy 1.6.0, Alloy 1.7.0 |
| Components | Samples & Templates |
| Labels | n/a |
| Reporter | Praveen Innamuri |
| Assignee | Tim Poulsen |
| Created | 2014-08-08T21:10:35.000+0000 |
| Updated | 2015-01-13T14:43:07.000+0000 |
Description
"alloy info adapters" command returns the contents of description in the tag name "description". However, "alloy info samples" (or even templates) have the contents in "Description" tag/field. Studio is expecting the same tag for all samples, templates and adapters. I believe the tag name has to be "Description" for all commands.
[~pinnamuri] The JSON objects returned differ in other ways, too.
alloy info adaptersreturns an array of objects withdescriptionandplatformspropertiesalloy info samplesandalloy info templatesreturns an array of objects withname,label,Description, andiconproperties Does the objects returned by all three commands need to match exactly?I'm fine with all different fields returned by those various commands. The only concern that I raised here is samples/templates return the description contents through 'Description' tag. However, adapters output return the description contents through 'description' tag. There is a discrepancy in the tag names. Studio assumes all description content through 'Description' tag, and currently it fails to read the description of adapters. For the sake of consistency, it might to be better to have same tag names from Alloy.
PR: https://github.com/appcelerator/alloy/pull/511 Functional review: 1. Run
alloy info adapterscommand. The output returns an array of objects withDescriptionandplatformsproperties 2. Runjake test:spec\[info.js\]and all tests should pass.PR merged
**APPROVED**
Mistakenly reopened
Backport 1_6_X : https://github.com/appcelerator/alloy/pull/653