mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
dev: add anonymous telemetry field in instance
This commit is contained in:
parent
84a62890a4
commit
787af3d4ac
@ -1,14 +1,10 @@
|
|||||||
# Module imports
|
# Module imports
|
||||||
|
from plane.app.serializers import BaseSerializer, UserAdminLiteSerializer
|
||||||
from plane.license.models import Instance, InstanceAdmin, InstanceConfiguration
|
from plane.license.models import Instance, InstanceAdmin, InstanceConfiguration
|
||||||
from plane.app.serializers import BaseSerializer
|
|
||||||
from plane.app.serializers import UserAdminLiteSerializer
|
|
||||||
from plane.license.utils.encryption import decrypt_data
|
from plane.license.utils.encryption import decrypt_data
|
||||||
|
|
||||||
|
|
||||||
class InstanceSerializer(BaseSerializer):
|
class InstanceSerializer(BaseSerializer):
|
||||||
primary_owner_details = UserAdminLiteSerializer(
|
|
||||||
source="primary_owner", read_only=True
|
|
||||||
)
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Instance
|
model = Instance
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.10 on 2024-03-11 15:03
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('license', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='instance',
|
||||||
|
name='is_telemetry_anonymous',
|
||||||
|
field=models.BooleanField(default=False),
|
||||||
|
),
|
||||||
|
]
|
@ -1,6 +1,6 @@
|
|||||||
# Django imports
|
# Django imports
|
||||||
from django.db import models
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
# Module imports
|
# Module imports
|
||||||
from plane.db.models import BaseModel
|
from plane.db.models import BaseModel
|
||||||
@ -21,6 +21,7 @@ class Instance(BaseModel):
|
|||||||
namespace = models.CharField(max_length=50, blank=True, null=True)
|
namespace = models.CharField(max_length=50, blank=True, null=True)
|
||||||
# telemetry and support
|
# telemetry and support
|
||||||
is_telemetry_enabled = models.BooleanField(default=True)
|
is_telemetry_enabled = models.BooleanField(default=True)
|
||||||
|
is_telemetry_anonymous = models.BooleanField(default=False)
|
||||||
is_support_required = models.BooleanField(default=True)
|
is_support_required = models.BooleanField(default=True)
|
||||||
# is setup done
|
# is setup done
|
||||||
is_setup_done = models.BooleanField(default=False)
|
is_setup_done = models.BooleanField(default=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user