-
Notifications
You must be signed in to change notification settings - Fork 240
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
Rename response headers to match implementation. #772
Conversation
@JensenPaul Mind reviewing since the change? I can ask Caleb to review it instead if you'd like to. |
@domfarolino mind taking a look at the small change to the spec in this PR? Thanks! |
I'd rather we not rename X-fledge-bidding-signals-format-version. The goal is to remove it, and we're only seeing like 1% of requests using version 1. |
Done. |
Do you mean "implementation and both explainer and spec"? If we were just renaming these to match the implementation, I'd expect renaming |
I don't think we want to ask people to update their code for something we hope to remove in maybe a month or two - we're only seeing this in 0.5% of requests, down from 1.5% a month ago, and print out a devtools warning on the old version. The new version allows new keys to be added to the top-level dictionary if we need new types of data, so hopefully it's not something we'll need in the future - if we need new versions, we could even just include them in the JSON response body, something we couldn't do before, since every key had a meaning. I think we actually do support all the new headers, I just think in this case, we should not be advertising it, or have made the change in the first place. I wasn't a party to the code change here (was out on medical leave at the time), or I would have pushed back on it. |
Yes, for all the headers here, our implemention now supports both the new and old headers (to be backward compatible). We expect people to switch to new headers, and stop supporting old headers when no longer needed. |
But will even the new headers be removed in a month or two, as Matt suggests? Or are they here to say? |
For the format version one, yes, the new header will be removed as well when the old one is removed. |
Ah OK, and the other ones will continue to exist forever? |
No plans to remove any of the others, but the heat death of the universe is a pretty long ways off, so reluctant to commit to something on that timeframe. |
SHA: f6a40a8 Reason: push, by JensenPaul Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Rename response headers in both explainer and spec to use new headers in implementation. The request headers of "X-..." has been renamed (although the old headers are still supported to be backward compatible). See the bug that tracks the work.
Not renaming X-fledge-bidding-signals-format-version since this header is going away soon.
Preview | Diff