fix: fix the docker setup to include interactions and related data#212
Merged
halcwb merged 4 commits intoinformedica:masterfrom Mar 23, 2026
Merged
fix: fix the docker setup to include interactions and related data#212halcwb merged 4 commits intoinformedica:masterfrom
halcwb merged 4 commits intoinformedica:masterfrom
Conversation
Contributor
Greptile SummaryThis PR wires up the new Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[loadInteractionJson called] --> B[lazy interactionJsonCache evaluated?]
B -- already cached --> C[return cached value]
B -- first call --> D[getServerDataPath]
D --> E{Server.fs found in tree?}
E -- yes dev --> F[return server source dir]
E -- no --> G{Server.dll in currentDir?}
G -- yes prod --> H[return currentDir /app]
G -- no --> I[return Environment.CurrentDirectory]
F --> J[Path.Combine path + data/cache/interactions/Data.JSON]
H --> J
I --> J
J --> K[Path.GetFullPath]
K --> L{File.Exists?}
L -- yes --> M[File.ReadAllText → Some json]
L -- no --> N[None]
M --> O[GenInteract.Lib.Api.checkInteractions]
N --> O
O --> P[return interaction results]
Reviews (1): Last reviewed commit: "fix: fix the docker setup to include int..." | Re-trigger Greptile |
src/Informedica.GenPRES.Server/data/cache/interactions/Data.JSON
Outdated
Show resolved
Hide resolved
src/Informedica.GenPRES.Server/data/cache/interactions/Data.JSON
Outdated
Show resolved
Hide resolved
src/Informedica.GenPRES.Server/data/cache/interactions/Data.JSON
Outdated
Show resolved
Hide resolved
…ns/Data.JSON Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the Docker configuration and server code to support the new
Informedica.GenINTERACT.Liblibrary and to improve the handling of interaction data caching. The changes ensure that the new library is included in Docker builds, and that relevant cache files and directories are available in the container. Additionally, the server code is updated to simplify the path resolution for the interaction JSON cache.Docker and file inclusion updates:
src/Informedica.GenINTERACT.Libto the Docker build context and ensured it is not ignored by.dockerignore, allowing it to be copied into the Docker image. [1] [2].dockerignoreto allow theinteractionscache directory and its JSON files to be included in the Docker build, ensuring these files are available at runtime.Server code improvements:
interactions/Data.JSONcache file inServerApi.Adapters.fs, making it more robust and easier to maintain.