Giter Site home page Giter Site logo

Comments (4)

lotas avatar lotas commented on June 2, 2024

Hi @nabati, thanks for the issue. It would be good to see what happens for those unmapped entities. Would you be able to see in the entity definition how it is being linked?

from contentful-graph.

nabati avatar nabati commented on June 2, 2024
digraph obj {
  node[shape=record];

  "componentUpsell";
  "metaContent";
  "variant";
  "Asset";
  "componentProductGridNew";
  "subcategoryPage";
  "categoryPage";
  "faqEntry";
  "faqPage";
  "imageCarousel";
  "uspCard";
  "pageDesigner";
  "componentImageCarouselNew";
  "pageHomepageNew";
  "componentFaqEntryGlobal";
  "test";
  "pageCollection";
  "imageEntry";
  "brandModuleProductGrid";
  "faqCategory";
  "pageTextPageGlobal";
  "textPage";
  "audience";
  "blockQuote";
  "departmentPage";
  "featureModule";
  "twelveColumnModuleRow";
  "componentHeroModule";
  "articlesPage";
  "pageOurDesigners";
  "componentNavigation";
  "link";
  "articlePage";
  "productMaterialSample";
  "componentArticlePreview";
  "componentProductCard";
  "promotionCard";
  "linkTag";
  "lifestyle";
  "editorial";
  "brandModuleProductGridItem";
  "imageRow";
  "eightPlusFourRow";
  "lifestyleImage";
  "footer";
  "paragraph";
  "brandModuleTextBlock";

  edge [color="#e6194B"];
  "componentUpsell" -> "variant" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "variant" -> "Asset" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "componentProductGridNew" -> "variant" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "subcategoryPage" -> "variant" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "subcategoryPage" -> "variant" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "categoryPage" -> "variant" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "categoryPage" -> "subcategoryPage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "faqEntry" -> "componentFaqEntryGlobal" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "faqPage" -> "componentFaqEntryGlobal" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "faqPage" -> "faqCategory" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "imageCarousel" -> "Asset" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "componentImageCarouselNew" -> "imageEntry" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "test" -> "variant" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "test" -> "subcategoryPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "test" -> "uspCard" [dir=forward,label="0..*"];
  edge [color="#4363d8"];
  "test" -> "test" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "pageCollection" -> "variant" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "brandModuleProductGrid" -> "brandModuleProductGridItem" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "faqCategory" -> "componentFaqEntryGlobal" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "departmentPage" -> "categoryPage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "twelveColumnModuleRow" -> "componentHeroModule" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "twelveColumnModuleRow" -> "lifestyle" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "twelveColumnModuleRow" -> "brandModuleProductGrid" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "twelveColumnModuleRow" -> "brandModuleTextBlock" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "articlesPage" -> "articlePage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "pageOurDesigners" -> "pageDesigner" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "componentNavigation" -> "categoryPage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "componentNavigation" -> "departmentPage" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "componentNavigation" -> "link" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "componentNavigation" -> "articlesPage" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "componentNavigation" -> "categoryPage" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "componentNavigation" -> "faqPage" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "componentNavigation" -> "textPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "link" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "articlesPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "categoryPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "departmentPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "faqPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "subcategoryPage" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "componentNavigation" -> "textPage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "articlePage" -> "blockQuote" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "articlePage" -> "imageCarousel" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "articlePage" -> "imageRow" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "articlePage" -> "paragraph" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "articlePage" -> "[ Unknown type: portraitImageRow ]" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "articlePage" -> "variant" [dir=forward,label="0..*"];
  edge [color="#ffe119"];
  "articlePage" -> "subcategoryPage" [dir=forward,label="0..*"];
  edge [color="#4363d8"];
  "articlePage" -> "articlePage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "linkTag" -> "categoryPage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "linkTag" -> "subcategoryPage" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "linkTag" -> "variant" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "lifestyle" -> "linkTag" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "lifestyle" -> "linkTag" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "imageRow" -> "Asset" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "eightPlusFourRow" -> "editorial" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "eightPlusFourRow" -> "lifestyle" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "eightPlusFourRow" -> "editorial" [dir=forward,label="0..*"];
  edge [color="#3cb44b"];
  "eightPlusFourRow" -> "featureModule" [dir=forward,label="0..*"];
  edge [color="#e6194B"];
  "lifestyleImage" -> "variant" [dir=forward,label="0..*"];
}

graphviz (3)

Several of the nodes on the right should have links to other elements, but they do not here. Not sure what the issue could be?

from contentful-graph.

lotas avatar lotas commented on June 2, 2024

hi @nabati, thanks. So according to the raw dot object you provided, it the graph is fine.
Can you please tell at least one node that doesn't contain links, so we could continue our investigation there?

I would also likely ask you to give some details for the original schema for those models if possible, to see how the relations are defined there. Maybe they are not defined at all, or are defined in some other way.

Thanks!

from contentful-graph.

Swissbite avatar Swissbite commented on June 2, 2024

@nabati
I encountered the same problems several versions of ago. So, my questions would be:

  • Are you using the management token or the access token? The later can only draw relations for existing content
  • Are the missing relations defined for a richText element?
    • Are you using the last release which resolves #19 ?

from contentful-graph.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.