Bug 804702
Summary: | deployAllSystems() documentation on the webUI does know show the date parameter when calling the method | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Marcelo Moreira de Mello <mmello> | ||||||||
Component: | API | Assignee: | Tomas Lestach <tlestach> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 1.7 | CC: | mmello | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 804706 (view as bug list) | Environment: | |||||||||
Last Closed: | 2012-11-01 16:19:19 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 871344 | ||||||||||
Attachments: |
|
Created attachment 571196 [details]
Patch proposed
Patch proposed
Created attachment 571197 [details]
Screenshot after applying the patch
Patch sent to spacewalk-devel mailing list for approval https://www.redhat.com/archives/spacewalk-devel/2012-March/msg00039.html Patch applied as ... spacewalk.git: 44e128e316c720342b91ed99c0c25eaf7ba35a2e Thank you! Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/ Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18 |
Created attachment 571173 [details] screenshot deployAllSystems() Description of problem: deployAllSystems() documentation does know show the date parameter when calling the method https://<SPACEWALK_FQDN>/rhn/apidoc/handlers/ConfigChannelHandler.jsp#deployAllSystems Method: deployAllSystems Description: Schedule an immediate configuration deployment for all systems subscribed to a particular configuration channel. Looking the webUI: ----------------------------------------- Parameters: string sessionKey string channelLabel - The configuration channel's label. Returns: int - 1 on success, exception thrown otherwise. Method: deployAllSystems Description: Schedule a configuration deployment for all systems subscribed to a particular configuration channel. Parameters: string sessionKey string channelLabel - The configuration channel's label. Returns: int - 1 on success, exception thrown otherwise. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Access on the webUI the URL https://<SPACEWALK_FQDN>/rhn/apidoc/handlers/ConfigChannelHandler.jsp#deployAllSystems Actual results: date parameter is not showed on documentation for the method signature Expected results: date parameter be showed on documentation for the method signature Additional info: Looking the code we can observe that date parameter is present java/code/src/com/redhat/rhn/frontend/xmlrpc/configchannel/ConfigChannelHandler.java --------------------------------------- 747 /** 748 * Schedule a configuration deployment for all systems in a config channel immediately 749 * @param sessionKey the session key 750 * @param channelLabel the channel to remove the files from.. 751 * @return 1 if successful with the operation errors out otherwise. 752 * 753 * 754 * @xmlrpc.doc Schedule an immediate configuration deployment for all systems 755 * subscribed to a particular configuration channel. 756 * @xmlrpc.param #session_key() 757 * @xmlrpc.param #param_desc("string","channelLabel", 758 * "The configuration channel's label.") 759 * @xmlrpc.returntype #return_int_success() 760 */ 761 public int deployAllSystems(String sessionKey, String channelLabel) { 762 return deployAllSystems(sessionKey, channelLabel, new Date()); 763 } [...] 766 /** 767 * Schedule a configuration deployment for all systems in a config channel 769 * @param channelLabel the channel to remove the files from.. 770 * @param date the date to schedule 771 * @return 1 if successful with the operation errors out otherwise. 772 * 773 * 774 * @xmlrpc.doc Schedule a configuration deployment for all systems 775 * subscribed to a particular configuration channel. 776 * @xmlrpc.param #session_key() 777 * @xmlrpc.param #param_desc("string","channelLabel", 778 * "The configuration channel's label.") 779 * @xmlrpc.param #param_desc($date, "The date to schedule the action") 780 * @xmlrpc.returntype #return_int_success() 781 */ 782 public int deployAllSystems(String sessionKey, String channelLabel, Date date) { 783 User loggedInUser = getLoggedInUser(sessionKey); 784 XmlRpcConfigChannelHelper configHelper = XmlRpcConfigChannelHelper.getInstance(); 785 ConfigurationManager manager = ConfigurationManager.getInstance(); 786 787 ConfigChannel channel = configHelper.lookupGlobal(loggedInUser, 788 channelLabel); 789 List<ConfigSystemDto> dtos = manager.listChannelSystems(loggedInUser, channel, 790 null); 791 List<Server> servers = new ArrayList<Server>(); 792 for (ConfigSystemDto m : dtos) { 793 Server s = SystemManager.lookupByIdAndUser(m.getId(), loggedInUser); 794 if (s != null) { 795 servers.add(s); 796 } 797 } 798 799 try { 800 manager.deployConfiguration(loggedInUser, servers, date); 801 } 802 catch (MissingCapabilityException e) { 803 throw new com.redhat.rhn.frontend.xmlrpc.MissingCapabilityException( 804 e.getCapability(), e.getServer()); 805 } 806 return 1; 807 808 }