ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower" <tbeerbo...@hortonworks.com>
Subject Re: Review Request 30229: Stacks API structure changes when timestamp is applied
Date Tue, 27 Jan 2015 00:38:21 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30229/
-----------------------------------------------------------

(Updated Jan. 27, 2015, 12:38 a.m.)


Review request for Ambari, John Speidel and Nate Cole.


Bugs: AMBARI-9311
    https://issues.apache.org/jira/browse/AMBARI-9311


Repository: ambari


Description
-------

A Stacks API call made without timestamp and with timsestamp returns with different response:
   http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/services?fields=StackServices/*,serviceComponents/*,serviceComponents/dependencies/Dependencies/scope

   http://c6401.ambari.apache.org:8080/api/v1/stacks/HDP/versions/2.2/services?fields=StackServices/*,serviceComponents/*,serviceComponents/dependencies/Dependencies/scope&_=

The element in the items array has a field *components* in the call without timestamp and
*serviceComponents* in the call with timestamp


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/api/resources/BaseStacksResourceDefinition.java
6bff79c 
  ambari-server/src/test/java/org/apache/ambari/server/api/resources/BaseStacksResourceDefinitionTest.java
b235876 

Diff: https://reviews.apache.org/r/30229/diff/


Testing
-------

Manual test.

Added new unit test.

Existing tests pass.


Thanks,

Tom Beerbower


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message