-
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
VACMS-14000: Adds and populates meta tags on VBA Facility #16395
Conversation
755f4f4
to
3e38160
Compare
9f660ed
to
cdc02c0
Compare
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.
I have not tested this yet, but will later tonight.
* @return string | ||
* Status message. | ||
*/ | ||
function va_gov_set_vba_facility_meta_tags(array &$sandbox) { |
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.
Minor and not worth moving. Consider for next time around that this could have been done as a "post deploy hook" so that it would run itself without needing a manual step.
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.
Thanks for the suggestion. I'll look into that at the next opportunity.
* @param string $revisionId | ||
* The id of the node revision. | ||
*/ | ||
function update_field_cc_meta_tags_table(string $nodeId, string $revisionId) { |
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.
Minor and not worth changing. Consider abstracting this function one level deeper where it is not specific to meta tags but is generic to updating a fetch field. It would need to add a bundle parameter. Then move it to the script library.
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.
Yes, good thought. I was thinking that this is something that is going to likely need to happen again.
@@ -36,7 +37,7 @@ dependencies: | |||
- field.field.node.vba_facility.field_table_of_contents | |||
- field.field.node.vba_facility.field_timezone | |||
- node.type.vba_facility | |||
- workflows.workflow.editorial | |||
- workflows.workflow.restricted_archive |
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.
Seems odd this is changing this now. This is unrelated to this PR isn't it?
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.
Yes, it is unrelated. I also thought it odd. But it's correct, and this vestigial workflow should be corrected from main. Are you suggesting we pull this change out and do it in a separate PR that is specific to workflow?
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.
No. Mainly just wanted to note it as odd... and thought maybe you could shed light on it.
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.
It is odd, so I ran a little test on Service Region. It turns out the dependency of the manage form display config is only picked up when updating the form itself. Changing the workflow does not result in a config change for the form. So I'll update the Service Region config, too, for consistency.
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.
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.
i see no issues here.
Description
Relates to #14000
Testing done
Locally
Screenshots
QA steps
In the browser
As an admin
<meta name="description">
element<meta name="og:description">
elementIn the terminal
drush scr ./scripts/content/VACMS-14000-vba-facility-meta-tags.php
/admin/content
drush cr
In the browser
As an admin
<meta name="description">
element, and that it says "Placeholder text: Veterans benefits offices provide services to Veterans ... "<meta name="og:description">
element and that it says "Placeholder text: Veterans benefits offices provide services to Veterans ... "<meta name="description">
element, and that it says "Placeholder text: Veterans benefits offices provide services to Veterans ... "<meta name="og:description">
element and that it says "Placeholder text: Veterans benefits offices provide services to Veterans ... "Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing