-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add naming suggestions to use when creating new filters
- Loading branch information
1 parent
ccf780f
commit d3c18bc
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ References | |
real-life-use-cases | ||
architecture-subdomains | ||
documenting-filters-classes | ||
naming-suggestions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Naming Suggestions for Open edX Filters | ||
####################################### | ||
|
||
When naming a new filter and contributing back to this repository, consider the following suggestions: | ||
|
||
- Use a name that is descriptive of the filter's purpose. For example, the filter associated with the course enrollment process is named ``CourseEnrollmentStarted`` because it is triggered when a course enrollment starts. | ||
- Use a name that is unique within the framework. | ||
- Match the name of the filter to its ``filter_type``. For example, if the ``filter_type`` is a ``org.openedx.learning.course.enrollment.started.v1`` filter, the name of the filter should be ``CourseEnrollmentStarted``. You can use the ``filter_type`` to determine the name of the filter. See :doc:`../decisions/0004-filters-naming-and-versioning` for more information. | ||
- Avoid using ``Filter`` in the name of the filter. It is implied that the class is a filter, so there is no need to include it in the name. | ||
- Try reviewing the names of :doc:`existing filters <../reference/filters>` to get an idea of how to name your filter. |