-
Notifications
You must be signed in to change notification settings - Fork 70
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
BE: Events: Add "national outreach calendar" checkbox to Event UI #10089
Comments
BE refinement:
|
How Events get associated with Listings:
|
Noting from planning:
|
@dsasser If the checkbox ends up being too tricky, I added an alternative design idea in the Figma file. This uses a multiselect modal similar to the benefit hub section in the Video List content type. |
Status Update 9/29/23FrontendWe unpacked how the FE is building event listings in content-build. The FE uses a graphql query, similar to the below abbreviated Graphql query to pull all events, grouped by event listing. The query shows how the data is being fetched by the FE, which is done by reverse entity referencing the Graphql for building event listingsThis graphql query is for a single 'event_list' (The National Outreach Calendar) for ease of testing: query MyQuery {
nodeQuery(
limit: 1000
offset: 0
sort: { field: "nid", direction: ASC }
filter: {
conditions: [
{ field: "status", value: ["1"], enabled: true },
{ field: "type", value: ["event_listing"] },
{ field: "nid", value:"736"}
]
})
{
count
entities {
... on NodeEventListing {
entityId
entityLabel
reverseFieldListingNode(limit: 50, filter: { conditions: [{ field: "status", value: "1", operator: EQUAL, enabled: true }, { field: "moderation_state", value: "archived", operator: NOT_EQUAL }, { field: "type", value: "event" }]}, sort: {field: "changed", direction: DESC}) {
count
entities {
entityLabel
}
}
}
}
}
} BackendWe looked at two approaches for the backend. Both require first setting the Checkbox optionThe checkbox option is viable, providing we make a few changes:
Pros: easy to implement Entity Browser optionWe also looked at using Entity Browser on the exiting Pros: easy to implement (in basic form); leveraged all over in the CMS (not a new paradigm); no 'hidden' event listing assignments. |
Status Update 10/2/23 |
Thread re: change management: https://dsva.slack.com/archives/C52CL1PKQ/p1696357745318219 Need to talk test plan / roll out before this work merges. |
We need to:
|
Breadcrumb test update: ❌ Adding an event to 2 event listings will cause, in the case of Lovell at least, a 404 to be returned on 1 of the 2 listing pages, when clicking on the test event. I will be testing other facility types, as well as unpacking how the urls are being re-written, but this would suggest we have a launch blocking issue, ostensibly in vets-website. TugboatI rebuilt the tugboat we were using for demo'ing this issue, prior to doing any testing, to confirm that there were no errant content changes I wasn't expecting. During the rebuild, I noticed that the log was showing MANY broking link errors, and it was preventing the build from completing. Given this, I decided to do two things:
The new tugboat instance is here. The latest content relase is still pending, so I moved onto test locally. I'll update here once I have a confirmed if the tugboat env works identically as locally (as expected). LocalI created a test event using the Lovell Health Care event listing, and the Outreach checkbox. The new event appeared on both listing pages (/outreach-and-events/events/ and /lovell-federal-health-care-va/events/ respectively). From the Outreach and Events page, the link to the event was: /lovell-federal-health-care/events/61945 From the Lovell Events page, the link to the event was: /lovell-federal-health-care-va/events/61945 Breadcrumb codeBreadcrumbs for Drupal pages are rendered with the In the breadcrumb template, this code is at play:
This code uses the custom Liquid filter |
I tested the Alaska Heath Care facility, and the 404 mentioned above is not present. The test event appears on on both the Alaska Health Care facility, and the Outreach and Events page. The breadcrumb, as expected, follows the URL: Home -> Alaska health care Events -> Lorem Ipsum Test Event See: So it would seem we have a Lovell-only issue with regards to posting a single Event to multiple Event Listings. |
#13532 is blocking merging this work. For now we are going to: add a feature toggle (just on/off) and hide the checkbox, in order to merge/ship. We will need a follow up ticket to either modify the toggle to show to a subset of users when it's on, or turn on, or just remove it. |
Status Update 10/5/23As of before this morning's scrum update, cypress test was added and functional to test different scenarios regarding this feature. Draft PR was created. Today, Daniel and I co-worked to created a feature toggle for this outreach calendar checkbox due to the breadcrumb issue. As of right now there is something that needs to be debugged with it so that is what I will be working on next between now and next scrum update. Adding the feature toggle also means revising the cypress test, which means strategizing. The PR for this ticket adds outreach calendar checkbox cypress tests by utilizing the existing step definition Below are ideas to improve this step definition to make it more versatile. In the meantime, we'll likely just need to add instructions to turn on the feature toggle into Events Cypress Testing For the futureProblem statement: When testing the event form, I have to write testing to fill out required fields when trying out different scenarios. This creates similar code in more than once place, which can lead to tech debt and confusion. Idea: Example:
Also, then we can revise the first Scenario as such:
Noting that we do not currently have the We could add a step definition for Also add TL;DRPR: #15552 Next steps:
Future:
|
|
Poked at Lovell use case for sanity. Screensots in doobly doo -- all working and we should review as part of CAIA IA step. VA Lovell listingTricare Lovell listingOutreach eventsEvent page, approach from VA LovellEvent page, approach from Tricare LovellEvent page from Outreach eventsUses Federal health care VA breadcrumb. (The inconsistencies in punctuation / capitalization between Event Listings and Events are the same in prod, so not part of our work here. Looking for a ticket and will file one if it doesn't exist.) |
Status Update 10/6/23
|
Status update 10/9/23
Notes for future work
|
@laflannery can you confirm (I think you did this in various places, but wanted to document here) that the CMS changes are good from an a11y perspective? |
@dsasser I I just reviewed on stage and have no issues. This is good on my end |
Noting: I created #15627 to track any follow up required from talking to CAIA, and to track enabling the Feature toggle when the time comes. |
Work was merged to prod and worked fine on Events, but: broke other things. #15641 tracks the related defect that will allow re-merge. |
STATUS
Description
User story
AS AN Outreach Events editor (and only outreach events editor)
I WANT my event to get posted on the Outreach Events calendar by default (without any specific input from me)
SO THAT I don't have any new cognitive load added.
AS AN Editor who can create events for a Facility
I WANT to be given the option of publishing to the Outreach Events calendar (i.e. "national" calendar) in addition to my usual options
SO THAT I can easily expose an event with broad appeal and remote accessibility to all Veterans.
Notes / background
Current Event creation form:
https://prod.cms.va.gov/node/add/event
Design
Figma file
Tasks
Acceptance Criteria
The text was updated successfully, but these errors were encountered: