atomicdata-dev/atomic-server

Importing template not working - order

joepio opened this issue · 0 comments

joepio commented

store.import takes a JSON-AD string that can have multiplelocal-id items. The current import / parse implementation is order dependent, because sometimes a resource can refer to another resource that is not created yet:

  • If a property is used before it's defined
  • If a parent is used before it's defined

@Polleps implemented sorting in the parser to prioritize properties, which solves some cases, but there still are failure cases, e.g. when importing the new template (#959).