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

Bidirectional Relationships Do Not Work[Bug]: #341

Open
4 of 7 tasks
georgewesley opened this issue Apr 12, 2024 · 1 comment
Open
4 of 7 tasks

Bidirectional Relationships Do Not Work[Bug]: #341

georgewesley opened this issue Apr 12, 2024 · 1 comment
Assignees
Labels
Bug Something is not working and will need to be fixed.

Comments

@georgewesley
Copy link

georgewesley commented Apr 12, 2024

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Bidirectional Relationships should appear in both elements that have the relationship defined.

Current behaviour

Bidirectional Relationships do not appear for some elements. So far I have seen that they do not appear when NPCs or locations are linked with scenes or sessions. They do appear for the scene or session, but not for the NPC or location. Note that this issue has been reported before (#306) but it was closed due to the update to version 4. Unfortunately the issue still persists.

Reproduction

  1. Create NPC
  2. Create Session or Scene
  3. Bidirectionally Link Session or Scene to NPC
  4. Note that it appears in Session or Scene but not with NPC

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.5.12 and 1.5.12

Plugin Version

4.1.14

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

Issue is likely in displaying the relationship. The relationship is defined because you can not create it again after the first time. It also does appear in the scene or session

@georgewesley georgewesley added the Bug Something is not working and will need to be fixed. label Apr 12, 2024
@georgewesley
Copy link
Author

georgewesley commented Apr 12, 2024

If you create the relationship from the NPC it does appears in the markdown for the NPC but does not display. Here is an example:

id: 
  type: "nonplayercharacter"
  campaign: "Test/Test.md"
data: 
  nonplayercharactertype: "supporting"
tasks: 
  - id: "66691729-5399-4282-bde0-6f323791b474"
    priority: 1
    name: "Complete Non-Player Character"
    description: "Complete Non-Player Character Xavier"
    type: "creation"
    status: "proposed"
relationships: 
  - type: "bidirectional"
    path: "Test/Sessions/Scenes/testsession.md"

[[Test/Sessions/testsession.md|]]

If you create the relationship from the scene or session it appears in the brackets as a link but not in the mark down like this:

id: 
  type: "nonplayercharacter"
  campaign: "Test/Test.md"
data: 
  nonplayercharactertype: "supporting"
tasks: 
  - id: "66691729-5399-4282-bde0-6f323791b474"
    priority: 1
    name: "Complete Non-Player Character"
    description: "Complete Non-Player Character Xavier"
    type: "creation"
    status: "proposed"
relationships: 

[[Test/Sessions/testsession.md|]]
Either way, it does not display when in read mode for the npc. It does still show up in the local and global graphs however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working and will need to be fixed.
Projects
None yet
Development

No branches or pull requests

2 participants