-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
clair: Ancestry Builder #712
Conversation
83fb6fc
to
9c73243
Compare
1da5c4f
to
258f9f5
Compare
if name == "" { | ||
// TODO(sidac): we'll use the computed ancestry name in the future. | ||
// During the transition, it still requires the user to use the correct | ||
// ancestry name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How big of a change do you think this will be? Why not just strip it out of the API right now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because when getting the ancestry, it requires a name.
We can either do:
return the computed name to the client
or
the client still gives us the name, but we use an extra table to keep the client given name to the internal ancestry name mapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should get rid of names and make the computed name an implementation detail. Just let the customer provide the layer list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OR (which I prefer)
The user always query with a list of layer hashes in the request body. This just requires us to change the API a little bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly
8e77355
to
2b8bcfa
Compare
- Add Ancestry builder - Change RPC to use the ancestry builder
2b8bcfa
to
5bf8365
Compare
worker is removed, we have Ancestry builder! using builder pattern to construct an Ancestry.