-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[ZEPPELIN-1257] Decouple revision id handling #1277
[ZEPPELIN-1257] Decouple revision id handling #1277
Conversation
First of all - I appreciate you patience and attention to details and your code looks great. There are few design aspects of it I wanted to discuss with you here From the diff tab:
This approach, namely, extracting If I try to understand, what are the benefits of
I think we are on the way of coming up with a better design here together, so let's try to follow Occam's razor design principle and think in term of API. First of all, here is current problem, how I see: we are talking about design of the "Notebook Repository subsystem or API" that abstracts (hides all implementation details of) the process of getting an information about notebooks and it's lineage from the persistent storage. This subsystem provides a public and uniform API for all it's clients to get the a notebooks, together with their history (modifications\snapshots).
In terms of API design, first question to ask is always the same - "who are the clients"? In our case there are:
If we agree on this general terms, I'll be happy to go on, and discuss possible ways to solve this problem. Please, et me know what you think! |
@bzz giving some context
So the question was that given current api as follows : further given your feedback from #1254 here :
Now, I tried to address that problem here by adding |
Shall we close this guy then in favor of #1254 ? |
What is this PR for?
This PR is to decouple Revision from RevisionId and let users to provide their own RevisionId class as a generic input to the provided RevisionId class.
What type of PR is it?
Improvement | Refactoring
Todos
What is the Jira issue?
ZEPPELIN-1257
How should this be tested?
CI green
Screenshots (if appropriate)
Questions: