Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
52913d56
Unverified
Commit
52913d56
authored
3 years ago
by
Patrick Cloke
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for experimental feature flags. (#10865)
parent
724aef9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.d/10865.doc
+1
-0
1 addition, 0 deletions
changelog.d/10865.doc
docs/SUMMARY.md
+1
-0
1 addition, 0 deletions
docs/SUMMARY.md
docs/development/experimental_features.md
+37
-0
37 additions, 0 deletions
docs/development/experimental_features.md
with
39 additions
and
0 deletions
changelog.d/10865.doc
0 → 100644
+
1
−
0
View file @
52913d56
Add developer documentation about experimental configuration flags.
This diff is collapsed.
Click to expand it.
docs/SUMMARY.md
+
1
−
0
View file @
52913d56
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
-
[
Testing
](
)
-
[
Testing
](
)
-
[
OpenTracing
](
opentracing.md
)
-
[
OpenTracing
](
opentracing.md
)
-
[
Database Schemas
](
development/database_schema.md
)
-
[
Database Schemas
](
development/database_schema.md
)
-
[
Experimental features
](
development/experimental_features.md
)
-
[
Synapse Architecture
](
)
-
[
Synapse Architecture
](
)
-
[
Log Contexts
](
log_contexts.md
)
-
[
Log Contexts
](
log_contexts.md
)
-
[
Replication
](
replication.md
)
-
[
Replication
](
replication.md
)
...
...
This diff is collapsed.
Click to expand it.
docs/development/experimental_features.md
0 → 100644
+
37
−
0
View file @
52913d56
# Implementing experimental features in Synapse
It can be desirable to implement "experimental" features which are disabled by
default and must be explicitly enabled via the Synapse configuration. This is
applicable for features which:
*
Are unstable in the Matrix spec (e.g. those defined by an MSC that has not yet been merged).
*
Developers are not confident in their use by general Synapse administrators/users
(e.g. a feature is incomplete, buggy, performs poorly, or needs further testing).
Note that this only really applies to features which are expected to be desirable
to a broad audience. The
[
module infrastructure
](
../modules/index.md
)
should
instead be investigated for non-standard features.
Guarding experimental features behind configuration flags should help with some
of the following scenarios:
*
Ensure that clients do not assume that unstable features exist (failing
gracefully if they do not).
*
Unstable features do not become de-facto standards and can be removed
aggressively (since only those who have opted-in will be affected).
*
Ease finding the implementation of unstable features in Synapse (for future
removal or stabilization).
*
Ease testing a feature (or removal of feature) due to enabling/disabling without
code changes. It also becomes possible to ask for wider testing, if desired.
Experimental configuration flags should be disabled by default (requiring Synapse
administrators to explicitly opt-in), although there are situations where it makes
sense (from a product point-of-view) to enable features by default. This is
expected and not an issue.
It is not a requirement for experimental features to be behind a configuration flag,
but one should be used if unsure.
New experimental configuration flags should be added under the
`experimental`
configuration key (see the
`synapse.config.experimental`
file) and either explain
(briefly) what is being enabled, or include the MSC number.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment