You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by AhyoungRyu <gi...@git.apache.org> on 2017/01/24 03:09:37 UTC

[GitHub] zeppelin pull request #1935: [gh-pages][ZEPPELIN-1973] List all available He...

GitHub user AhyoungRyu opened a pull request:

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

    [gh-pages][ZEPPELIN-1973] List all available Helium packages under zeppelin.apache.org

    ### What is this PR for?
    After #1842 merged, anyone can create his/her own `VISUALIZATION` pkg as described in [Writing a new Visualization](https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/development/writingzeppelinvisualization.html) and can publish it to npm registry. The below img describes "the current Helium package mechanism(black outline) + proposing from me to list all Helium pkgs published in npm registry(red one) in Zeppelin official website".  So what I did to do this was the red-outlined factors. 
    
    <img width="1273" alt="screen shot 2017-01-24 at 2 15 45 am" src="https://cloud.githubusercontent.com/assets/10060731/22231364/7d935b48-e226-11e6-98ff-3b642fbffc35.png">
    
    **Future work**
    Currently to enable/disable the helium VIZ pkg via Helium GUI menu in Zeppelin, user needs to place Helium info json files under `ZEPPELIN_HOME/helium/` manually. But from now, we can substitute this not user friendly way by using `helium.js`. (Will handle in another PR )
    
    **Any issues?**
    But as I mentioned in [ZEPPELIN-1973](https://issues.apache.org/jira/browse/ZEPPELIN-1973), since I used AWS services (Lambda, S3 and CloudWatch), I needed an account. So for continous management, I'm willing to share the information that need to run/packaging/deploy Lambda function with Zeppelin PMCs if you Zeppelin community thinks I need to do it. 
    
    
    ### What type of PR is it?
    Improvement | Feature
    
    ### Todos
    * [ ] - Adjust navbar when screen width is small 
    
    ### What is the Jira issue?
    [ZEPPELIN-1973](https://issues.apache.org/jira/browse/ZEPPELIN-1973)
    
    ### How should this be tested?
    Build `gh-pages` branch as described in [here](https://github.com/apache/zeppelin/tree/gh-pages#build-website). Or please see the below gif sreenshot :)
    
    ### Screenshots (if appropriate)
    ![record](https://cloud.githubusercontent.com/assets/10060731/22231997/16ff7c14-e22a-11e6-9afe-aa7e4528e3af.gif)
    
    
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? no


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

    $ git pull https://github.com/AhyoungRyu/zeppelin gh-page/ZEPPELIN-1973

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

    https://github.com/apache/zeppelin/pull/1935.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 #1935
    
----
commit b1d7ffd6826e862a89b519365af42c8230beabcb
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2017-01-23T15:54:53Z

    Import js files: icons, angular, helium package list info

commit a5f09260bf11f1a5fcbde140412e43018b5a84de
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2017-01-23T15:56:51Z

    Add 'Helium' menu to main navbar

commit 45c0e7d2fe9bd8c76aee92aa194c9e04110a8f84
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2017-01-23T15:57:08Z

    Add new page: Helium Packages

commit 129a916fd97e4483dd6f1b056f5420f7d79d7c70
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2017-01-23T15:57:41Z

    Styling

----


---
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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    Thanks for GREAT suggestions @1ambda. 
    
    >It would be great if helium package has version field considering local package and latest
    
    I've just added `version` and `published` field to each pkg version's information. Please check [helium.json](https://s3.amazonaws.com/helium-package/helium.json)(used for Zeppelin Helium GUI menu) and [helium.js](https://s3.amazonaws.com/helium-package/helium.js)(used for zeppelin.apache.org). I also added `published` date for each version, to show latest package first. So now, it'll be look like below 
    ```
    "0.0.3": {
          ...
        },
        "latest": {
          "type": "VISUALIZATION",
          "name": "zeppelin-bubblechart",
          "version": "0.0.4",
          "published": "2017-01-23T20:42:34.373Z",
          "artifact": "zeppelin-bubblechart@0.0.4",
          "author": "leemoonsoo",
          "description": "Animated bubble chart",
          "license": "BSD-2-Clause",
          "icon": "<svg viewBox='0 0 70 70'><circle cx='26' cy='28' stroke='black' style='stroke-width: 1px;' r='25' fill='seagreen'/><circle cx='42' cy='44' stroke='black' style='stroke-width: 1px;' r='20' fill='DodgerBlue'/><circle cx='54' cy='24' stroke='black' style='stroke-width: 1px;' r='15' fill='crimson'/></svg>"
        }
    ```
    
    And here is the latest update.
    ![record](https://cloud.githubusercontent.com/assets/10060731/22551286/90bc376c-e997-11e6-8529-4dde534181d4.gif)
    
    
    >If once people start to develop packages, there must be operational things like user complains. For example, "I published package to npm, but it's not collected by helium for last 2 days. What's the problem?" So, it's good for each package to have some information for debug and ops like createdAt, heliumFormatVersion.
    
    Especially for this, totally agree with you. Actually there are lots of things to be improved and can be changed. So I need more time to rethink about how I can do that in Lambda function side. But as it doesn't affect directly to merge this PR, I'll update it later time if it's okay with you. Appreciate 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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    @AhyoungRyu You are welcome. I will review soon.


---
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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    @AhyoungRyu Thanks for great contribution. This PR increase the number of helium package users significantly. 
    
    I would like to comment about the design of `helium.json`. Basically, It's concise and well designed. 
    
    - It would be great if helium package has `version` field considering local package and `latest`
    - If once people start to develop packages, there must be operational things like user complains. For example, "I published package to npm, but it's not collected by helium for last 2 days. What's the problem?" So, it's good for each package to have some information for debug and ops like `createdAt`, `heliumFormatVersion`.



---
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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    Tested and works as expected.
    LGTM



---
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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    FYI, I added "only available in development version(0.8.0-SNAPSHOT)" msg next to the **SPELL** radio button. Also updated screenshot 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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    @1ambda Thanks for testing it out. Merge into `gh-pages` if there are no more comments on 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 pull request #1935: [gh-pages][ZEPPELIN-1973] List all available He...

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

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


---
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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    @Leemoonsoo Thanks for testing out! 
    I saw new type of package "SPELL" was introduced by #1940. So I'd like to make the result filtered by Type (`VISUALIZATION` or `SPELL`) using radio button. Let me update again. It won't take too long :D


---
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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    @Leemoonsoo Sorry for my late update. I spent some time to fetch both SPELL and VIZ type pkgs' info and push all them to one [helium.js](https://s3.amazonaws.com/helium-package/helium.js) file. 
    And I made radio button to make pkg list selectable. And fixed downflow navbar issue as well. 
    
    @1ambda If you don't mind, can you help review this 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 #1935: [gh-pages][ZEPPELIN-1973] List all available Helium pa...

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

    https://github.com/apache/zeppelin/pull/1935
  
    Tested and works 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.
---