Skip to content
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

Merged
merged 25 commits into from
Dec 14, 2021
Merged

[PRODDEV-479] [PRODDEV-480] Flag new shared content #423

merged 25 commits into from
Dec 14, 2021

Conversation

froboy
Copy link

@froboy froboy commented Dec 6, 2021

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.
    Fetch_shared_content___Drush_Site-Install

  • 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"
    Fetch_shared_content___Drush_Site-Install

  • 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.

Fetch_shared_content___Drush_Site-Install

  • Observe content is bolded when new (or when it's your first session)
  • Observe content is unbolded when you Preview it and then close the modal.
  • Observe content is unbolded when you start a new session.

Quality checks:

Please check these boxes to confirm this PR covers the following cases:

  • Maintaining our upgrade path is essential. Check one or the other:
    • This PR provides updates via hook_update_N or other means.
    • No updates are necessary for this change.
  • Front end fixes should be tested against all of the Open Y Themes.
    • Tested against Carnation
    • Tested against Lily
    • Tested against Rose
    • This change does not contain front-end fixes.
  • I have flagged this PR "Needs Review" or pinged the VY devs/QA
    team in Slack

@fjbot
Copy link

fjbot commented Dec 8, 2021

Build 4938
Coding standards checks failed.
See https://ci.fivejars.com/job/OPENY_GC_PR/4938/display/redirect

@fjbot
Copy link

fjbot commented Dec 8, 2021

Build 4938
Build failed.
See https://ci.fivejars.com/job/OPENY_GC_PR/4938/display/redirect for details.

@fjbot
Copy link

fjbot commented Dec 8, 2021

Build 4939
Coding standards checks failed.
See https://ci.fivejars.com/job/OPENY_GC_PR/4939/display/redirect

@fjbot
Copy link

fjbot commented Dec 8, 2021

Build 4939
Build failed.
See https://ci.fivejars.com/job/OPENY_GC_PR/4939/display/redirect for details.

@froboy froboy changed the title [PRODDEV-479] Flag new shared content [PRODDEV-479] [PRODDEV-480] Flag new shared content Dec 8, 2021
@froboy froboy marked this pull request as ready for review December 8, 2021 04:07
@froboy
Copy link
Author

froboy commented Dec 8, 2021

@anpolimus I've completed refactoring based on our call this morning. This is now ready for review again.

@froboy
Copy link
Author

froboy commented Dec 8, 2021

retest

@AndreyMaximov
Copy link

retest

@fivejars fivejars deleted a comment from fjbot Dec 8, 2021
@fivejars fivejars deleted a comment from fjbot Dec 8, 2021
@fivejars fivejars deleted a comment from fjbot Dec 8, 2021
@fivejars fivejars deleted a comment from fjbot Dec 8, 2021
@fivejars fivejars deleted a comment from fjbot Dec 8, 2021
@fivejars fivejars deleted a comment from fjbot Dec 8, 2021
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']));

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>
@AnastasiiaPys
Copy link

Tested. Works as expected.
1.Shared Content is flagged as new by formatting the row with “bold text”
2.After user clicked the Preview button, the row looks unbolded
3.Content updated on the server since user (Admin) last visit is flagged as “new” by formatting the row with bold text.
4.After the content was fetched to the site, the button “Preview” changed to the “Added”.

But an error occurred after I added new content to the server and fetched the content again.
image

@froboy is this the type of error that is preventing me from merging this build? or can i merge the build?

@froboy
Copy link
Author

froboy commented Dec 10, 2021

@AnastasiiaPys comparing the filename in the first line of the error (SharedContentFetchForm) to the files changed here I can see that the error is definitely a result of my new code, so we should resolve that and retest. I'll get on it. Thanks!

@froboy
Copy link
Author

froboy commented Dec 10, 2021

@AnastasiiaPys I believe I've resolved that issue. Please retest when you're able. Thanks!

@AnastasiiaPys AnastasiiaPys added the REBUILD Tells the CI server to rebuild a PR label Dec 13, 2021
@AnastasiiaPys
Copy link

Retested.

Works good, there is no more error.

@AnastasiiaPys AnastasiiaPys added TESTED and removed REBUILD Tells the CI server to rebuild a PR labels Dec 13, 2021
@froboy froboy requested a review from anpolimus December 13, 2021 15:53
@anpolimus anpolimus merged commit 28222e8 into fivejars:master Dec 14, 2021
@froboy froboy deleted the PRODDEV-479-new-shared-content branch December 16, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants