anyproto / anytype-heart

Shared library for Anytype clients

Home Page:https://anytype.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON doens't import tag values for tag relations

Shampra opened this issue · comments

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing issues and didn't find any that were similar
  • I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

The JSON import doesn’t import tags (even on an AT object that has been exported).

  • tested with custom relation “Evernote tag” and default tag relation, same problem
  • tested by deleting the tags created in the relationship or leaving them, same problem

I’m working on a converter for imports (from Evernote), but if tag import doesn’t work, I can’t 😥

Before export :
image

After export → import
(and you can see another bug : Description is back to featured relation)
image

Exported file contains

  • the 2 tag relation in featuredRelations (and not "Description")
  • each has a element selected
"details": {
     "650853df0284c80eac4eec6e": [
        "_missing_object",
        "6517e69e0284c830b000c43d"
       ],
     "featuredRelations": [
        "650853df0284c80eac4eec6e",
        "tag",
        "type"
       ],
     "tag": [
        "6517e76c0284c830b000c443"
       ],

Expected Behavior

Import must import tag values for tag relations of the object

Steps To Reproduce

  1. create an object (page), add tag in tag relation
  2. Export (JSON with all checked)
  3. Import your exported JSON
  4. No more tag…

Environment

- OS:Windows 10
- Version:0.35.2

Anything else?

No response

Any ETA?
I'm closely following this topic too, to finish the conversion tool as soon as possible.
Thanks :)

@Shampra, it should be delivered with the latest release, along with other fixes for the JSON import/export issues you reported. Please check 🙏

Doesn't seem to work 😕.

Export this with all option checked
A page with no description (relation not as featured), and a tag relation with "Temporaire" and "Test" value : 

After import in another space : 

  • Description is featured
  • Tag relation has no value

Ah, sorry!
I just saw that there are several files generated during the export; the configuration of the tags must be in one of them, I'll take a look at how it works now. By importing everything, it worked.
Except for the Description relation, it's still there, it clings stubbornly!

@Shampra, we will look into the issue with featured relations. Thanks!