Skip to content

Commit 0dd9f8f

Browse files
authored
fix: disabling autoapi (#35939)
1 parent 0bd0e6f commit 0dd9f8f

File tree

2 files changed

+149
-21
lines changed

2 files changed

+149
-21
lines changed

docs/conf.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,21 @@
6767
'sphinx_design',
6868
'code_annotations.contrib.sphinx.extensions.featuretoggles',
6969
'code_annotations.contrib.sphinx.extensions.settings',
70-
'autoapi.extension',
70+
# 'autoapi.extension', # Temporarily disabled
7171
]
7272

73-
autoapi_type = 'python'
74-
autoapi_dirs = ['../lms', '../openedx']
75-
76-
autoapi_ignore = [
77-
'*/migrations/*',
78-
'*/tests/*',
79-
'*.pyc',
80-
'__init__.py',
81-
'**/xblock_serializer/data.py',
82-
]
73+
# Temporarily disabling autoapi_dirs and the AutoAPI extension due to performance issues.
74+
# This will unblock ReadTheDocs builds and will be revisited for optimization.
75+
# autoapi_type = 'python'
76+
# autoapi_dirs = ['../lms/djangoapps', '../openedx/core/djangoapps', "../openedx/features"]
77+
#
78+
# autoapi_ignore = [
79+
# '*/migrations/*',
80+
# '*/tests/*',
81+
# '*.pyc',
82+
# '__init__.py',
83+
# '**/xblock_serializer/data.py',
84+
# ]
8385

8486
# Rediraffe related settings.
8587
rediraffe_redirects = "redirects.txt"
@@ -285,7 +287,7 @@
285287

286288
# Example configuration for intersphinx: refer to the Python standard library.
287289
intersphinx_mapping = {
288-
'django': ('https://docs.djangoproject.com/en/1.11/', 'https://docs.djangoproject.com/en/1.11/_objects/'),
290+
'django': ('https://docs.djangoproject.com/en/4.2/', 'https://docs.djangoproject.com/en/4.2/_objects/'),
289291
}
290292

291293
# Start building a map of the directories relative to the repository root to

docs/lms-openapi.yaml

Lines changed: 135 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5847,7 +5847,7 @@ paths:
58475847
operationId: grades_v1_submission_history_read
58485848
description: |-
58495849
Get submission history details. This submission history is related to only
5850-
ProblemBlock and it doesn't support LibraryContentBlock or ContentLibraries
5850+
ProblemBlock and it doesn't support LegacyLibraryContentBlock or ContentLibraries
58515851
as of now.
58525852
58535853
**Usecases**:
@@ -7047,6 +7047,25 @@ paths:
70477047
in: path
70487048
required: true
70497049
type: string
7050+
/mobile/{api_version}/users/{username}/enrollments_status/:
7051+
get:
7052+
operationId: mobile_users_enrollments_status_list
7053+
description: Gets user's enrollments status.
7054+
parameters: []
7055+
responses:
7056+
'200':
7057+
description: ''
7058+
tags:
7059+
- mobile
7060+
parameters:
7061+
- name: api_version
7062+
in: path
7063+
required: true
7064+
type: string
7065+
- name: username
7066+
in: path
7067+
required: true
7068+
type: string
70507069
/notifications/:
70517070
get:
70527071
operationId: notifications_list
@@ -9868,7 +9887,94 @@ paths:
98689887
required: true
98699888
type: string
98709889
pattern: ^[a-zA-Z0-9\-_]*$
9871-
/xblock/v2/xblocks/{usage_key_str}/:
9890+
/xblock/v2/xblocks/{usage_key}/:
9891+
get:
9892+
operationId: xblock_v2_xblocks_read
9893+
summary: Get metadata about the specified block.
9894+
description: |-
9895+
Accepts the following query parameters:
9896+
9897+
* "include": a comma-separated list of keys to include.
9898+
Valid keys are "index_dictionary" and "student_view_data".
9899+
parameters: []
9900+
responses:
9901+
'200':
9902+
description: ''
9903+
tags:
9904+
- xblock
9905+
parameters:
9906+
- name: usage_key
9907+
in: path
9908+
required: true
9909+
type: string
9910+
/xblock/v2/xblocks/{usage_key}/fields/:
9911+
get:
9912+
operationId: xblock_v2_xblocks_fields_list
9913+
description: retrieves the xblock, returning display_name, data, and metadata
9914+
parameters: []
9915+
responses:
9916+
'200':
9917+
description: ''
9918+
tags:
9919+
- xblock
9920+
post:
9921+
operationId: xblock_v2_xblocks_fields_create
9922+
description: edits the xblock, saving changes to data and metadata only (display_name
9923+
included in metadata)
9924+
parameters: []
9925+
responses:
9926+
'201':
9927+
description: ''
9928+
tags:
9929+
- xblock
9930+
parameters:
9931+
- name: usage_key
9932+
in: path
9933+
required: true
9934+
type: string
9935+
/xblock/v2/xblocks/{usage_key}/handler_url/{handler_name}/:
9936+
get:
9937+
operationId: xblock_v2_xblocks_handler_url_read
9938+
summary: |-
9939+
Get an absolute URL which can be used (without any authentication) to call
9940+
the given XBlock handler.
9941+
description: The URL will expire but is guaranteed to be valid for a minimum
9942+
of 2 days.
9943+
parameters: []
9944+
responses:
9945+
'200':
9946+
description: ''
9947+
tags:
9948+
- xblock
9949+
parameters:
9950+
- name: usage_key
9951+
in: path
9952+
required: true
9953+
type: string
9954+
- name: handler_name
9955+
in: path
9956+
required: true
9957+
type: string
9958+
/xblock/v2/xblocks/{usage_key}/view/{view_name}/:
9959+
get:
9960+
operationId: xblock_v2_xblocks_view_read
9961+
description: Get the HTML, JS, and CSS needed to render the given XBlock.
9962+
parameters: []
9963+
responses:
9964+
'200':
9965+
description: ''
9966+
tags:
9967+
- xblock
9968+
parameters:
9969+
- name: usage_key
9970+
in: path
9971+
required: true
9972+
type: string
9973+
- name: view_name
9974+
in: path
9975+
required: true
9976+
type: string
9977+
/xblock/v2/xblocks/{usage_key}@{version}/:
98729978
get:
98739979
operationId: xblock_v2_xblocks_read
98749980
summary: Get metadata about the specified block.
@@ -9884,11 +9990,15 @@ paths:
98849990
tags:
98859991
- xblock
98869992
parameters:
9887-
- name: usage_key_str
9993+
- name: usage_key
98889994
in: path
98899995
required: true
98909996
type: string
9891-
/xblock/v2/xblocks/{usage_key_str}/fields/:
9997+
- name: version
9998+
in: path
9999+
required: true
10000+
type: string
10001+
/xblock/v2/xblocks/{usage_key}@{version}/fields/:
989210002
get:
989310003
operationId: xblock_v2_xblocks_fields_list
989410004
description: retrieves the xblock, returning display_name, data, and metadata
@@ -9909,11 +10019,15 @@ paths:
990910019
tags:
991010020
- xblock
991110021
parameters:
9912-
- name: usage_key_str
10022+
- name: usage_key
991310023
in: path
991410024
required: true
991510025
type: string
9916-
/xblock/v2/xblocks/{usage_key_str}/handler_url/{handler_name}/:
10026+
- name: version
10027+
in: path
10028+
required: true
10029+
type: string
10030+
/xblock/v2/xblocks/{usage_key}@{version}/handler_url/{handler_name}/:
991710031
get:
991810032
operationId: xblock_v2_xblocks_handler_url_read
991910033
summary: |-
@@ -9928,15 +10042,19 @@ paths:
992810042
tags:
992910043
- xblock
993010044
parameters:
9931-
- name: usage_key_str
10045+
- name: usage_key
10046+
in: path
10047+
required: true
10048+
type: string
10049+
- name: version
993210050
in: path
993310051
required: true
993410052
type: string
993510053
- name: handler_name
993610054
in: path
993710055
required: true
993810056
type: string
9939-
/xblock/v2/xblocks/{usage_key_str}/view/{view_name}/:
10057+
/xblock/v2/xblocks/{usage_key}@{version}/view/{view_name}/:
994010058
get:
994110059
operationId: xblock_v2_xblocks_view_read
994210060
description: Get the HTML, JS, and CSS needed to render the given XBlock.
@@ -9947,7 +10065,11 @@ paths:
994710065
tags:
994810066
- xblock
994910067
parameters:
9950-
- name: usage_key_str
10068+
- name: usage_key
10069+
in: path
10070+
required: true
10071+
type: string
10072+
- name: version
995110073
in: path
995210074
required: true
995310075
type: string
@@ -10158,6 +10280,7 @@ definitions:
1015810280
- can_view_certificate
1015910281
- course_modes
1016010282
- is_new_discussion_sidebar_view_enabled
10283+
- has_course_author_access
1016110284
type: object
1016210285
properties:
1016310286
can_show_upgrade_sock:
@@ -10237,6 +10360,9 @@ definitions:
1023710360
is_new_discussion_sidebar_view_enabled:
1023810361
title: Is new discussion sidebar view enabled
1023910362
type: boolean
10363+
has_course_author_access:
10364+
title: Has course author access
10365+
type: boolean
1024010366
DateSummary:
1024110367
required:
1024210368
- complete

0 commit comments

Comments
 (0)