Closed elray1 closed 5 months ago
Is there a known use case for allowing hubverse admins to customize this directory?
@elray1 @LucieContamin pinging you both because you weighed in about this in today's Hubverse dev meeting.
Re: customizing the model-output
directory, I'm trying to understand the balance between:
In this specific case, the impact of allowing people to customize the model-output directory is, perhaps, minor, but it's worth being explicit about the above tradeoffs (for this and for every customization we decide to accommodate).
A few examples/questions related to items 2 and 3 above:
Accepting internal complexity in the name of simplicity for Hubverse users is what we should be doing. In this case, however, it seems like there's potential to do the work to accommodate flexibility and also make things harder for a certain population of data consumers.
Aside from historical data/hubs, is there a compelling reason to let hubverse admins use a different name than model-output
? Do we know what hubs are currently using a name other than model-output
?
Thanks for the detailed information and context.
About allowing customizing the model-output
directory: as it's currently used and well integrated I will prefer not to go back on that decision and force it to be a defined "model-output"
for example.
The information is stored in a "standardized" .json and is easily accessible if necessary. It's also already integrated in the HubData
, HubAdmin
tools.
For the user, I don't think it's that big on an issue if you provide documentation and example code on how to load the data, especially if using the HubData
package.
Also, it allows new hub to choose their folder, which might be useful especially if they don't want to do everything in English, for example.
Currently, two of the US SMH are using another folder name.
Thanks for raising the issue, Becky, and for your thoughts Lucie!
Summing up thoughts so far:
model-output
for this foldermodel-output
.Here are some thoughts/reactions to points 1 and 2:
FWIW, I don't feel extremely strongly about this one way or another, these are just my thoughts on this since I was asked :)
Thanks for the discussion here, and input from all the varied perspectives.
I envision localization as something that we might want to head towards in something like 9-18 months from now. Not on our short term list of "big" things to tackle, but on a list of fairly high priority "nice to haves". I don't know what our priority list will look like in 9+ months, but my inclination is to not engineer for something that is that far into the future, and instead to focus on the immediate use-cases in hand. I'd welcome input from others who have more software dev experience on this than I have! I do think that offering support for other languages is important, just not as important as locking down base hubverse functionality.
thanks for weighing in, Nick. so if offering support for other languages is important, i'd vote that we not take this existing functionality out, and go ahead with updating the value of the default.
Great point about the need to consider localization--hadn't considered that!
@elray1 can you clarify what you mean by "existing functionality"?
Are there any active, fully-Hubverse-compatible hubs (i.e., not SMH) that use this feature?
What I mean by "existing functionality" is that hubData already supports handling of the model output directory as a configurable variable rather than a hard-coded thing, e.g. here: https://github.com/Infectious-Disease-Modeling-Hubs/hubData/blob/059aa13fd0f97b31ef52dca396b297385491149a/R/utils-connect_hub.R#L46-L50
Got it--yep, I realize we can already do that.
As I understand the downsides of removing this customization:
Are there other cons to removing this customization? The ones above don't outweigh the cons of non-standard folder names as outlined above, imo.
(Unless doing so would break an existing Hubverse hub, then agree we shouldn't do it)
To clarify the above...what I'm getting at is that allowing customization of the model-output folder name adds actual work in the present to maybe enable a future feature that isn't solidly roadmapped.
It's always a tricky call, and favoring the future feels usually like the right thing. In my experience, however, it's hard to predict more than a quarter or two out, and I've often regretted a code base with complexity that felt necessary at the time but ended up unused as priorities evolved.
Again, in this case the complexity isn't terrible, but it's worth considering for a small team and because it potentially impacts users (i.e., not just the dev team).
I don't feel like I have much more to add :)
I understand your points, and also continue to feel some reluctance about putting effort into removing stuff that's done and that we would certainly want as part of a localization feature which it sounds like is a fairly high priority medium-term thing, and I also continue to not really have strong feelings about this either way.
I don't feel like I have much more to add :)
Same!
I can "disagree and commit" on this, though I won't prioritize the corresponding cloud sync issue to accommodate customized model-output directory names (because there is more pressing work, and someone using the action can easily change the directory name if they need to).
Returning to the original purpose of the issue, sounds like there's no good reason not to update the default value as you suggest?
I think it should be
"model-output"
, not"model_output"
.https://github.com/Infectious-Disease-Modeling-Hubs/schemas/blob/de580d56b8fc5c24dd36a32994182e37b8b0ac95/v2.0.0/admin-schema.json#L635