-
Notifications
You must be signed in to change notification settings - Fork 0
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
Not Understanding Upload Code #151
Comments
That would indeed be the case, this is exploiting the fact that we know how the RMI scripts work (see here), and that they put all the report artifacts in a One could argue this is part of the API contract.
Similar answer to above - We expect a certain structure, so it's two steps:
We intentionally don't upload things like
Indeed, we currently assume there's only one report (e.g. |
OK this makes sense - I think we need to talk with the RMI team about this - because we already have situations where we're running processes for multiple logical portfolios (PortfolioGroups, Initiatives), but I don't know whether the outputs there are 1:1 with inputs or Many:1 (which was my assumption). |
@AlexAxthelm @cjyetman to chime in! |
Not sure I totally understand what we're talking about here, but... if we're talking about the directory where all the output files are for the interactive report, I would think it would be ideal for any file that ends up in there be transferred to wherever it needs to go to be accessible to the user when viewing their report, because it's not necessarily a fixed set of files, e.g. some initiatives require certain files for their reports that are not required for "GENERAL" reports, and I can foresee wanting to add a new plot or something that might require new files and it would be ideal that doing so would not require changing the server code. Am I talking about the same thing? |
This is an artifact of how we've been doing things on our previous system. I don't think we're married to this, if it would make life easier on your side. On the previous system, the files were organized in a user-level directory that get's mounted to the docker container, so the Simplified current schematic
If it would be better to have something different, I'm totally open to that. In fact somethin like this would align well with what we're thinking on our side for how we want to change the directory structure (cc @cjyetman @jdhoffa @hodie ): Possible schematic
The only issue I'm seeing is in how this relates to #106, and if we need ot have a unique ID of some kind on the report directory, but if that's not a problem from your side, then it probably isn't from ours either. |
The outputs right now are 1:1 (1 portfolio to 1 report) but that's because the current system does the grouping before it hits the PACTA code, and gives it to us as a single file. I think we're comfortable with the idea of doing a many:one mapping, along the lines of:
where |
@bcspragu given the above, I think we probably want to change this code inline with Alex's suggestion - confirming that matches your expectations, since you've been doing the coupling w/ the docker image? |
app/cmd/runner/main.go
Lines 468 to 484 in b743bc9
Three questions about this code - there are some fundamental things I'm not understanding:
1 - Won't it miss files that directly live in the
reportDir
, if any exist?2 - Why do we list
dirEntries
when we already do awalk
of the dirs inuploadDirectory
? I.e. couldn't this section of code just be replaced with a single call touploadDirectory
(which would fix 1 if that's correct)3 - Doesn't this code only return the
artifacts
from the last dirEntry, overwriting anything prior to the last?@bcspragu Would you mind helping me understand this?
The text was updated successfully, but these errors were encountered: