I believe that this has come up in other threads, but in the context of the orderentryui owa beta release, I wanted to raise the topic again here for design/discussion.
For orderentryui, the team has indicated that this requires the following modules: Webservices REST (v2.23.0), Reference MetaData (2.7.2), MetaData Deploy (1.11.0), Order Entry UI (v1.0.0). I assume it also likely requires a certain version of OpenMRS Core (presumably at least 1.10, possibly higher once we start introducing Order Sets).
Unlike for modules, there is not a way that I’m aware of for an OWA author to specify in the the OWA configuration what platform requirements exist for it to function, or what it has been tested against. As we continue to scale up OWA development, this is a limitation we should try to address.
I’m interested in thoughts on how we might approach this, and if this is already ticketed or not. It would be great to prioritize this and some related functionality in the near term.
@darius and @pascal thanks for the responses. I have created this ticket to try to get this defined and underway as a possible enhancement. I think this needs a little more fleshing out, so I put it into Needs Design. I think the design proposed above makes sense, though as I write in the ticket, I think we need to support a bit more complexity about version ranges that might be supported for a given dependency, particularly for core versions supported.
Perhaps the version could be something like what is present in the package.json files used by yarn and npm.
This might put some constraints on future version numbers as it requires backward compatibility when minor numbers are changed.
An alternate would be a list of compatible versions, rather than a single one. But this means that the OWA would need to be updated if there was a minor (say bug release) to one of its dependencies, which does not seem a very good idea.
@mseaton, thanks for creating OWA-95 to add the ability to specify core & module versions to OWA manifests. I’ve tried to revise the ticket description to take into account your comments and @darius’ response. Could you take a peek at the ticket and, if you agree, change it to ready for work (or let me know and I will). Otherwise, if you think we still need design discussion, let me know and we’ll get it into the queue.