Skip to content
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

[LDR] hubverse target_keys should contain a single value #7

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

zkamvar
Copy link
Member

@zkamvar zkamvar commented Dec 24, 2024

I have added an LDR to reflect the decision made at the hubverse devteam meeting on 2024-12-11.

Here is the transcript of the discussion:

  • In target_metadata, we allow for target_keys to be multiple fields. (Evan) E.g., if a hub has 4 targets given by “incident hospitalizations”, “cumulative hospitalizations”, “incident cases”, “cumulative cases”, these could be represented by two variables called inc_cum \in {“incident”, “cumulative”} and signal \in {“hospitalizations”, “cases”}. Is it worth the coding effort downstream to support this, or should we just ask hubs to provide 1 target in 1 column
    • E.g. 1 column with values like: (“incident hosps”) or (“incident cases”)
    • E.g. 2 columns with values like (“incident” and “hosps”) or (“incident” and “cases”)
    • Lucie: Are there any hubs that are using the two column targets?
    • Becky: as we start to play with dashboards and downstream data, having one column is great to use as a partitioning key.
    • Lucie: it’s also fairly easy to switch from two to one.
    • Nick: to clarify, we’ve made a decision to change this?
    • Anna: no.Tthe only thing that we want to specify is that each target would contain a single value.
    • Becky: is the work here to create a new version of the schema and update the documentation?
    • Becky will create a ticket.
    • Evan: should we check in with existing hubs before we go ahead with this?
    • Nick: the right thing to do would be to send this to the mailing list.

I am recording this as an LDR so I can refer to this decision for communications

PRs are already underway:

@zkamvar zkamvar requested a review from elray1 December 24, 2024 17:57
Copy link

@elray1 elray1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks for putting it together! had a question about version number. Am approving in case you believe the version number is correct.

We will update our schemas to specify that `target_keys` should contain exactly
one property if it is not `null`.

We will increment the version of the schemas to v4.0.1.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be regarded as a major version change, in the sense that if a hub previously had multiple target keys, they can't just update to the latest version and still have a working schema? (This is a real question, not a suggestion to change the version increment.)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a good question. My opinion is that it should be a major version change because of this reason.

It's one of the slightly frustrating things that happens with semantic versioning: major version changes often feel like they should be earth-shattering changes, but they can be as small as removing an argument or (in this case) restricting a previously boundless field.

Copy link
Member Author

@zkamvar zkamvar Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That being said, given that I am recording a decision that was made in a meeting two weeks ago AND because the steps for implementation are already in progress, it's more appropriate to merge this in and then create another LDR to amend this decision if we think it's appropriate.

@zkamvar zkamvar merged commit 10193b8 into main Dec 24, 2024
@zkamvar zkamvar deleted the znk/hubverse/rfc-target_keys branch December 24, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants