-
Notifications
You must be signed in to change notification settings - Fork 3
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
Need to know the version tag for a StudyProtocolSnapshot #446
Comments
I would refrain from adding it within Coming to think of it. The main reason not to add anything But, I understand the need. Maybe That said, with a simple additional request to I think it should be possible to make changes like this with a minor version upgrade and using JSON API migration. |
@bardram Would this fulfill the current use case? So a new type, only returned by the protocol subsystem, would be introduced. I presume the use case is along the lines of: as a researcher, I want to see which version the protocols I manage are in, so that I can make sure the right version is used when creating new studies with it. Again, you can see that already through a separate call. And, the |
I believe
This would only be useful when a researcher 'owns' a lot of protocol, which is a rare case I would say. After some discussion, the current use case would falls under StudyService. The This would be useful for situations where a protocol is being modified multiple times, with minor revisions, and studies are made with different versions of the same protocol. Or different versioned protocol is used in different control groups, managed in different studies. Also, if protocols and studies are managed separately, it will be hard to see details of the protocol used by a study. For example, carp-researcher-portal visualise the content of a protocol in In general, the 'version' of a protocol is treated like a new protocol, but the researcher is responsible for managing them. It makes sense of replacing 'myPtorocolV1.0, V1.1 ...' into one protocol with version tags, but then they should also be differentiated by name and tag, where the |
True. It would simply be a shortcut to remove the need to do one extra endpoint call. It does feel a bit like premature optimization over keeping endpoints focused/simple.
Thanks! That's a nice user story explaining the intended need. I still don't think this means it belongs in So, why not in |
Yes, it could simply be a
Interesting! and also complex, everything depends on the protocol, this will be a soft reset/re-deploy for the study. We also keep a copy of If so, we could have a study running, and deploy deplyments with different protocol version. |
Since
It feels naturally at home in |
In order to show it to the user in the web portal, we also need the version tag - which currently is not part of the snapshot.
See >> https://github.com/cph-cachet/carp.core-kotlin/blob/develop/carp.protocols.core/src/commonMain/kotlin/dk/cachet/carp/protocols/application/StudyProtocolSnapshot.kt
The text was updated successfully, but these errors were encountered: