Skip to content

use same names for the keys in the EdgeKVStorage - #2661

Merged
karussell merged 3 commits into
masterfrom
kv_key_names
Sep 29, 2022
Merged

karussell merged 3 commits into
masterfrom
kv_key_names

Conversation

@karussell

@karussell karussell commented Sep 22, 2022 •

Copy link
Copy Markdown
Member

The same that we use for path details.

Two decisions I had to make:

  • the internal classes are not available for client-hc code (or our Example), so we now have two classes EdgeKVStorage.KeyValue and Parameter.Details. As they have a different use case I find this acceptable.
  • the related properties in the instructions change due to this change but not the "name" as it was street_name already before. So it is a breaking change for the client side (but only if the in 5.0 6.0 newly introduced properties like ref or destination are used) but an improvement as it makes it more consistent (like street_ref instead of ref). Note: the path details are not affected by this.

return vals.getCapacity() + keys.getCapacity();
}

// TODO move into KeyValue class?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, I think so, too.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

👍 ... like I did in my previous commit or as extra inner class?

@easbar

easbar commented Sep 22, 2022

Copy link
Copy Markdown
Member

Nice, thanks! 👍

@boldtrn

boldtrn commented Sep 22, 2022

Copy link
Copy Markdown
Member

but only if the in 5.0 newly introduced properties like ref or destination are used

These were introduced in 6.0, right?

@karussell karussell added this to the 7.0 milestone Sep 22, 2022
@karussell

Copy link
Copy Markdown
Member Author

These were introduced in 6.0, right?

Yes, indeed :) ...

@karussell
karussell merged commit 829753d into master Sep 29, 2022
@karussell
karussell deleted the kv_key_names branch September 29, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants