Add a LocalSite-enabled feature checker
Review Request #8472 — Created Oct. 17, 2016 and submitted
The
LocalSiteFeatureChecker
allows features to be enabled or disabled
at theLocalSite
level. Features not configured on a LocalSite will
fall back to the global configuration (first site configuration, then
Django settings).Additionally, the status update work has been reworked to provide the
necessary information (aLocalSite
or aHttpRequest
) to use the new
feature checker.This feature checker is now the default for Review Board.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
Col: 1 W391 blank line at end of file |
reviewbot | |
Col: 76 W291 trailing whitespace |
reviewbot | |
Col: 1 W391 blank line at end of file |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
"feature" |
chipx86 | |
Let's call this RBFeatureChecker. The reason being that this isn't specific to local sites. This should also check features specific … |
chipx86 | |
"Feature checker" |
chipx86 | |
Too many "setting"s. |
chipx86 | |
reviewboard.site.models (not "sites"). |
chipx86 | |
**kwargs |
chipx86 | |
Can you move this into the try? That way it will do the right thing if self.EXTRA_DATA_KEY doesn't exist in … |
david | |
Although the __init__ method doesn't do anything too offensive, we should still gate it off like it was before. |
david | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot | |
'django_reset' imported but unused |
reviewbot | |
'from settings_local import *' used; unable to detect undefined names |
reviewbot |
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/settings.py reviewboard/features/checkers.py reviewboard/reviews/detail.py reviewboard/site/models.py reviewboard/site/evolutions/__init__.py reviewboard/site/evolutions/localsite_extra_data.py reviewboard/features/tests.py Ignored Files: reviewboard/features/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/settings.py reviewboard/features/checkers.py reviewboard/reviews/detail.py reviewboard/site/models.py reviewboard/site/evolutions/__init__.py reviewboard/site/evolutions/localsite_extra_data.py reviewboard/features/tests.py Ignored Files: reviewboard/features/__init__.py
-
-
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/settings.py reviewboard/features/checkers.py reviewboard/reviews/detail.py reviewboard/site/models.py reviewboard/site/evolutions/__init__.py reviewboard/site/evolutions/localsite_extra_data.py reviewboard/features/tests.py Ignored Files: reviewboard/features/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/settings.py reviewboard/features/checkers.py reviewboard/reviews/detail.py reviewboard/site/models.py reviewboard/site/evolutions/__init__.py reviewboard/site/evolutions/localsite_extra_data.py reviewboard/features/tests.py Ignored Files: reviewboard/features/__init__.py
-
-
-
Tool: Pyflakes Processed Files: reviewboard/reviews/views.py reviewboard/settings.py reviewboard/features/checkers.py reviewboard/reviews/detail.py reviewboard/site/models.py reviewboard/site/evolutions/__init__.py reviewboard/site/evolutions/localsite_extra_data.py reviewboard/features/tests.py Ignored Files: reviewboard/features/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/settings.py reviewboard/features/checkers.py reviewboard/reviews/detail.py reviewboard/site/models.py reviewboard/site/evolutions/__init__.py reviewboard/site/evolutions/localsite_extra_data.py reviewboard/features/tests.py Ignored Files: reviewboard/features/__init__.py
-
-