Skip to content

[FC-0009] [FAL-3496] Copy/paste unit from within a unit - #33724

Merged
bradenmacdonald merged 8 commits into
openedx:masterfrom
open-craft:pooja/copy-paste-unit-to-unit
Dec 1, 2023
Merged

[FC-0009] [FAL-3496] Copy/paste unit from within a unit #33724
bradenmacdonald merged 8 commits into
openedx:masterfrom
open-craft:pooja/copy-paste-unit-to-unit

Conversation

@pkulkark

@pkulkark pkulkark commented Nov 15, 2023

Copy link
Copy Markdown
Contributor

Description

This PR adds the option to copy/paste a unit from within a unit in CMS as per the designs in this wireframe. It also removes the last published section.

Supporting Information

openedx/modular-learning#96

OpenCraft Internal Jira task - FAL-3496

Screenshots

  1. Copy button section:

copy-unit-button

  1. Copy button hover/select:

copy-unit-button-selected

  1. Dropdown menu options when unit is copied:

Screenshot from 2023-11-30 16-53-43

Testing Instructions

  1. Checkout the PR branch on the devstack.
  2. Enable the contentstore.enable_copy_paste_units waffle flag in cms admin panel.
  3. In Studio, open a unit and verify that the dropdown that shows up when New Unit button is clicked, only contains one option i.e. New Unit
  4. Click on Copy to Clipboard button.
  5. Verify that the dropdown now contains another option Paste as new unit.
  6. Select Paste as new unit option and verify that the copies unit is pasted as a new unit.
  7. Copy only a component from the unit to clipboard and verify that the paste option doesn't show up.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Nov 15, 2023
@openedx-webhooks

openedx-webhooks commented Nov 15, 2023

Copy link
Copy Markdown

Thanks for the pull request, @pkulkark! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@bradenmacdonald bradenmacdonald changed the title [WIP][FAL-3496] Copy/paste unit from within a unit [WIP] Copy/paste unit from within a unit [FC-0009] [FAL-3496] Nov 15, 2023
@bradenmacdonald bradenmacdonald added the FC Relates to an Axim Funded Contribution project label Nov 15, 2023
@pkulkark
pkulkark force-pushed the pooja/copy-paste-unit-to-unit branch 3 times, most recently from 81db070 to 55cd961 Compare November 20, 2023 16:40
@pkulkark
pkulkark marked this pull request as ready for review November 24, 2023 01:44
@pkulkark pkulkark changed the title [WIP] Copy/paste unit from within a unit [FC-0009] [FAL-3496] [FC-0009] [FAL-3496] Copy/paste unit from within a unit Nov 24, 2023
@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@pkulkark
pkulkark force-pushed the pooja/copy-paste-unit-to-unit branch from 506a0e5 to ce8ca40 Compare November 24, 2023 01:49
@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

17 similar comments
@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deploy request received. Deployment will start soon.

@open-craft-grove

Copy link
Copy Markdown

Sandbox deployment started.

@open-craft-grove

Copy link
Copy Markdown

@yusuf-musleh yusuf-musleh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I did another review pass to test out the updated functionality, it's working well.

When a unit is in the clipboard, the dropdown menu button appears with the "Paste as new unit" option that pastes right away once clicked. If there is no unit in the clipboard, the dropdown arrow button is not shown.

@open-craft-grove

Copy link
Copy Markdown

1 similar comment
@open-craft-grove

Copy link
Copy Markdown

@kaustavb12

Copy link
Copy Markdown
Contributor

@bradenmacdonald @pkulkark

Can you please verify if the changes are reflecting now ?

@bradenmacdonald

Copy link
Copy Markdown
Contributor

@kaustavb12 Yes, whatever you did has fixed it. Thanks!

@bradenmacdonald

Copy link
Copy Markdown
Contributor

@jmakowski1123 @ali-hugo If you want to see the (final?) version, the sandbox has been updated: https://studio.pr-33724-139931.staging.do.opencraft.hosting/

@bradenmacdonald
bradenmacdonald merged commit f5b246d into openedx:master Dec 1, 2023
@bradenmacdonald
bradenmacdonald deleted the pooja/copy-paste-unit-to-unit branch December 1, 2023 19:33
@openedx-webhooks

Copy link
Copy Markdown

@pkulkark 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

bradenmacdonald pushed a commit to open-craft/openedx-platform that referenced this pull request Dec 1, 2023
…penedx#33724)

(requires the contentstore.enable_copy_paste_units waffle flag)
@open-craft-grove

Copy link
Copy Markdown

Sandbox destroy request received.

3 similar comments
@open-craft-grove

Copy link
Copy Markdown

Sandbox destroy request received.

@open-craft-grove

Copy link
Copy Markdown

Sandbox destroy request received.

@open-craft-grove

Copy link
Copy Markdown

Sandbox destroy request received.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@ali-hugo

ali-hugo commented Dec 4, 2023

Copy link
Copy Markdown

If you want to see the (final?) version, the sandbox has been updated: https://studio.pr-33724-139931.staging.do.opencraft.hosting/

@bradenmacdonald Thanks for the link, but I'm seeing the following error: "This site is currently being provisioned. Please try again in a few minutes."

@kaustavb12

Copy link
Copy Markdown
Contributor

Yes, whatever you did has fixed it. Thanks!

Thanks for the confirmation @bradenmacdonald . It was a known issue where the cached image keeps getting reused and needs to be manually deleted. We already have an internal ticket to fix this.

Thanks for the link, but I'm seeing the following error: "This site is currently being provisioned. Please try again in a few minutes."

@ali-hugo The automated sandbox was destroyed automatically since this PR was closed (on merge).

@ali-hugo

ali-hugo commented Dec 4, 2023

Copy link
Copy Markdown

@kaustavb12 Oh, I see. Thanks for the explanation!

Now that the sandbox is no longer, is there somewhere else I can view this feature?

@bradenmacdonald

Copy link
Copy Markdown
Contributor

@ali-hugo It will be available on the tagging/taxonomy sandbox, whenever we next update it. I think Jill will be updating it fairly soon.

@bradenmacdonald

Copy link
Copy Markdown
Contributor

@ali-hugo Update: it's available now on the tagging/taxonomy sandbox :)

@ali-hugo

ali-hugo commented Dec 5, 2023

Copy link
Copy Markdown

@bradenmacdonald Thanks! The UX feels much better now with those few small fixes. I'm interested to see what users think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FC Relates to an Axim Funded Contribution project open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

10 participants