You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by onkarshedge <gi...@git.apache.org> on 2016/06/10 10:42:32 UTC

[GitHub] zeppelin pull request #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

GitHub user onkarshedge opened a pull request:

    https://github.com/apache/zeppelin/pull/989

     Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

    ### What is this PR for?
    IPFSNoteBookRepo IPFS storage and sharing zeppelin notes.
    
    
    ### What type of PR is it?
     Feature 
    
    ### Todos
    * [API Multiaddress to connect to ipfs daemon get from configuration ]
    * [Import Note from other peers when a ipfs multihash is given ] 
    * [UI support to import the Note when hash is given as input] 
    * [Testing ] 
    
    ### What is the Jira issue?
    * [Jira issue](https://issues.apache.org/jira/browse/ZEPPELIN-683)
    
    ### How should this be tested?
    [Google Document](https://docs.google.com/document/d/1eYjQL0t7VlBTRMYoA0nWRJAnZ6RHUF7S7G3rx9xH5Pc/edit?usp=sharing)
    
    ### Screenshots (if appropriate)
    [Google Document](https://docs.google.com/document/d/1eYjQL0t7VlBTRMYoA0nWRJAnZ6RHUF7S7G3rx9xH5Pc/edit?usp=sharing)
    
    ### Questions:
    * Does the licenses files need update?
    * Is there breaking changes for older versions?
    * Does this needs documentation?
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/onkarshedge/incubator-zeppelin ipfs

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/989.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #989
    
----
commit d4eb14b47221b10e6ad2eea482f77c23caa81255
Author: onkarshedge <sh...@gmail.com>
Date:   2016-06-10T07:55:59Z

     Added ipfsnotebookrepo

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz I had a doubt about versioning approach.
    Currently I am saving(ipfs add 'note') the note in IPFS for every call to save function. This gives me a new multihash on saving. So for versioning I have to save the multihash with time. The `GitNotebookRepo` has a checkpoint which corresponds to git commit. Here in ipfs each call to ipfs add is like git commit.  So the List<Rev> from history function will be large because save() method is called multiple times.
    So  the List<Rev> should contain only those few multihashes   which user wants to choose.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge great progress, thank you for keeping us posted! 
    
    Before moving further, on top of great suggestions from @corneadoug, there are few more things you also need to take care of:
    
     - Please make sure that `zeppelin-distribution/src/bin_license/LICENSE` includes all dependencies _AND all transitive dependencies_ that this changes bring to the project. You can see them with `mvn dependency:tree`
    
     - Please make sure that ALL your Java code follows the conventions from [project style guide](https://github.com/apache/zeppelin/blob/master/CONTRIBUTING.md#code-convention)
    
     - I noticed that CI is failing here. Could you, as an author of the PR, look into that and post there the reason of the failures here please? This would speed up the review and enable the reviewers to help you identify the reason faster. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz please review


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Got it, thanks! Please submit another WIP pr with Bittorents support.
    
    Could you still follow https://github.com/apache/zeppelin/pull/989#issuecomment-230972882 and update this PR as soon as you get back to IPFS one?
    
    Thanks again!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Do you want to do that on the client-side, right in the browser? 
    
    I see what you mean - our existing impor function indeed fetches from URL and parse JSON right in the browser, but I do not think that such architecture will suit our case, as then the whole IPFS stack need to be run on the client. And it is not something that we want add here (we want  self-contained `IpfsNotebookRepo` implementation)  
    
    I think what you could do here is - create a new REST API endpoint, pass this hash (which is like an URL in our case) to this REST API, and make it delegate actual fetching logic to a method in `IpfsNotebookRepo` and then, on the client, just rear the response, as a JSON.
    
    This logic can be later used for BitTorrent notebooks storage support as well as simple URL case could be refactored to use it (but that is outside of the scope of this PR of course) 
    
    Let me introduce you to @corneadoug - he is known Zeppelin front-end ninja, whose knowledge of the client side codebase is by far greater than mine.
    
    @corneadoug Could you please help @onkarshedge and guide him on refactoring\updating `notenameImport.controller.js` in such way, that it could delegate hash->JSON resolution in case of notebook import to the backend API, for the case of importing notes from new IPFS storage by IPFS hash (which is like a bittorent address)?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    ping, @onkarshedge are there any updates for the past week?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by corneadoug <gi...@git.apache.org>.
Github user corneadoug commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Considering https://github.com/apache/zeppelin/pull/1304 is the import really needed?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz Please review 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge closed the pull request at:

    https://github.com/apache/zeppelin/pull/989


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/zeppelin/pull/989


---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    ping @onkarshedge 
    
    Could you please follow https://github.com/apache/zeppelin/pull/989#issuecomment-230972882 and update this PR
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @corneadoug  feedback addressed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Looks great, @onkarshedge! I posted a few comments above.
    
    \cc @khalidhuseynov for extra back-end code review and @corneadoug for front-end one


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz please review


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Thank you very much @onkarshedge ! I will go though it and let you know


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge what do you think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz right now I am working on Bittorrent support. I am using the [jlibtorrent](https://github.com/frostwire/frostwire-jlibtorrent) which uses libtorrent. The past week I spent time on using this library and some examples.I will post a PR in 2-3 days. Sorry for late response.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz I found this [documentation](http://docs.ipfs.apiary.io/#reference/version/version/version) and there would be no need for dependency. I have used apache-httpcomponents httpclient.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz there are no transitive dependencies, just Junit and hamcrest
    The reason of CI failure is 
    
    >[ERROR] Failed to execute goal on project zeppelin-zengine: Could not resolve dependencies for project org.apache.zeppelin:zeppelin-zengine:jar:0.7.0-SNAPSHOT: Failed to collect dependencies at org.ipfs:api:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for org.ipfs:api:jar:0.0.1->SNAPSHOT: Could not transfer artifact org.ipfs:api:pom:0.0.1-SNAPSHOT from/to codehaus-snapshots (https://nexus.codehaus.org/snapshots/): nexus.codehaus.org: Name or service not known: Unknown host nexus.codehaus.org: Name or service not known -> [Help 1]
    
    It has to be added  in local .m2 repository 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by khalidhuseynov <gi...@git.apache.org>.
Github user khalidhuseynov commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    in a sense i agree with @corneadoug and i'll write more details on that later, but for the beginning wouldn't it make sense to save normal notes without commit in ipfs as well?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz Here is the link to document for first question.
    [High level description](https://docs.google.com/document/d/1OZOowc6aX3BrRkgjkUKwD19DshNXMWE2M07LMpXepx4/edit?usp=sharing)
    TODO's is the frontend api : To enter the ipfs hash to download the note. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge thank you for the great work!
    
    How do you think, how hard it would be to rebase it on latest master?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz To import the note by hash url . I will have to use [javascript-api](https://github.com/ipfs/js-ipfs-api) in this [notenameImport.controller.js](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/components/noteName-import/notenameImport.controller.js) file.
    How do you suggest to use this?.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge I understand that it's WIP, just wanted to remind that eventually your `NotebookRepo` implementation should user `NotebookRepoVersioned`, see Git one as an example.
    
    Could you also point to some document with high-level description of the approach how notebooks are stored in IPFS, what IPFS features are used and how to view them without Zeppelin, to make sure they are saved for people who are not very familiar with IPFS? 
    
    Also, we need to know what is overall current implementation status, like what are TODOs, what is done, what is left, etc? This could be added i.e to the GDoc that you have linked


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by corneadoug <gi...@git.apache.org>.
Github user corneadoug commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    I'm a bit lost with this feature, is it really considered as a NotebookRepo or does it only keep the revisions? Does importing the Hash mean that it import a Revision as Notebook?
    
    Why do we need to comment the VFS while it still save in local file system?
    
    Also I think the ipfs installation steps shouldn't be in the NotebookRepo doc since not every user should be having a server running. It would be more fitting in this PR description on how to test this PR.
    
    #### Import form
    I would have classic URL by default, and the hash option only as a checkbox.
    
    #### Import Note event listener
    I left comments in the code



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge sorry, people were busy releasing 0.6.0 recently
    
    Could you please:
     - [ ] rebase this code on latest `master` branch
     - [ ] update title (add WIP) and PR description to contain TODO list of things that are missing
     - [ ] post here your current status - like what is in-prgress right now or is there anything that blocks your progress, etc


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Hi @onkarshedge, as mid-term evaluation starts soon, I think it's crucial to get answers on 2 previous questions now.
    
    >Could you also point to some document with high-level description of the approach how notebooks are stored in IPFS, what IPFS features are used and how to view them without Zeppelin, to make sure they are saved for people who are not very familiar with IPFS?
    
    and
    
    >Also, we need to know what is overall current implementation status, like what are TODOs, what is done, what is left, etc? This could be added i.e to the GDoc that you have linked


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz @corneadoug  please review,it is complete. I have added the screenshot.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    Should i save to Filesystem like `VFSNotebookRepo` and only when user chooses to version it add it to ipfs that way the ipfs will contain only the ipfs object corresponding to versioned notes and not all through the save method ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @bzz CI is green please review. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge so you say it's not published on Maven Central? 
    
    According to ipfs/java-ipfs-api#1 there is an option fetch it from `https://jitpack.io`. Can you please add new repository to `pom.xml` and try?  Making sure that new code does not break the CI is quite important.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #989: Added ipfsnotebookrepo [ Zeppelin-683 ]

Posted by onkarshedge <gi...@git.apache.org>.
GitHub user onkarshedge reopened a pull request:

    https://github.com/apache/zeppelin/pull/989

     Added ipfsnotebookrepo [ Zeppelin-683 ]

    ### What is this PR for?
    IPFSNoteBookRepo IPFS storage and sharing zeppelin notes.
    
    
    ### What type of PR is it?
     Feature 
    
    ### Todos
    * [x] checkpoint revisions, get particular revision
    * [x] List of revision history
    * [x] remove note and also a particular revision
    * [x] support to import the Note when hash is given as input
    * [x] Documentation 
    
    ### What is the Jira issue?
    * [Jira issue](https://issues.apache.org/jira/browse/ZEPPELIN-683)
    
    ### How should this be tested?
    You need the [ipfs jar](https://github.com/ipfs/java-ipfs-api/blob/master/pom.xml) in the local .m2 repository. `mvn install:install-file` hers is complete [command](https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html)
    Also please refer the `storage document` for more help.
    
    ### Screenshots (if appropriate)
    [Successful import](https://gifyu.com/image/52t)
    [Failure import](https://gifyu.com/image/52Y)
    
    ### Questions:
    * Does the licenses files need update? Yes
    * Is there breaking changes for older versions?
    * Does this needs documentation? Yes
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/onkarshedge/incubator-zeppelin ipfs

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/989.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #989
    
----
commit 61a070449f5d75d53199a3bb41604a48fd175aed
Author: onkarshedge <sh...@gmail.com>
Date:   2016-06-10T07:55:59Z

     Added ipfsnotebookrepo with Versioning and import feature
     backend and frontend

commit 8a6ff363d89571eb8fb25d2af86e5a7080061072
Author: onkarshedge <sh...@gmail.com>
Date:   2016-08-17T14:44:47Z

    added import status as ng-toast

commit 06040835d6f97a4d6bbce7a6ee274d118aed8ca4
Author: onkarshedge <sh...@gmail.com>
Date:   2016-08-18T06:12:42Z

    Added documentation

commit b09876d70abf99a448e791363e6363d3cf7c3ac6
Author: onkarshedge <sh...@gmail.com>
Date:   2016-08-22T15:48:54Z

    refactored code to remove any dependencies and use httpclient

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by corneadoug <gi...@git.apache.org>.
Github user corneadoug commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge just like @bzz said, it would be better to have that import function in the back-end.
    This is the [PR](https://github.com/apache/zeppelin/pull/374) that first implemented the feature so you should be able to find where are the classes currently taking care of the import.
    
    We currently have 2 options for import in the front-end: **URL** or **File Import**
    You could probably create a 3rd one for IPFS.
    
    Right now, the [websocket call](https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/components/noteName-import/notenameImport.controller.js#L97) is sending a Notebook, so you might want to refactor that to have a choice between sending a Notebook or a URL/Hash/Other.
    And send the Hash to the backend so it can do the import.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #989: Added ipfsnotebookrepo [ Zeppelin-683 WIP ]

Posted by corneadoug <gi...@git.apache.org>.
Github user corneadoug commented on the issue:

    https://github.com/apache/zeppelin/pull/989
  
    @onkarshedge I would need a scenario/setup to be able to test it, could you add it to the PR description?
    Regarding the timeout function in front-end, I think it would be better to send back a websocket event message with import result to that client (not everybody), and then show it in a ng-toast. (green: The Notebook XXX was imported, red: We couldn't import Notebook XXX)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---