Skip to content

Commit

Permalink
docs: enrich docstrings following a template with more details
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Jan 7, 2025
1 parent 45de432 commit 68f37c3
Show file tree
Hide file tree
Showing 10 changed files with 654 additions and 251 deletions.
15 changes: 12 additions & 3 deletions openedx_filters/course_authoring/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,24 @@

class LMSPageURLRequested(OpenEdxPublicFilter):
"""
Custom class used to get lms page url filters and its custom methods.
Filter used to modify the URL of the page requested by the user.
Filter Type:
org.openedx.course_authoring.lms.page.url.requested.v1
Trigger:
- Repository: openedx/edx-platform
- Path: cms/djangoapps/contentstore/asset_storage_handler.py
- Function: get_asset_json
"""

filter_type = "org.openedx.course_authoring.lms.page.url.requested.v1"

@classmethod
def run_filter(cls, url, org):
def run_filter(cls, url: str, org: str) -> tuple[str, str]:
"""
Execute a filter with the signature specified.
Process the input url and org using the configured pipeline steps to modify the URL of the page requested by the
user.
Arguments:
url (str): the URL of the page to be modified.
Expand Down
Loading

0 comments on commit 68f37c3

Please sign in to comment.