Skip to content

Commit

Permalink
fix: disabling autoapi (#35939)
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram authored Dec 6, 2024
1 parent 0bd0e6f commit 0dd9f8f
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 21 deletions.
26 changes: 14 additions & 12 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,21 @@
'sphinx_design',
'code_annotations.contrib.sphinx.extensions.featuretoggles',
'code_annotations.contrib.sphinx.extensions.settings',
'autoapi.extension',
# 'autoapi.extension', # Temporarily disabled
]

autoapi_type = 'python'
autoapi_dirs = ['../lms', '../openedx']

autoapi_ignore = [
'*/migrations/*',
'*/tests/*',
'*.pyc',
'__init__.py',
'**/xblock_serializer/data.py',
]
# Temporarily disabling autoapi_dirs and the AutoAPI extension due to performance issues.
# This will unblock ReadTheDocs builds and will be revisited for optimization.
# autoapi_type = 'python'
# autoapi_dirs = ['../lms/djangoapps', '../openedx/core/djangoapps', "../openedx/features"]
#
# autoapi_ignore = [
# '*/migrations/*',
# '*/tests/*',
# '*.pyc',
# '__init__.py',
# '**/xblock_serializer/data.py',
# ]

# Rediraffe related settings.
rediraffe_redirects = "redirects.txt"
Expand Down Expand Up @@ -285,7 +287,7 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'django': ('https://docs.djangoproject.com/en/1.11/', 'https://docs.djangoproject.com/en/1.11/_objects/'),
'django': ('https://docs.djangoproject.com/en/4.2/', 'https://docs.djangoproject.com/en/4.2/_objects/'),
}

# Start building a map of the directories relative to the repository root to
Expand Down
144 changes: 135 additions & 9 deletions docs/lms-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5847,7 +5847,7 @@ paths:
operationId: grades_v1_submission_history_read
description: |-
Get submission history details. This submission history is related to only
ProblemBlock and it doesn't support LibraryContentBlock or ContentLibraries
ProblemBlock and it doesn't support LegacyLibraryContentBlock or ContentLibraries
as of now.
**Usecases**:
Expand Down Expand Up @@ -7047,6 +7047,25 @@ paths:
in: path
required: true
type: string
/mobile/{api_version}/users/{username}/enrollments_status/:
get:
operationId: mobile_users_enrollments_status_list
description: Gets user's enrollments status.
parameters: []
responses:
'200':
description: ''
tags:
- mobile
parameters:
- name: api_version
in: path
required: true
type: string
- name: username
in: path
required: true
type: string
/notifications/:
get:
operationId: notifications_list
Expand Down Expand Up @@ -9868,7 +9887,94 @@ paths:
required: true
type: string
pattern: ^[a-zA-Z0-9\-_]*$
/xblock/v2/xblocks/{usage_key_str}/:
/xblock/v2/xblocks/{usage_key}/:
get:
operationId: xblock_v2_xblocks_read
summary: Get metadata about the specified block.
description: |-
Accepts the following query parameters:
* "include": a comma-separated list of keys to include.
Valid keys are "index_dictionary" and "student_view_data".
parameters: []
responses:
'200':
description: ''
tags:
- xblock
parameters:
- name: usage_key
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key}/fields/:
get:
operationId: xblock_v2_xblocks_fields_list
description: retrieves the xblock, returning display_name, data, and metadata
parameters: []
responses:
'200':
description: ''
tags:
- xblock
post:
operationId: xblock_v2_xblocks_fields_create
description: edits the xblock, saving changes to data and metadata only (display_name
included in metadata)
parameters: []
responses:
'201':
description: ''
tags:
- xblock
parameters:
- name: usage_key
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key}/handler_url/{handler_name}/:
get:
operationId: xblock_v2_xblocks_handler_url_read
summary: |-
Get an absolute URL which can be used (without any authentication) to call
the given XBlock handler.
description: The URL will expire but is guaranteed to be valid for a minimum
of 2 days.
parameters: []
responses:
'200':
description: ''
tags:
- xblock
parameters:
- name: usage_key
in: path
required: true
type: string
- name: handler_name
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key}/view/{view_name}/:
get:
operationId: xblock_v2_xblocks_view_read
description: Get the HTML, JS, and CSS needed to render the given XBlock.
parameters: []
responses:
'200':
description: ''
tags:
- xblock
parameters:
- name: usage_key
in: path
required: true
type: string
- name: view_name
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key}@{version}/:
get:
operationId: xblock_v2_xblocks_read
summary: Get metadata about the specified block.
Expand All @@ -9884,11 +9990,15 @@ paths:
tags:
- xblock
parameters:
- name: usage_key_str
- name: usage_key
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key_str}/fields/:
- name: version
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key}@{version}/fields/:
get:
operationId: xblock_v2_xblocks_fields_list
description: retrieves the xblock, returning display_name, data, and metadata
Expand All @@ -9909,11 +10019,15 @@ paths:
tags:
- xblock
parameters:
- name: usage_key_str
- name: usage_key
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key_str}/handler_url/{handler_name}/:
- name: version
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key}@{version}/handler_url/{handler_name}/:
get:
operationId: xblock_v2_xblocks_handler_url_read
summary: |-
Expand All @@ -9928,15 +10042,19 @@ paths:
tags:
- xblock
parameters:
- name: usage_key_str
- name: usage_key
in: path
required: true
type: string
- name: version
in: path
required: true
type: string
- name: handler_name
in: path
required: true
type: string
/xblock/v2/xblocks/{usage_key_str}/view/{view_name}/:
/xblock/v2/xblocks/{usage_key}@{version}/view/{view_name}/:
get:
operationId: xblock_v2_xblocks_view_read
description: Get the HTML, JS, and CSS needed to render the given XBlock.
Expand All @@ -9947,7 +10065,11 @@ paths:
tags:
- xblock
parameters:
- name: usage_key_str
- name: usage_key
in: path
required: true
type: string
- name: version
in: path
required: true
type: string
Expand Down Expand Up @@ -10158,6 +10280,7 @@ definitions:
- can_view_certificate
- course_modes
- is_new_discussion_sidebar_view_enabled
- has_course_author_access
type: object
properties:
can_show_upgrade_sock:
Expand Down Expand Up @@ -10237,6 +10360,9 @@ definitions:
is_new_discussion_sidebar_view_enabled:
title: Is new discussion sidebar view enabled
type: boolean
has_course_author_access:
title: Has course author access
type: boolean
DateSummary:
required:
- complete
Expand Down

0 comments on commit 0dd9f8f

Please sign in to comment.