Giter VIP home page Giter VIP logo

Comments (2)

Mark-H avatar Mark-H commented on August 16, 2024

Somewhat related to what I wrote at #69 (about merging, and dealing with ID conflicts).

from gitify.

hugopeek avatar hugopeek commented on August 16, 2024

When you give all your new elements an ID of 1 (or any existing ID will do I guess) and use the --no-cleanup flag when building, it seems to be auto-incrementing the IDs properly for each resource:

Building content from content/...
- Building admin context...
- Building global context...
  \ Primary Key Conflict found: modResource {"uri":"forms\/registration*","context_key":"global"} has the same primary key as {"uri":"home","context_key":"web"}
  \ Primary Key Conflict found: modResource {"uri":"forms\/contact*","context_key":"global"} has the same primary key as {"uri":"home","context_key":"web"}
- Building romanesco context...
- Building notes context...
- Building web context...
- Building hub context...
  \ Primary Key Duplicate found: duplicate modResource with primary {"uri":"status\/kanban","context_key":"hub"}
  \ Primary Key Duplicate found: duplicate modResource with primary {"uri":"backyard\/examples\/foundation","context_key":"hub"}
- Attempting to resolve ID Conflict for {"uri":"home","context_key":"web"} with 4 duplicate(s).
  \ Duplicate #1: resolving primary key conflict by building object with new auto incremented primary key. 
  \ Duplicate #2: resolving primary key conflict by building object with new auto incremented primary key. 
  \ Duplicate #3: resolving primary key conflict by building object with new auto incremented primary key. 
  \ Duplicate #4: resolving primary key conflict by building object with new auto incremented primary key. 
- Re-extracting content; you will need to commit the changes manually.
  \ Extracting content into content (275 resources across 8 contexts)...
  \ - Extracting resources from admin context (25 resources)...
  \ - Extracting resources from backyard context (0 resources)...
  \ - Extracting resources from global context (16 resources)...
  \ - Extracting resources from hub context (147 resources)...
  \ - Extracting resources from mgr context (0 resources)...
  \ - Extracting resources from notes context (3 resources)...
  \ - Extracting resources from romanesco context (35 resources)...
  \ - Extracting resources from web context (48 resources)...
  \ Done! Time: 2,024ms | Memory Usage: 39.07 mb | Peak Memory Usage: 67.29 mb
  \ Clearing cache...
Done! Time: 14,887ms | Memory Usage: 39.29 mb | Peak Memory Usage: 67.29 mb

I only tried it with resources.. You can't assign parent IDs in this case of course, so the new resources end up in root folder.

from gitify.

Related Issues (20)

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.