-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PRODDEV-479] [PRODDEV-480] Flag new shared content #423
[PRODDEV-479] [PRODDEV-480] Flag new shared content #423
Conversation
Cleaned things up but broke them Fixed it.
Build 4938 |
Build 4938 |
Build 4939 |
Build 4939 |
@anpolimus I've completed refactoring based on our call this morning. This is now ready for review again. |
retest |
retest |
modules/openy_gc_shared_content/src/Form/SharedContentPreviewForm.php
Outdated
Show resolved
Hide resolved
modules/openy_gc_shared_content/src/Form/SharedContentPreviewForm.php
Outdated
Show resolved
Hide resolved
if ($form_state->getTriggeringElement()['#value']->__toString() == 'Close') { | ||
// Close the modal and remove the new class if it exists. | ||
$response->addCommand(new CloseModalDialogCommand()); | ||
$response->addCommand(new InvokeCommand("tr[data-uuid='$uuid']", 'removeClass', ['new-item'])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Anatolii Poliakov <anpolimus@gmail.com>
modules/openy_gc_shared_content/src/Form/SharedContentPreviewForm.php
Outdated
Show resolved
Hide resolved
Tested. Works as expected. But an error occurred after I added new content to the server and fetched the content again. @froboy is this the type of error that is preventing me from merging this build? or can i merge the build? |
@AnastasiiaPys comparing the filename in the first line of the error ( |
@AnastasiiaPys I believe I've resolved that issue. Please retest when you're able. Thanks! |
Retested. Works good, there is no more error. |
Do not merge PR, only review it and approve/request changes.
Merge is allowed by QA Engineer only.
Related Issue/Ticket:
PLEASE CHECK BASE BRANCH FOR YOUR PR
ONLY urgent and approved fixes for point release should go to master branch
https://openy.atlassian.net/browse/PRODDEV-479
https://openy.atlassian.net/browse/PRODDEV-480
Steps to test:
You will need to have a site connected to a shared content server in order to test and have the shared content server all configured.
Check out this video:
PRODDEV-480-479-shared-content.mp4
Observe "Fetch to my site" button is duplicated on the top of the form.

Observe top "Fetch to my site" button works exactly the same as the bottom button.
Observe once content is added to a site, the checkbox and button are disabled and the button text changes from "Preview" to "Added"

Observe when you click "Preview" a "Fetch to my site" button that fetches content when clicked.
Observe close button that closes the preview with no action.
Quality checks:
Please check these boxes to confirm this PR covers the following cases:
hook_update_N
or other means.team in Slack