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

VACMS-10089: Checkbox to add event to National Outreach Calendar #15552

Merged
merged 26 commits into from
Oct 9, 2023

Conversation

chri5tia
Copy link
Contributor

@chri5tia chri5tia commented Oct 5, 2023

Description

Relates to #10089

Testing done

Functional in CMS, cypress

Screenshots

Screenshot 2023-10-05 at 2 45 48 AM
Screenshot 2023-10-05 at 2 45 29 AM

QA steps

As a user with content_admin role:

  • Go to /add/node/event
  • Check that there is a checkbox under "Where should this event be listed" that says "Publish to National Outreach Calendar"
  • Check it, fill out essential form elements and save
  • Check that the "Outreach events" link shows on the node view page

As a user with the roles office_content_creator, content_publisher

  • Go to /add/node/event
  • Check that there is a checkbox under "Where should this event be listed" that says, "Event will automatically be published to National Outreach Calendar"

Definition of Done

  • Documentation has been updated, if applicable.
  • Tests have been added if necessary.
  • Automated tests have passed.
  • Code Quality Tests have passed.
  • Acceptance Criteria in related issue are met.
  • Manual Code Review Approved.

Select Team for PR review

  • CMS Team
  • Public websites
  • Facilities
  • User support
  • Accelerated Publishing

Is this PR blocked by another PR?

  • DO NOT MERGE

Does this PR need review from a Product Owner

  • Needs PO review

CMS user-facing announcement

Is an announcement needed to let editors know of this change?

  • Yes, and it's written in issue ____ and queued for publication.
    • Merge and ping the UX writer so they are ready to publish after deployment
  • Yes, but it hasn't yet been written
    • Don't merge yet -- ping the UX writer to write and queue content
  • No announcement is needed for this code change.
    • Merge & carry on unburdened by announcements

dsasser and others added 14 commits September 28, 2023 13:16
…alue in listing_field

- Disable the checkbox if it needs to be.
- Adds the calendar to the event if the user is a hub only user.
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 1.10.36 to 1.10.37.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Changelog](https://github.com/phpstan/phpstan/blob/1.11.x/CHANGELOG.md)
- [Commits](phpstan/phpstan@1.10.36...1.10.37)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 09:51 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 09:55 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 15:45 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 16:47 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 18:26 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 18:35 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 5, 2023 18:38 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 15:55 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 16:09 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 19:07 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 19:50 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 21:07 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 21:30 Destroyed
@va-cms-bot va-cms-bot temporarily deployed to Tugboat October 6, 2023 21:42 Destroyed
@chri5tia chri5tia marked this pull request as ready for review October 6, 2023 21:59
Copy link
Contributor Author

@chri5tia chri5tia Oct 6, 2023

Choose a reason for hiding this comment

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

Removed because this test has become outdated and fails as the event form and it's tests have evolved. Fixing it would be redundant due to this test also running in other places, such as the CLP and Event features.

@chri5tia chri5tia requested a review from dsasser October 6, 2023 22:26
@@ -0,0 +1,14 @@
import { When } from "@badeball/cypress-cucumber-preprocessor";

When("I set the {string} feature toggle to {string}", (featureToggleMachineName, value) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it would benefit future us if we added a comment about changing this to a drush command, to avoid having to login as a specific user prior to doing the test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I'll put this in the status update in my notes for future work.

@chri5tia chri5tia merged commit a36ad8c into main Oct 9, 2023
14 checks passed
@chri5tia chri5tia deleted the VACMS-10089-nat-outreach-cal branch October 9, 2023 17:23
chri5tia added a commit that referenced this pull request Oct 10, 2023
dsasser added a commit that referenced this pull request Oct 10, 2023
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.

3 participants