Comments (2)
Somewhat related to what I wrote at #69 (about merging, and dealing with ID conflicts).
from gitify.
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)
- Getting YAML error on server but on local HOT 2
- Unable to run Gitify 1.0 HOT 3
- Can not install Gitify HOT 1
- Composer install of v2 : minimum stability issue HOT 2
- v1.x and PHP 8 compatibility issue (Symfony Yaml) HOT 7
- Error "Duplicate key" with ver. 2.0-alpha while build HOT 5
- Automatic adding(deleting) new line after <?php tag every "gitify build"
- Restore command fails with MODX 3 HOT 6
- errors when installing package in MODX3 HOT 4
- Unable to (re)set tinyint values to 0
- [MODX3] Error when extract MediaSource HOT 3
- PHP warning: Undefined array key "service" HOT 1
- modx:install command fails HOT 3
- New .gitify dump-method writes "api_key" and omits original "credential_file"-location HOT 1
- Comments in .gitify file are stripped out HOT 2
- modTemplateVarTemplate are getting overwritten by each other HOT 3
- Collections 4.0.0-pl not extractable any more HOT 4
- MODX could not create your database. Please manually create your database and then try again. HOT 2
- Unable to initialize project HOT 6
- Duplicates detected for modDashboardWidgetPlacement but no duplicates in database
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitify.