-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
META-249 Publish any version of package headers #53
base: master
Are you sure you want to change the base?
Conversation
In consideration, Package headers are published in xml format using xstreams, modifying this class was to bring out the aspect of getting latestSubscriptionHeaderView with groupuuid and version which was already defined . kindly review this PR and your advise is highly appreciated cc. @dkayiwa , @mogoodrich , @mozzy11 |
Kindly review this ticket @rkorytkowski @dkayiwa @ibacher |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -103,7 +102,7 @@ public ModelAndView getSubscriptionHeader(Model model, HttpServletRequest reques | |||
header.setContentUri(PublishUtils.createRelativeURI("../" + pack.getGroupUuid() + "/" + pack.getVersion() | |||
+ "/download")); | |||
model.addAttribute("header", header); | |||
return new ModelAndView(subscriptionHeaderView, model.asMap()); | |||
return new ModelAndView((String) subscriptionHeaderView, model.asMap()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this actually work? This seems like a weird cast...
@@ -49,13 +48,13 @@ | |||
* The controller for publish related pages. | |||
*/ | |||
@Controller(MetadataSharingConsts.MODULE_ID + ".PublishController") | |||
public class PublishController { | |||
public class PublishController<GetLatestSubscriptionHeaderView> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the type information here?
These changes that i made were suggested by @rkorytkowski
https://issues.openmrs.org/projects/META/issues/META-249?filter=allopenissues