-
Notifications
You must be signed in to change notification settings - Fork 3.9k
migration: added webhook version, navigation related fields and allowed_rate_limit for APIToken #8339
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
Merged
Merged
migration: added webhook version, navigation related fields and allowed_rate_limit for APIToken #8339
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
64328f6
migration: added version field in webhook
sangeethailango 04ec99f
chore: add max_length
sangeethailango ab47d4c
chore: added product tour fields
NarayanBavisetti 1d9390d
chore: updated the migration file
NarayanBavisetti e76d368
chore: removed the duplicated migration file
NarayanBavisetti 56a41a8
chore: added allowed_rate_limit for api_tokens
sangeethailango 10f4418
Merge branch 'preview' of github.com:makeplane/plane into migration-w…
NarayanBavisetti 9cc3f81
chore: changed key feature tour to product tour
NarayanBavisetti 07cf029
Merge branch 'migration-webhook' of github.com:makeplane/plane into m…
NarayanBavisetti a2fcc06
chore: added is_subscribed_to_changelog field
sangeethailango 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 hidden or 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,57 @@ | ||
| # Generated by Django 4.2.26 on 2025-12-15 10:29 | ||
|
|
||
| from django.db import migrations, models | ||
| import plane.db.models.workspace | ||
|
|
||
|
|
||
| def get_default_product_tour(): | ||
| return { | ||
| "work_items": True, | ||
| "cycles": True, | ||
| "modules": True, | ||
| "intake": True, | ||
| "pages": True, | ||
| } | ||
|
|
||
|
|
||
| def populate_product_tour(apps, _schema_editor): | ||
| WorkspaceUserProperties = apps.get_model('db', 'WorkspaceUserProperties') | ||
| default_value = get_default_product_tour() | ||
| # Use bulk update for better performance | ||
| WorkspaceUserProperties.objects.all().update(product_tour=default_value) | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('db', '0112_auto_20251124_0603'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='webhook', | ||
| name='version', | ||
| field=models.CharField(default='v1', max_length=50), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='profile', | ||
| name='is_navigation_tour_completed', | ||
| field=models.BooleanField(default=False), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='workspaceuserproperties', | ||
| name='product_tour', | ||
| field=models.JSONField(default=plane.db.models.workspace.get_default_product_tour), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='apitoken', | ||
| name='allowed_rate_limit', | ||
| field=models.CharField(default='60/min', max_length=255), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='profile', | ||
| name='is_subscribed_to_changelog', | ||
| field=models.BooleanField(default=False), | ||
| ), | ||
sangeethailango marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| migrations.RunPython(populate_product_tour, reverse_code=migrations.RunPython.noop), | ||
| ] | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.