drawio icon indicating copy to clipboard operation
drawio copied to clipboard

CSV import with parents needs two imports to work correctly

Open GordianDziwis opened this issue 5 months ago • 2 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug CSV import with parents needs two imports to work correctly.

To Reproduce

Steps to reproduce the behavior:

  1. Import
# label: %subject%
# stylename: type
# styles: { \
#   "Node": "whiteSpace=wrap;fontSize=14;", \
#   "AnonContainer": "\
#     swimlane;\
#     fontStyle=0;\
#     childLayout=stackLayout;\
#     horizontal=1;\
#     startSize=0;\
#     horizontalStack=0;\
#     resizeParent=1;\
#     resizeParentMax=0;\
#     resizeLast=0;\
#     collapsible=1;\
#     marginBottom=10;\
#     marginTop=10;\
#     marginRight=10;\
#     marginLeft=10;\
#     whiteSpace=wrap;\
#     fillColor=default;\
#     swimlaneFillColor=default;\
#     rounded=0;\
#     spacing=4;\
#     arcSize=12;\
#     html=0;\
#     fillOpacity=100;"}
# identity: identity
# parent: parent
# namespace: csvimport-
# connect: { "from": "object", "to": "identity", "sourcelabel": "%predicate%", "style": "fontSize=14;"}
##
identity,type,subject,predicate,object,parent
1,AnonContainer,,,,
2,Node,<s>,<p>,3,
3,Node,<o>,,,1
  1. -> There is no container
  2. Repeat step two
  3. There is a container

Expected behavior Import should work

Screenshots If applicable, add screenshots to help explain your problem.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 21.6.9 and 22.1.21

Desktop (please complete the following information):

  • OS: [Linux]
  • Browser [Firefox]
  • Browser Version [121]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Additional context Add any other context about the problem here.

GordianDziwis avatar Jan 21 '24 07:01 GordianDziwis