cortezaproject / corteza

Low-code platform
https://cortezaproject.org
Apache License 2.0
1.63k stars 370 forks source link

When I tried to import namespace exported from another env, got error "Namespace failed to import: not unique" #1839

Open reidlai opened 4 months ago

reidlai commented 4 months ago

Is there an existing issue for this?

Version of Corteza

2023.9.7

Current Behavior

When I import namespace zip file which is exported from another env, I got error "Namespace failed to import: not unique"

Expected Behavior

Successfully import namespace

Steps To Reproduce

  1. Export namespace A from demo env
  2. Check zip file downloaded completed
  3. Extract the zip file and ensure YAML file structure is consistent
  4. Make sure namespace not exist in dev env
  5. Import the zip file in dev env
  6. Got error in Console

Environment and versions

No response

Anything else?

11:47:31.919 DEBUG actionlog searched for namespaces {"timestamp": "11:47:31.919", "requestOrigin": "api/rest", "requestID": "halo-corteza-dev-0/yveyc3mTae-040378", "actorIPAddr": "10.10.0.13", "actorID": "392113051854307329", "resource": "compose:namespace", "action": "search", "severity": 6, "error": "", "description": "searched for namespaces", "policy-match": true, "meta": {"filter.limit":"100","filter.sort":"name"}} 11:47:40.703 DEBUG actionlog import initialized for {namespace} {"timestamp": "11:47:40.703", "requestOrigin": "api/rest", "requestID": "halo-corteza-dev-0/yveyc3mTae-040380", "actorIPAddr": "10.10.0.13", "actorID": "392113051854307329", "resource": "compose:namespace", "action": "importInit", "severity": 5, "error": "", "description": "import initialized for {namespace}", "policy-match": true, "meta": {"archiveFormat":".zip","namespace.ID":"393351881112813569","namespace.enabled":true,"namespace.name":"Enterprise Data Platform","namespace.slug":"data-platform"}} 11:47:51.634 DEBUG actionlog {"timestamp": "11:47:51.634", "requestOrigin": "api/rest", "requestID": "halo-corteza-dev-0/yveyc3mTae-040382", "actorIPAddr": "10.10.0.13", "actorID": "392113051854307329", "resource": "compose:namespace", "action": "importRun", "severity": 0, "error": "not unique", "description": "", "policy-match": true, "meta": {"namespace.enabled":false,"namespace.name":"Enterprise Data Platform","namespace.slug":"data-platform"}}

github-actions[bot] commented 2 months ago

Stale issue message