Kristin Aoki
ce2734e907
feat: update video and asset api to include usage loactions ( #33746 )
2023-11-22 12:11:35 -05:00
Kristin Aoki
878e72024b
feat: add API endpoint for asset usage search ( #33092 )
2023-08-30 11:48:19 -04:00
Jesper Hodge
7fc32f80b8
add assets to studio content api ( #32676 )
...
The purpose of this is to expose the assets_handler endpoint as a public endpoint as part of the studio content API MVP. This allows a course author to register an oauth application in django admin and then retrieve, create and delete assets with this endpoint. You can only update the "locked" attribute for an asset.
2023-07-20 14:18:11 -04:00
Kristin Aoki
6dfd706bca
feat: add page redirect when mfe flag enabled ( #32637 )
...
Co-authored-by: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com >
2023-07-05 14:39:00 -04:00
NiedielnitsevIvan
f5484ea448
feat!: [FC-0004] Support for legacy assets with deprecated keys is removed from uploads only ( #31487 )
2023-01-19 14:19:08 -05:00
0x29a
83396ffb07
refactor: convert course_module term to course_block
2022-12-19 17:48:49 +01:00
Kristin Aoki
36439bb047
feat: add static full url to asset response
2022-08-24 09:02:04 -04:00
Jawayria
02ee9ae2cc
chore: Applied lint-amnesty on cms/djangoapps/contentstore/views
2021-12-10 19:15:29 +05:00
M. Zulqarnain
e54fb5f76e
feat: New codemods on CMS ( #28768 )
2021-10-25 12:59:54 +05:00
Awais Jibran
62c8805e3e
Refactor + Tests: Course Import Feature ( #27369 )
...
* Code Refactoring
This PR bumps code coverage by adding unit tests & clean up some code for improving code quality and maintainability.
2021-04-19 23:49:42 +05:00
Nathan Sprenkle
c97932fa99
fix: add missing protocol to web link for assets ( #27220 )
...
* fix: add missing protocol to web link for assets
* test: fix asset path test
* refactor: update asset web URL to use urljoin
2021-04-02 11:13:57 -04:00
M. Zulqarnain
41e5403f4e
BOM-2369 (D): pyupgrade on contentstore/views ( #26767 )
...
* pyupgrade on contentstore/views
* Apply suggestions from code review
Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com >
Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com >
2021-03-05 14:55:14 +05:00
usamasadiq
7bbde8f0f5
Applied pylint-amnesty
2021-02-08 13:00:22 +05:00
Kyle McCormick
151bd13666
Use full names for common.djangoapps imports; warn when using old style ( #25477 )
...
* Generate common/djangoapps import shims for LMS
* Generate common/djangoapps import shims for Studio
* Stop appending project root to sys.path
* Stop appending common/djangoapps to sys.path
* Import from common.djangoapps.course_action_state instead of course_action_state
* Import from common.djangoapps.course_modes instead of course_modes
* Import from common.djangoapps.database_fixups instead of database_fixups
* Import from common.djangoapps.edxmako instead of edxmako
* Import from common.djangoapps.entitlements instead of entitlements
* Import from common.djangoapps.pipline_mako instead of pipeline_mako
* Import from common.djangoapps.static_replace instead of static_replace
* Import from common.djangoapps.student instead of student
* Import from common.djangoapps.terrain instead of terrain
* Import from common.djangoapps.third_party_auth instead of third_party_auth
* Import from common.djangoapps.track instead of track
* Import from common.djangoapps.util instead of util
* Import from common.djangoapps.xblock_django instead of xblock_django
* Add empty common/djangoapps/__init__.py to fix pytest collection
* Fix pylint formatting violations
* Exclude import_shims/ directory tree from linting
2020-11-10 07:02:01 -05:00
Kyle McCormick
a3deb6e317
Sort imports in cms/
...
Command: `isort --recursive cms/`
2020-10-19 09:34:31 -04:00
Kyle McCormick
538dbf696b
Import CMS code using fully qualified module names
...
or, using proper the proper Python 3 relative imports
(e.g., 'from .views import x') which are standard and
unambiguous.
2020-10-19 09:34:31 -04:00
Aarif
6ee2089077
fixed warnings for wrong-import-order
2020-04-08 23:43:06 +05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Dave St.Germain
9d8db8e4ca
Convert to utf-8 before JSON decoding
2019-08-19 15:10:56 -04:00
Feanil Patel
21fd145ab9
Use relative import for content store reference.
...
The full import path was having issues in python 3 complaining that it
couldn't find the module.
2019-08-06 14:56:57 -04:00
aarif
b20eb309ff
ran python-modernize and isort on files mentioned in INCR-332
...
changes made to comply with pylint
refactored the code to comply with PEP8
further changes made to comply with quality
changes made as suggested
2019-07-22 10:02:59 +00:00
Matthew Piatetsky
7df30938c4
fix unicode strings in cms/
2019-02-04 13:01:51 -05:00
Farhanah Sheets
8dd967448f
Remove old assets page from mako template, tests, & config model references
2018-03-08 12:05:08 -05:00
Michael Roytman
3496bb9a0a
pass language to mako template
2018-02-12 15:44:20 -05:00
Jeremy Bowman
5289c7e828
PLAT-1915 Stop using deprecated BaseException.message
2018-01-31 17:22:01 -05:00
Michael Roytman
8e667d8bdf
Merge pull request #17287 from edx/mroytman/assets-api-zero-assets
...
mroytman/assets api zero assets
2018-01-23 16:16:43 -05:00
Michael Roytman
97954d48fb
add condition for when no assets are found in the database
2018-01-23 15:13:12 -05:00
Tyler Hallada
ad773dac5c
Add text_search param for searching by displayname
2018-01-22 19:05:43 -05:00
Jeremy Bowman
113e8dde61
PLAT-1885 Stop using deprecated BlockUsageLocator properties
2018-01-12 16:40:21 -05:00
Michael Roytman
d98e7d4f24
add sort direction and asset types as part of the assets JSON response
2017-12-18 19:23:49 -05:00
Eric Fischer
a830073bb2
Add waffle flag for NewAssetsPage
2017-09-21 16:45:12 -04:00
Michael Roytman
282220dae5
refactor and add multiple filter functionality
2017-09-20 12:06:12 -04:00
Clinton Blackburn
14b8c12e88
Added Studio API endpoint to update course image
...
LEARNER-2468
2017-09-13 11:22:47 -04:00
Andy Armstrong
ebb04ca396
Reorder Studio imports using isort
2017-05-30 17:00:50 -04:00
Andy Armstrong
684aec8740
Move contentserver to openedx/core
2016-10-11 12:49:33 -04:00
Toby Lawrence
4e22affb24
[PERF-344] Add versioning of cached course assets to allow graceful cache invalidation
...
When releasing the versioned assets work, we stumbled on a problem with old pickled
versions of the StaticContent objects residing in cache, which triggered a bug in the
code. Not wanting to blow away all cached items, we ended up having to revert and add
in some backwards-compatible helper code to ease the transition.
With this, we'll now utilize the version argument that Django's caching interface
allows, in conjunction with a constant value that can be modified when breaking changes
are being made, to let us gracefully ignore older cached course assets.
2016-07-05 15:15:47 -04:00
John Eskew
df261cd5d6
Remove all request.REQUEST usages - replace with request.GET and/or
...
request.POST to eliminate Django deprecation messages.
2016-02-22 09:54:26 -05:00
Sarina Canelake
e53b9c83d9
Use Django 1.4 @ensure_csrf_cookie method PLAT-664
2015-06-06 08:48:36 -04:00
Matt Drayer
af7277cdd9
New Feature: Certificates Web View
...
- SOL-465: Initial implementation of certificates web view and signatories (names/titles)
- SOL-718 Close button is working properly
- SOL-801 Backbone Signatories Modeling
- SOL-803 Underscore template: Editor (Add)
- SOL-802 Signatories: Underscore template - Details
- SOL-804 Signatories: Underscore template: Editor (Edit)
- Add signatory delete Django view
- SOL-805 Signatory editor (Delete)
- Add Coffeescript router
- SOL-716 Jasmine Tests
- Added missing minified JS library
- client side validation of signatory fields
- SOL-390 signatories names
- Remove obsolete extends Sass files
- input maxlength limiting for signatory information
- SOL-389: Course title override
- SOL-466: Add capability to upload digitized signatures in Studio
- ziafazal: fixed css for upload signature image
- ziafazal: completed deletion of signature images
- UX-1741: Add initial static rendering/styling for Open edX web certs
* creating new global static dir
* adding static version of edX UX pattern library assets
* adding web certificates static assets
* adding static (+abstracted) web certificates rendering
* creating two tiers of rendering (base + distinguished)
* providing sample assets for certificate rendering
* supporting RTL layouts
* adding certifcates assests to edX static asset pipeline
* temporarily hiding the mozilla open badges share action
* wiring print button to print view/page
* fixup! addressing conflict artifact in valid cert template
* fixup! adding missing %hd-subsection sass extend + components comment clean up
* fixup! correcting pattern library .hd-4 font-weight value
- SOL-468 Linked Student View for Web View Credential
- SOL-467: Add capability to upload organization logos for certificates
- SOL-391 / SOL-387: Signatory related info (assets) in certificates web view
- kelketek: Fixes for static asset collection in certificate HTML view.
- SOL-398 Web View: Public Access
- mattdrayer: Post-merge branch stabilization
- catong: Initial changes to Studio template and Help config file
- ziafazal: Branch stabilizations
- SOL-387: Display organization logo on LMS web view
- talbs/mattdrayer: Branch Stabilizations
- talbs: converting backpack action to use a button HTML element
- talbs: revising placeholder assets + their rendering in cert view
- mattdrayer: Username web view wireup
- SOL-386 Certificate Mode Previews
- SOL-905: Make organization logo and signatory signature uneditable
- SOL-922: Improve test coverage
- SOL-765: Add LinkedIn sharing
- [marco] temporary styling adjustment to account for smaller linkedin share image / fake button
- SOL-921: Address hardcoded template items
- SOL-927: Deleting certificate should delete org logo image also
* updated invalid template
* removed hr
* fix invalid certificate error
- clrux: Add i18n to certificate templates and partials
- mattdrayer: Pylint violations
- SOL-920 Certificate Activation/Deactivation
- mattdrayer: Added LMS support
- SOL-932: Fix preview mode support in certificate view
- SOL-934: Fixed bug reported and broken tests
- SOL-935 removed the 'valid' word from web view title
- talbs: RTL support updates/fixes
* revising certificate type icon/name vertical alignment
* removing unused older certificate template
* revising styling for message/banner actions
* abstracting accomplishment type to use course mode + adding in honor/verified-specific placeholders
- mattdrayer: JSHint violations
2015-06-01 19:48:04 -04:00
Martyn James
dcc8e95648
Implements SOL-20. Filtering for assets table by asset type
2015-01-16 12:53:24 -05:00
Calen Pennington
d919d2ae46
Teach LMS how to render XBlockAsides
...
[PLAT-217]
2014-12-13 08:26:28 -05:00
Christine Lytwynec
197f50b980
fix pep8 violation
2014-12-12 16:22:00 -05:00
Jim
fb9320afc1
Limit Upload File Sizes to GridFS.
...
This commit puts a limit on the size of files that
course staff can upload to MongoDB. The limit is
enforced on the frontend in javascript as well
as backend via the /upload endpoint.
The limit is hard-coded in cms/envs/common.py and
may be changed according to the user's custom
needs.
If the user tries to upload a file that's too
large, an error message will pop up, with a
customizable url that pointing the user to an
external page with an alternate upload procedure.
This url is specified im cms/envs/common.py.
If not set, this url will not be displayed.
2014-12-09 13:30:45 -08:00
Brandon DeRosier
046e295322
Change has_course_access definition and doc string
...
- has_course_access renamed to has_course_author_access for clarity
- Changed doc string to clearly state that it determines whether or not
a user has write access to a course
2014-12-02 22:08:58 -05:00
Brandon DeRosier
bdc64a7c70
Moved has_course_access from CMS to student.auth (common)
2014-12-02 19:36:38 -05:00
stv
6763c5dd74
Fix PEP8: E126 continuation line over-indented
...
for hanging indent
2014-11-24 20:46:44 -05:00
Don Mitchell
78879ebc18
Asset urls must start w/ slash
...
LMS-11233
2014-08-21 12:11:27 -04:00
Nimisha Asthagiri
abbfa95e4c
LMS-11168 Support for removing versions and branch in Split, Mixed, and SQL.
...
Make default_store thread-safe.
2014-08-07 18:07:41 -04:00
Nimisha Asthagiri
ec3011635d
LMS-11179 Fix Assets with Split
2014-08-07 17:59:38 -04:00
Calen Pennington
1bc0b323b1
Explicitly create the AssetKey for all assets coming out of a ContentStore
2014-07-17 10:35:36 -04:00