Skip to content

feat: disallow edits to units in courses that are sourced from a library [FC-0083]#774

Merged
pomegranited merged 7 commits intochris/FAL-4075-get-unit-updstreamfrom
jill/rpenido/fal-4112/disallow-edits-to-units-in-courses-from-libraries
Apr 24, 2025
Merged

feat: disallow edits to units in courses that are sourced from a library [FC-0083]#774
pomegranited merged 7 commits intochris/FAL-4075-get-unit-updstreamfrom
jill/rpenido/fal-4112/disallow-edits-to-units-in-courses-from-libraries

Conversation

@pomegranited
Copy link

rpenido and others added 3 commits April 23, 2025 16:38
and remove added parent_has_upstream

Also fixes cause of some test failures.
@pomegranited pomegranited force-pushed the chris/FAL-4075-get-unit-updstream branch from 863c696 to b248df6 Compare April 24, 2025 11:27
…ts-to-units-in-courses-from-libraries' into jill/rpenido/fal-4112/disallow-edits-to-units-in-courses-from-libraries
…o jill/rpenido/fal-4112/disallow-edits-to-units-in-courses-from-libraries
…ream' into jill/rpenido/fal-4112/disallow-edits-to-units-in-courses-from-libraries
@pomegranited pomegranited merged commit 57b2205 into chris/FAL-4075-get-unit-updstream Apr 24, 2025
41 checks passed
@pomegranited pomegranited deleted the jill/rpenido/fal-4112/disallow-edits-to-units-in-courses-from-libraries branch April 24, 2025 12:32
pomegranited added a commit that referenced this pull request Apr 24, 2025
… that are sourced from a library (#773)

* feat: Add upstream_info to unit
* feat: disallow edits to units in courses that are sourced from a library (#774)

---------

Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
ChrisChV added a commit that referenced this pull request Apr 24, 2025
)

* feat: library unit sync
* feat: create component link only for component xblocks
* feat: container link model
* feat: update downstream api views
* feat: delete extra components in container on sync (not working)
* fix: duplicate definitions of LibraryXBlockMetadata
* test: add a new integration test suite for syncing
* feat: partially implement container+child syncing
* fix: blockserializer wasn't always serializing all HTML block fields
* feat: handle reorder, addition and deletion of components in sync

Updates children components of unit in course based on upstream unit,
deletes removed component, adds new ones and updates order as per
upstream.

* feat: return unit upstreamInfo and disallow edits to units in courses that are sourced from a library (#773)
* feat: Add upstream_info to unit
* feat: disallow edits to units in courses that are sourced from a library (#774)

---------

Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>

* docs: capitalization of XBlock

Co-authored-by: David Ormsbee <dave@axim.org>

* refactor: (minor) change python property name to reflect type better

* fix: lots of "Tried to inspect a missing...upstream link" warnings

when viewing a unit in Studio

* docs: mention potential REST API for future refactor

* fix: check if upstream actually exists before making unit read-only

* chore: fix camel-case var

* fix: test failure when mocked XBlock doesn't have UpstreamSyncMixin

---------

Co-authored-by: Braden MacDonald <braden@opencraft.com>
Co-authored-by: Chris Chávez <xnpiochv@gmail.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
Co-authored-by: Braden MacDonald <mail@bradenm.com>
Co-authored-by: David Ormsbee <dave@axim.org>
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.

2 participants