Skip to content
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

"blueprints" don't work as expected #26

Open
DenoBeno opened this issue Mar 27, 2023 · 1 comment
Open

"blueprints" don't work as expected #26

DenoBeno opened this issue Mar 27, 2023 · 1 comment

Comments

@DenoBeno
Copy link

DenoBeno commented Mar 27, 2023

I have tried to set up a map and link it with its "blueprint" on github, but this doesn't seem to work properly.

Steps:

  1. go to kumu.io and set up a project.
  2. Export the project "blueprint" (JSON)
  3. store this blueprint on github.
  4. Link the blueprint with the project on kumu.io
  5. edit the blueprint on github. (commit, sync...)
  6. reload the project on kumu.io.

To simplify the test, I only changed a description of a single element. Unfortunately, the change doesn't propagate to kumu.io - description of this element didn't change. :-(

Projekt: https://kumu.io/clima/pos#pos-data-model/illustration

image

Github blueprint: https://raw.githubusercontent.com/DenoBeno/kumu/main/PoS.json

 {
      "_id": "elem-NgGc8u0r",
      "attributes": {
        "label": "Illustration",
        "cardinality": "1..*",
        "level": "2",
        "meaning": "Element",
        "description": "A drawing, a photograph, a diagram, etc. visually representing the object. NEW TEXT"
      }
    },
@jeffmohr
Copy link
Member

@DenoBeno unfortunately the project export (that is the backup of a project and includes definition of maps, attributes, etc.) isn't the same format as what is allowed as part of a JSON blueprint linked remote source data set. Think of anything that is linked as a remote source as defining the elements and connections of a map (versus the entire project definition).

If you edited the blueprint to just include the element and connection data, it should work:

{
  "elements": [
    {
        "label": "A",
        "type": "Letter",
        "description": "This is A",
        "tags": ["one", "two"]
    },
    {
        "label": "B",
        "type": "Letter",
        "Favorite Dessert": "shave ice"
    }
  ],
  "connections": [
    {
        "from": "A",
        "to": "B",
        "type": "likes"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants