Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
221
Issues
221
List
Boards
Labels
Service Desk
Milestones
Merge Requests
36
Merge Requests
36
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
645d13b1
Commit
645d13b1
authored
42 minutes ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow specific flags, and false values
parent
1554734d
fix/e2e-tests-staging
1 merge request
!337
[Sprint/NuancedNumbat](feat): Enable feature flags when staging cookie set. #857
Pipeline
#83886395
failed with stages
in 4 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Manager.php
Core/Features/Manager.php
+3
-2
No files found.
Core/Features/Manager.php
View file @
645d13b1
...
...
@@ -49,8 +49,9 @@ class Manager
{
$features
=
$this
->
config
->
get
(
'features'
)
?:
[];
if
(
isset
(
$_COOKIE
[
'staging'
]))
{
return
true
;
$featureOverrides
??
json_decode
(
base64_decode
(
$_COOKIE
[
'staging-features'
]),
true
);
if
(
$featureOverrides
[
$feature
])
{
return
$featureOverrides
[
$feature
];
}
if
(
!
isset
(
$features
[
$feature
]))
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment