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 baserow/baserow!3220
This commit is contained in:
commit
f870926221
7 changed files with 96 additions and 104 deletions
backend/src/baserow
changelog/entries/unreleased/feature
enterprise
web-frontend/modules
|
@ -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())
|
||||
|
|
|
@ -2,7 +2,6 @@ from django.conf import settings
|
|||
|
||||
from baserow.core.exceptions import FeatureDisabledException
|
||||
|
||||
FF_DASHBOARDS = "dashboards"
|
||||
FF_ENABLE_ALL = "*"
|
||||
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
|
@ -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()
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue