1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-10 15:47:32 +00:00

Merge branch 'remove-dashboards-feature-flag' into 'develop'

Remove dashboard feature flag

See merge request 
This commit is contained in:
Petr Stribny 2025-03-13 09:43:32 +00:00
commit f870926221
7 changed files with 96 additions and 104 deletions
backend/src/baserow
contrib/dashboard
core
changelog/entries/unreleased/feature
enterprise
backend/src/baserow_enterprise
web-frontend/modules/baserow_enterprise
web-frontend/modules
core/plugins
dashboard

View file

@ -1,7 +1,5 @@
from django.apps import AppConfig
from baserow.core.feature_flags import FF_DASHBOARDS, feature_flag_is_enabled
class DashboardConfig(AppConfig):
name = "baserow.contrib.dashboard"
@ -18,7 +16,6 @@ class DashboardConfig(AppConfig):
from .application_types import DashboardApplicationType
if feature_flag_is_enabled(FF_DASHBOARDS):
application_type_registry.register(DashboardApplicationType())
from baserow.contrib.dashboard.object_scopes import DashboardObjectScopeType
@ -69,9 +66,7 @@ class DashboardConfig(AppConfig):
operation_type_registry.register(ReadDashboardDataSourceOperationType())
operation_type_registry.register(DispatchDashboardDataSourceOperationType())
from baserow.contrib.dashboard.widgets.registries import (
widget_type_registry,
)
from baserow.contrib.dashboard.widgets.registries import widget_type_registry
from baserow.contrib.dashboard.widgets.widget_types import SummaryWidgetType
widget_type_registry.register(SummaryWidgetType())

View file

@ -2,7 +2,6 @@ from django.conf import settings
from baserow.core.exceptions import FeatureDisabledException
FF_DASHBOARDS = "dashboards"
FF_ENABLE_ALL = "*"

View file

@ -0,0 +1,8 @@
{
"type": "feature",
"message": "Introduce dashboards with summary and chart widgets",
"domain": "dashboard",
"issue_number": 2206,
"bullet_points": [],
"created_at": "2025-03-13"
}

View file

@ -3,8 +3,6 @@ from django.db.models.signals import post_migrate
from tqdm import tqdm
from baserow.core.feature_flags import FF_DASHBOARDS, feature_flag_is_enabled
class BaserowEnterpriseConfig(AppConfig):
name = "baserow_enterprise"
@ -263,7 +261,6 @@ class BaserowEnterpriseConfig(AppConfig):
LocalBaserowGroupedAggregateRowsUserServiceType,
)
if feature_flag_is_enabled(FF_DASHBOARDS):
service_type_registry.register(
LocalBaserowGroupedAggregateRowsUserServiceType()
)

View file

@ -85,7 +85,6 @@ import {
PhoneNumberFieldType,
AutonumberFieldType,
} from '@baserow/modules/database/fieldTypes'
import { FF_DASHBOARDS } from '@baserow/modules/core/plugins/featureFlags'
export default (context) => {
const { app, isDev, store } = context
@ -302,11 +301,9 @@ export default (context) => {
new PeriodicIntervalFieldsConfigureDataSyncType(context)
)
if (app.$featureFlagIsEnabled(FF_DASHBOARDS)) {
app.$registry.register('dashboardWidget', new ChartWidgetType(context))
app.$registry.register(
'chartFieldFormatting',
new SingleSelectFormattingType(context)
)
}
}

View file

@ -1,5 +1,4 @@
const FF_ENABLE_ALL = '*'
export const FF_DASHBOARDS = 'dashboards'
/**
* A comma separated list of feature flags used to enable in-progress or not ready

View file

@ -11,7 +11,6 @@ import { registerRealtimeEvents } from '@baserow/modules/dashboard/realtime'
import { DashboardApplicationType } from '@baserow/modules/dashboard/applicationTypes'
import { SummaryWidgetType } from '@baserow/modules/dashboard/widgetTypes'
import dashboardApplicationStore from '@baserow/modules/dashboard/store/dashboardApplication'
import { FF_DASHBOARDS } from '@baserow/modules/core/plugins/featureFlags'
export default (context) => {
const { app, isDev, store } = context
@ -37,8 +36,6 @@ export default (context) => {
dashboardApplicationStore
)
if (app.$featureFlagIsEnabled(FF_DASHBOARDS)) {
app.$registry.register('application', new DashboardApplicationType(context))
app.$registry.register('dashboardWidget', new SummaryWidgetType(context))
}
}