-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(prop-defs): add hidden option to property definitions #29085
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7e0849a
add hidden field to prop defs
raquelmsmith 0d5f776
allow hiding of core props and show in popover
raquelmsmith 96e3063
add exclude_hidden to api serializer
raquelmsmith b002853
Merge branch 'master' into feat/hide-prop-defs
raquelmsmith 4c1a568
add migration files
raquelmsmith 08271a1
standard -> visible
raquelmsmith 8051106
address PR feedback
raquelmsmith b0182a0
fix tests
raquelmsmith df7d08a
Merge branch 'master' into feat/hide-prop-defs
raquelmsmith 47fdd9e
pr feedback
raquelmsmith 63268e3
hide item from infinite list if marked hidden
raquelmsmith 2f46373
use verified icon
raquelmsmith 12f860c
show verified info in the infinite list directly
raquelmsmith eecb4cd
posthog props are inherently verified
raquelmsmith 916cc42
Merge branch 'feat/hide-prop-defs' of https://github.com/PostHog/post…
raquelmsmith 2aba5ff
fix type issue
raquelmsmith 72689ab
allow hiding of events too
raquelmsmith 5b16232
strings use event or property
raquelmsmith e66be82
reup migrations
raquelmsmith 87ec065
test event definition api
raquelmsmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
ee/migrations/0022_enterpriseeventdefinition_hidden_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 4.2.18 on 2025-02-27 19:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("ee", "0021_conversation_status"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="enterpriseeventdefinition", | ||
name="hidden", | ||
field=models.BooleanField(blank=True, default=False, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="enterprisepropertydefinition", | ||
name="hidden", | ||
field=models.BooleanField(blank=True, default=False, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0021_conversation_status | ||
0022_enterpriseeventdefinition_hidden_and_more |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Why is this logic duplicated here?
validate
should be called beforeupdate
so if it was all invalidate
then should be covered?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.
I don't know 🙈
@Twixes how are the multiple API endpoints used - there is one for ee and one for non-ee. My ee tests didn't pass without the ee api changes so I just copied them over...