Circular relationships #1897
-
Beta Was this translation helpful? Give feedback.
Answered by
vroldanbet
May 21, 2024
Replies: 1 comment 3 replies
-
If there is a cycle in the graph, that error is expected. Foo is marked as manager of bar, and bar is marked as manager of Foo. What's not clear from the description is why can Foo see notes from Bar, and Bar see notes from Foo, from a business perspective. Is it because they share the same manager? Or is it just because you want to be able to share notes between users? Can you clarify what "see what Foo is doing" in terms of permissions in the schema? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's still not clear to me what the business requirements are. Under what conditions can a user see the same another user sees? Do they have to perform an action in the UI to share ("please share all I see with user X"), or is that defined by the hierarchy (each one of a manager's reports should be able to see each other's work)? This is fundamental because it will inform what the graph would look like.
For example, if the business requirement is "I should see everything my team-mates see", it could be solved by traversing via a relation
reports
in a manager (which is the inverse ofmanager
). It would not cause a cycle because it's not recursive (you can see everything your peers see, but…