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

Sort out dataVersion in ConcreteDataAttributePath #15017

Open
yunhanw-google opened this issue Feb 10, 2022 · 3 comments
Open

Sort out dataVersion in ConcreteDataAttributePath #15017

yunhanw-google opened this issue Feb 10, 2022 · 3 comments

Comments

@yunhanw-google
Copy link
Contributor

I assume this was the result of discussion with @mrjerryjohns but I am not sure this makes sense. ConcreteDataAttributePath is used for both writes and read responses. And while a read response always has a data version (except not, if there is an error!), a write might not. And we don't have provisions for indicating "no data version" here.

Are we just ignoring this member (but still paying its cost) in the write code? That's a little confusing, and why are we passing the data version in the path for reads and out-of-band for writes (but still have this thing in the path for writes)?

Not going to block the PR on this, but please make sure a followup is filed to fix this. Maybe we need to have separate path representations for read responses and writes (e.g. the one for read responses could inherit from ConcreteDataAttributePath) but also include a dataversion.

Or maybe this should in fact be an Optional, since for reads this value may not be available either? And then we should just use it from the path in the write case?

Originally posted by @bzbarsky-apple in #14711 (comment)

@yunhanw-google
Copy link
Contributor Author

#16602 (comment), prefer having have a ConcreteDataWriteAttributePath (optional dataversion) and a ConcreteDataReadAttributePath (non-optional data version).

@stale
Copy link

stale bot commented Dec 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Dec 11, 2022
@bzbarsky-apple bzbarsky-apple removed the stale Stale issue or PR label Dec 17, 2022
@stale
Copy link

stale bot commented Jun 25, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Jun 25, 2023
@bzbarsky-apple bzbarsky-apple removed the stale Stale issue or PR label Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants