stable

Clone or download

Read-only

chore: invert current feature flag

part of: story #31537 Add tags and make them updatable In this contribution, the feature flag "allow_pullrequest_v2" is replaced by a new one named "disable_pullrequest_v2". How to test: - make post-checkout --> The old feature flag has been removed from the forgeconfig table - Now go to pullrequest overview --> The new UI is displayed - Now run `tuleap config-set feature_flag_disable_pullrequest_v2 0` --> The new UI is still displayed - Now run `tuleap config-set feature_flag_disable_pullrequest_v2 1` --> The old UI is displayed - Now run `tuleap config-set feature_flag_disable_pullrequest_v2 <project_id>` --> Pullrequests of the target project will have the old UI, the others will have the new one. Change-Id: Ic9f4892f9d15669f7adc095404295e86ca3b078b

Modified Files

Name
A plugins/pullrequest/db/mysql/updates/2023/202305231537_remove_allow_pullrequest_v2_feature_flag.php +35 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Label/LabeledItemCollector.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/PullRequestPresenter.php +1 −8 Go to diff View file
A plugins/pullrequest/include/PullRequest/PullRequestV2FeatureFlag.php +46 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reference/HTMLURLBuilder.php +9 −5 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reference/ReferenceFactory.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullrequestDisplayer.php +1 −1 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +1 −1 Go to diff View file
A plugins/pullrequest/tests/unit/PullRequestV2FeatureFlagTest.php +78 −0 Go to diff View file
M plugins/pullrequest/tests/unit/Reference/HTMLURLBuilderTest.php +3 −0 Go to diff View file