Skip to content

Commit

Permalink
BED-4934: Posture page feature flag (#902)
Browse files Browse the repository at this point in the history
* added updated_posture_page feature flag

* reformatting

* move migration to next version
  • Loading branch information
maffkipp authored Oct 16, 2024
1 parent 3c12485 commit 075b640
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions cmd/api/src/database/migration/migrations/v6.2.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
-- Copyright 2024 Specter Ops, Inc.
--
-- Licensed under the Apache License, Version 2.0
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- SPDX-License-Identifier: Apache-2.0

-- Add updated posture page feature flag
INSERT INTO feature_flags (created_at, updated_at, key, name, description, enabled, user_updatable)
VALUES (current_timestamp,
current_timestamp,
'updated_posture_page',
'Updated Posture Page',
'Enables the updated version of the posture page in the UI application',
false,
false)
ON CONFLICT DO NOTHING;
1 change: 1 addition & 0 deletions cmd/api/src/model/appcfg/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const (
FeatureDarkMode = "dark_mode"
FeatureAutoTagT0ParentObjects = "auto_tag_t0_parent_objects"
FeatureOIDCSupport = "oidc_support"
FeatureUpdatedPosturePage = "updated_posture_page"
)

// FeatureFlag defines the most basic details of what a feature flag must contain to be actionable. Feature flags should be
Expand Down

0 comments on commit 075b640

Please sign in to comment.