brickstore icon indicating copy to clipboard operation
brickstore copied to clipboard

Import Brick Owl XML backup

Open jbcpollak opened this issue 3 years ago • 10 comments

Can you import a BrickOwl XML backup file, like brickowl_inventory-example.zip?

When I try, I get the error:

Could not parse the XML data.

Parse error: expected root node INVENTORY, but got inventory

jbcpollak avatar Mar 16 '21 18:03 jbcpollak

a BrickStore XML

... a Brick Owl?

Yes, I know, all those Brick Something are confusing :) PS: maybe you could upload any Owl file so those who aren't using Owl could see?

paramecie avatar Mar 16 '21 19:03 paramecie

🤦 sorry, yes, typo fixed, and file uploaded. I also hadn't looked before but now I see that one of the tags in the file is explicitly brickowl_item_id, so maybe not something that was planned, or maybe its an entirely custom schema.

BTW this all came up because I was trying to do a manual bi-directional sync between BrickStore and BrickOwl. You can't set a lot id in BrickStore as far as I can tell, so I imported the brickstore file into BrickOwl, then downloaded the above XML file and was hoping to import it into BrickStore, to keep everything in sync

jbcpollak avatar Mar 16 '21 20:03 jbcpollak

Yes, terminology is different, example "lot" in Owl which is an "item" in BS, or "LotID" in BS and "lot_id" in Owl...

I didn't check everything but it seems not really a problem to import with some conversion. We'll see what Robert can do?

Until then, you could use Notepad++ and set a macro replacement for those tokens, but it's some work to be done ;-)

paramecie avatar Mar 16 '21 20:03 paramecie

I didn't check everything but it seems not really a problem to import with some conversion. We'll see what Robert can do?

In theory - yes. In practice I'd like to see a XML schema for this format first to eliminate any guess work.

rgriebl avatar Mar 16 '21 23:03 rgriebl

I didn't check everything but it seems not really a problem to import with some conversion. We'll see what Robert can do?

In theory - yes. In practice I'd like to see a XML schema for this format first to eliminate any guess work.

Not a XML schema, i couldn't find any, but here is the API docs, on the Store Inventory tab there is a description of each field: https://www.brickowl.com/api_docs

ZZJHONS avatar Mar 17 '21 00:03 ZZJHONS

@rgriebl well, the bricksync source is open source if that helps at all.

cwmcd avatar May 11 '21 20:05 cwmcd

I had the "pleasure" of looking at the bricksync source to fix #51 and I even fixed the bug right in bricksync in the end. But this code base is a not-invented-here-syndrome nightmare. There's no way to extract any kind of usable code. I'm not using and not planning on using BrickOwl personally right now (neither as buyer or seller), so don't expect to see an implementation coming from my side any time soon.

rgriebl avatar May 12 '21 14:05 rgriebl

fixed a bug right in bricksync? should i update bricksync or has the fix just been 'submitted' as an issue on the github?

cwmcd avatar May 12 '21 17:05 cwmcd

See #345

rgriebl avatar May 12 '21 18:05 rgriebl

@rgriebl nice, ty

cwmcd avatar May 12 '21 18:05 cwmcd