avniproject / avniproject/avni-server

Automate Individual Relationships if there is person type subject

Open
#976 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
22
Forks
48
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
when we create a Person type SubjectType , the individual relationships and the relationship type should be automatically created if not already present.

[individualRelation.json](https://github.com/user-attachments/files/26341337/individualRelation.json)
[relationshipType.json](https://github.com/user-attachments/files/26341338/relationshipType.json)

**To Reproduce**
Steps to reproduce the behavior:
1. Go to subject type
2. Click on add new subject type
3. Select the type as person and add a new person
4. The relationship type , individual relationships , will now be visible

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the subject-type flow described in the issue: create a new subject type with type Person and observe the relationship type and individual relationships. Trace the backend path that handles subject-type creation, then verify that the expected relationship records are created when they are absent, using the attached JSON files as reference.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.