Skip to content

Commit f1b5448

Browse files
authored
Merge pull request #46 from openedx/feanil/configurable_branch
feanil/configurable branch
2 parents a9504cd + 28c0775 commit f1b5448

File tree

5 files changed

+24
-43
lines changed

5 files changed

+24
-43
lines changed

plugins/tutor-contrib-ltistore/tutor_ltistore/patches/openedx-cms-common-settings

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Add the lti store filter to the filter list, creating the configuration if it doesn't
3+
# exist but updating it if it does exist.
4+
_filter_name = 'org.openedx.xblock.lti_consumer.configuration.listed.v1'
5+
_step_name = 'lti_store.pipelines.GetLtiConfigurations'
6+
7+
try:
8+
not OPEN_EDX_FILTERS_CONFIG
9+
except NameError: # OPEN_EDX_FILTERS_CONFIG is not defined
10+
OPEN_EDX_FILTERS_CONFIG = {}
11+
12+
if not OPEN_EDX_FILTERS_CONFIG.get(_filter_name):
13+
OPEN_EDX_FILTERS_CONFIG[_filter_name] = {
14+
"fail_silently": False,
15+
"pipeline": [],
16+
}
17+
OPEN_EDX_FILTERS_CONFIG[_filter_name]["pipeline"].append(_step_name)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared \
2-
pip install git+https://github.com/feanil/openedx-ltistore.git@feanil/lti1p3_fixes
2+
pip install {{ LTISTORE_PIP_INSTALL }}

plugins/tutor-contrib-ltistore/tutor_ltistore/patches/openedx-lms-common-settings

Lines changed: 0 additions & 21 deletions
This file was deleted.

plugins/tutor-contrib-ltistore/tutor_ltistore/plugin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
# Each new setting is a pair: (setting_name, default_value).
1818
# Prefix your setting names with 'LTISTORE_'.
1919
("LTISTORE_VERSION", __version__),
20+
# It's useful to change this to git sources during development
21+
# so we're making this a config value you can change.
22+
(
23+
"LTISTORE_PIP_INSTALL",
24+
"git+https://github.com/feanil/openedx-ltistore.git@feanil/minimal_lti1p3_fixes",
25+
),
2026
]
2127
)
2228

0 commit comments

Comments
 (0)