Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RelationTypes works but not Relations #644

Open
filefontaine opened this issue May 27, 2024 · 7 comments
Open

RelationTypes works but not Relations #644

filefontaine opened this issue May 27, 2024 · 7 comments

Comments

@filefontaine
Copy link

filefontaine commented May 27, 2024

About your Site:

  • Umbraco Version: 13.3.2
  • uSync Version: 13.2.3

I dont know if i do something wrong but In my website Usync dont save the relations for each relationsTypes.
I need it for all my custom relations.
here the config i set :

  "Sets": {
    "Default": {
      "Handlers": {
        "RelationTypeHandler": {
          "Enabled": true,
          "Settings": {
            "Exclude": "s",
            "IncludeRelations": "true"
          }
        }
      }
    }
  }

Thks in advance !

@KevinJump
Copy link
Owner

Hi,

that's odd, have the same and its 'working' for me 🤔

Its worth noting that the individual relations are not saved automatically (like other bits are) - you have to run an export from the dashboard for the individual relations to appear in the files.

Kevin

@filefontaine
Copy link
Author

filefontaine commented May 28, 2024

Hey, thanks for the quick response.
So if i understand i need to have the uSync.Complete ?
Or the individual sync is available for free version ?$

I use Usync for Migration some large Umbraco 8 to Umbraco 13 (using the usync migration first).

Its my first time using Usync and i have some difficulties using it.
Best,
Antoine

@KevinJump
Copy link
Owner

Hi Antoine,

it should work with the free tool, its just that you will have to go to the uSync dashboard, and click export for all of the relation types to be written to disk.

@filefontaine
Copy link
Author

I try with a clean export (on "everything") using the Dashboard.
But any time i try, the files is like this :

<?xml version="1.0" encoding="utf-8"?>
<RelationType Key="179176a5-0a57-4a5e-8b6b-284187b84491" Alias="contentPageToEntityFR" Level="0">
  <Info>
    <Name>ContentPageToEntityFR</Name>
    <ParentType>c66ba18e-eaf3-4cff-8a22-41b16d66a972</ParentType>
    <ChildType>c66ba18e-eaf3-4cff-8a22-41b16d66a972</ChildType>
    <Bidirectional>true</Bidirectional>
    <IsDependency>false</IsDependency>
  </Info>
</RelationType>

but i have one relation :
image
i have try to find a Relations folder but with no success

Sorry to bother you with that but i really cannot find how to get all my relations

@yratof
Copy link

yratof commented Jun 14, 2024

I can't seem to find Relations in the code — can you point it out @KevinJump

@KevinJump
Copy link
Owner

Hi,

the serialization code is here https://github.com/KevinJump/uSync/blob/v13/main/uSync.Core/Serialization/Serializers/RelationTypeSerializer.cs#L32

there is a setting it looks for "IncludeRelations" before also serializing the relations into the file here : https://github.com/KevinJump/uSync/blob/v13/main/uSync.Core/Serialization/Serializers/RelationTypeSerializer.cs#L91-L98

@filefontaine
Copy link
Author

Hi @KevinJump , i have made some test in debug mode.
And i found that in your other Nuget Usync Migration, the settings for Handlers is not used.
Do you need me to open a bug report on your other package ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants