-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Closes: #9047 - Add Provider Accounts #12057
Conversation
Hey @DanSheps, thanks for tackling this! I've only given it a quick skim so far, but I have some concerns about the proposed modification to the data model. In its current form, the PR would insert the ProviderAccount model between Circuit and Provider, such that the current relationship of
becomes
My understanding of the FR was that it would introduce a new model and relationship in parallel to what already exists, with Circuit and ProviderAccount each maintaining a foreign key relationship to Provider. (Please excuse the ASCII art.)
IMO this is preferable to the linear implementation, for a few reasons.
AFAICT, the only downside to the parallel approach is ensuring that a Circuit and its assigned ProviderAccount (if any) both point to the same Provider, but this should be fairly easy to enforce. What do you think? (FWIW I don't believe this change would require too much modification to the PR, and I'd be happy to assist.) |
I just tested an here are my 2 cents on what @jeremystretch mentioned. Wrote down my thoughts, but TLDR I think I agree with the points made specifically for 3 & 4.
Whatever way gets decided on here is my feedback on the current implementation:
Thanks for the hard work on the PR! |
I don't think we do this anywhere for OneToMany relationships (think interfaces) because the potential query size would be huge and you can't paginate within a JSON response. I might be wrong. |
Closes: #9047 - Add Provider Accounts