Skip to content

fix: make edit link use static_asset_path in xmodule_modifiers.py - #814

Merged
ormsbee merged 5 commits into
masterfrom
bugfix/ichuang/make-edit-link-use-static-asset-path
Dec 10, 2013
Merged

fix: make edit link use static_asset_path in xmodule_modifiers.py#814
ormsbee merged 5 commits into
masterfrom
bugfix/ichuang/make-edit-link-use-static-asset-path

Conversation

@ichuang

@ichuang ichuang commented Aug 28, 2013

Copy link
Copy Markdown
Contributor

The "edit" link in the LMS is used by course authors working with the "github+mongoLMS" workflow. This edit link is meant to go to the specific github page where the source XML is stored.

In the old setup where XML files were loaded from a data directory, the edit link was constructed using the path for that directory.

In the new setup, the proper directory to use is determined by module.lms.static_asset_path.

This PR fixes the edit link to use the proper directory path.

[ A future addition would be to make the edit link go to Studio, for courses using the Studio workflow ]

@chrisndodge

Copy link
Copy Markdown
Contributor

Hi Ike, thanks for the contribution. I'm not clear on the github edit workflow - plus I'm out this week to spend time to learn this. So even though this looks like a trivial change, I'm wondering if someone else could take a quick look. @ormsbee sorry to tag you again, but you might have a good sense of this one line change....

…ang/make-edit-link-use-static-asset-path

Conflicts:
	common/djangoapps/xmodule_modifiers.py
@ichuang

ichuang commented Oct 8, 2013

Copy link
Copy Markdown
Contributor Author

updated. This is a one-line change...

@chrisndodge

Copy link
Copy Markdown
Contributor

Thx. I'll give this a spin tomorrow.

@chrisndodge

Copy link
Copy Markdown
Contributor

@cpennington is 'module.lms.static_asset_path' still valid? We got rid of those namespaces right?

@cpennington

Copy link
Copy Markdown
Contributor

Yeah, should just be module.static_asset_path, now.

@ichuang

ichuang commented Oct 16, 2013

Copy link
Copy Markdown
Contributor Author

hmm. Actually, block.static_asset_path now, right?

@chrisndodge

Copy link
Copy Markdown
Contributor

Hmmm. Build is reported as failing. I'm having trouble connecting to Jenkins from home. I'll check what the failure is tomorrow.

@ichuang

ichuang commented Oct 17, 2013

Copy link
Copy Markdown
Contributor Author

probably because of all the recent changes, eg video captions tests. rebased.

@chrisndodge

Copy link
Copy Markdown
Contributor

@ichuang OK build is passing after rebase. Ike, can you manually verify the change? It'll take me while to get a manual test pass that exercises the block.static_asset_path change.

Thx.

@ormsbee

ormsbee commented Dec 10, 2013

Copy link
Copy Markdown
Contributor

👍

ormsbee pushed a commit that referenced this pull request Dec 10, 2013
…atic-asset-path

fix: make edit link use static_asset_path in xmodule_modifiers.py
@ormsbee
ormsbee merged commit d5bff2e into master Dec 10, 2013
@jzoldak
jzoldak deleted the bugfix/ichuang/make-edit-link-use-static-asset-path branch May 5, 2014 14:53
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Jun 3, 2016
…ration_phase3

Add specific aggregation function for ga_operation tools openedx#617
mtyaka referenced this pull request in open-craft/openedx-platform Jul 17, 2017
andrey-canon pushed a commit to eduNEXT/edx-platform that referenced this pull request Jun 29, 2018
…olled_students_report

Restricted enrolled students reports GDPR
kluo pushed a commit to kluo/edx-platform that referenced this pull request Aug 17, 2018
* sm/fix-activation-link:
  Add port to activation link to keep it from failing on devstack.
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants