brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From azbarcea <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: [BROOKLYN-177] wip: drag and drop...
Date Thu, 01 Oct 2015 22:51:57 GMT
Github user azbarcea commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/930#issuecomment-144869789
  
    
    * drag
    ![brooklyn-drag-01](https://cloud.githubusercontent.com/assets/661912/10235625/317249d4-689e-11e5-8484-558210a4538a.png)
    
    * drop
    ![brooklyn-drag-02](https://cloud.githubusercontent.com/assets/661912/10235623/316f0580-689e-11e5-8019-028d35a5b861.jpg)
    
    * the _code editor view_ is now persistent 
    ![brooklyn-drag-03](https://cloud.githubusercontent.com/assets/661912/10235624/317129a0-689e-11e5-985a-15e49e6f00b3.jpg)
    
    The following known issues:
    * the drop event will paste the JSON format and not the YAML. The current text is:
    
    is:
    ```javascript
    services: [{ type: org.apache.brooklyn.entity.brooklynnode.BrooklynEntityMirror }]
    ```
    should be:
    ```yaml
    - type: org.apache.brooklyn.entity.brooklynnode.BrooklynEntityMirror
    ```
    or even:
    ```yaml
    services:
    - type: org.apache.brooklyn.entity.brooklynnode.BrooklynEntityMirror
    ```
    
    To make the drop event context dependent (exists or not the *services:*), then, a javascript
yaml (blueprint) parser should be created (like [1]). It should understand CAMP syntax.
    
    References:
    [1] - http://www.json2yaml.com/ 


---
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.
---

Mime
View raw message