Skip to content

Add cross module reverse relation test#2090

Closed
migeed-z wants to merge 4 commits intofacebook:mainfrom
migeed-z:export-D90518264
Closed

Add cross module reverse relation test#2090
migeed-z wants to merge 4 commits intofacebook:mainfrom
migeed-z:export-D90518264

Conversation

@migeed-z
Copy link
Contributor

Summary:
We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules. It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264

Copy link
Contributor

@stroxler stroxler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@github-actions

This comment has been minimized.

migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
@meta-codesync
Copy link

meta-codesync bot commented Jan 13, 2026

@migeed-z has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90518264.

@github-actions

This comment has been minimized.

…rd) (facebook#2087)

Summary:

Here, we test the related_name keyword which allows us to customize the reverse relation

Reviewed By: aleivag

Differential Revision: D90517278
Summary:

We can use the "+" symbol to avoid creating a reverse relation. This is important to test so we can make sure we are avoiding creating that field if it is not needed

Reviewed By: aleivag, yangdanny97

Differential Revision: D90517596
…book#2089)

Summary: Pull Request resolved: facebook#2089

Reviewed By: yangdanny97

Differential Revision: D90517772
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
@github-actions
Copy link

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@migeed-z migeed-z closed this Jan 13, 2026
migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
migeed-z added a commit to migeed-z/pyrefly that referenced this pull request Jan 13, 2026
Summary:

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264
meta-codesync bot pushed a commit that referenced this pull request Jan 13, 2026
Summary:
Pull Request resolved: #2090

We are documenting this for coverage, but this will not be covered by the initial implementation.

I do believe that this is an important case to consider though. I would expect a lot of the reverse relations would be spread across multiple modules.  It's good that we can support them per module, but a complete implementation would support cross module as well.

Reviewed By: stroxler

Differential Revision: D90518264

fbshipit-source-id: 474a0a22c033f2a00ed11a830028825c4dc4d59c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants