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

Support unmarshalling an atomic Notification for ordered lists. #851

Merged
merged 10 commits into from
Jun 1, 2023

Conversation

wenovus
Copy link
Collaborator

@wenovus wenovus commented May 31, 2023

Involves supporting DeleteNode at the container above the list for ordered maps.

@wenovus wenovus requested a review from DanG100 May 31, 2023 23:58
Base automatically changed from deletenode-orderedmap to master June 1, 2023 00:01
@coveralls
Copy link

coveralls commented Jun 1, 2023

Coverage Status

Changes unknown when pulling 9a0eadf on support-unmarshal-notifs-orderedmaps into ** on master**.

// matches the prefix.
//
// e.g. a/b partially matches a/b/c or a/b, but doesn't match a/c.
func PathPartiallyMatchesPrefix(path *gpb.Path, prefix []string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: somehow include that no keys are compared in the function name

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

//
// e.g. a/b partially matches a/b/c or a/b, but doesn't match a/c.
func PathPartiallyMatchesPrefix(path *gpb.Path, prefix []string) bool {
for len(prefix) != 0 && prefix[len(prefix)-1] == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

when are there empty strings in path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just to guard against a trailing slash when splitting. I wouldn't have written this myself -- it is kept in uniformity with the existing PathMatchesPrefix

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just to guard against a trailing slash when splitting. I wouldn't have written this myself -- it is kept in uniformity with the existing PathMatchesPrefix

@wenovus wenovus merged commit e784a05 into master Jun 1, 2023
@wenovus wenovus deleted the support-unmarshal-notifs-orderedmaps branch June 1, 2023 18:23
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.

3 participants