Skip to content

Conversation

@ChrisChV
Copy link
Member

@ChrisChV ChrisChV commented Apr 23, 2025

Description

  • Updates xblock_info with upstream_info
  • Disallows edits to units in courses that are sourced from a library.
  • Which edX user roles will this change impact? "Developer".

Supporting information

Testing instructions

Other information

N/A

@ChrisChV ChrisChV marked this pull request as draft April 23, 2025 01:59
@navinkarkera navinkarkera force-pushed the navin/fal-4077/link-unit branch 5 times, most recently from d9e6e16 to fe316a1 Compare April 23, 2025 14:20
@ChrisChV ChrisChV force-pushed the chris/FAL-4075-get-unit-updstream branch from d32dcc7 to d0f248b Compare April 23, 2025 17:23
@ChrisChV ChrisChV force-pushed the chris/FAL-4075-get-unit-updstream branch from d0f248b to 945025a Compare April 23, 2025 17:25
@ChrisChV ChrisChV changed the title fix: Sync and decline sync of units fix: Sync and decline sync of units [FC-0083] Apr 23, 2025
…ary [FC-0083] (#774)

Disallows edits to library-sourced units in the contentstore preview view and XBlock wrapper.

Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
@pomegranited pomegranited marked this pull request as ready for review April 24, 2025 12:34
@pomegranited pomegranited changed the title fix: Sync and decline sync of units [FC-0083] feat: return unit upstreamInfo and disallow edits to units in courses that are sourced from a library [FC-0083] Apr 24, 2025
@pomegranited pomegranited merged commit f111bf6 into navin/fal-4077/link-unit Apr 24, 2025
22 checks passed
@pomegranited pomegranited deleted the chris/FAL-4075-get-unit-updstream branch April 24, 2025 12:35
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