Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: add Relation.active, exclude inactive relations from Model.relations #1091
feat: add Relation.active, exclude inactive relations from Model.relations #1091
Changes from 8 commits
7dc4f06
9c4c793
cd8416a
56b6773
f6d856c
bdfc95e
1633f15
965f591
8d98923
ce1e108
aeda7a3
277eb4e
c3e7c9b
8dc1836
c83e5a6
699a324
3476f94
580e16d
8b38f54
42fbf72
7d8a000
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems a little strange to pull this out as a helper when it is next to all the other functions that are looking directly at ENV vars.
I suppose there is a bit of parsing and casting vs just reading the string which makes it relevant to split out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Splitting it out was actually a code review suggestion from @benhoyt 😄. I'm weakly in favour of splitting it out for the reasons you mention.
Note that we have tentative plans to refactor the env parsing (#1075) and if that goes ahead then this would presumably end up in the initialisation of that context object and no longer need this little helper.