FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

Store actual code details in Container as result of CodeLoader.load()

Open arinwt opened this issue 5 years ago • 2 comments

It is somewhat common/expected that the actual loaded code version may differ from what's in the quorum. In this case, it would be nice if the Code Loader could give that "actual code details" to the Container along with the IRuntimeFactory. It could then be exposed to the Host along with the one from the Quorum value, giving the Host enough information to make decisions about upgrading the code details in the quorum or not.

Currently the thought is that the value stored in the ContainerContext should be the one returned by the Code Loader (if there is one).

It could even be the case that the Container auto-proposes the new code to the quorum if it's later.

arinwt avatar Feb 02 '21 01:02 arinwt

Examples where code details might differ from the quroum:

  • quorum value contains a semver range like "^1.2.3" and loads "1.2.5".
  • quorum value contains a data schema version for sliding window like { app: "5", data: "2" } and loads { app: "7", data: "2" }
  • quorum value contains a placeholder for new documents (related to #5011)
  • quorum value is latest satisfying minimum version boundary

arinwt avatar Feb 02 '21 01:02 arinwt

Resolved with #6394

alpaix avatar Jun 30 '21 02:06 alpaix