Skip to content

Encode meta descriptions for search.gov - #8865

Merged
wpears merged 6 commits into
mainfrom
encode-descriptions
Jul 14, 2025
Merged

Encode meta descriptions for search.gov#8865
wpears merged 6 commits into
mainfrom
encode-descriptions

Conversation

@wpears

@wpears wpears commented Jul 9, 2025

Copy link
Copy Markdown
Member

Search.gov lowercases all custom data (an acknowledged bug) and also splits on commas. This base32 encodes our meta descriptions such that these behaviors are ameliorated.

There will be a follow-up PR that decodes and uses these descriptions.

This PR also bumps the sitemap min date to today to trigger a recrawl from search.gov

Screenshot 2025-07-09 at 12 46 18 PM

@wpears
wpears requested a review from chosak July 9, 2025 19:41

@chosak chosak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is clever! Would you mind adding a unit test for this?

Comment thread cfgov/v1/jinja2/v1/layouts/base.html
wpears and others added 2 commits July 9, 2025 18:34
@wpears

wpears commented Jul 9, 2025

Copy link
Copy Markdown
Member Author

This is clever! Would you mind adding a unit test for this?

I was kinda hesitant to test this since it kinda seemed like I was just testing that b32encode worked, but I found a satisfying way to do it in b766579

@mistergone

Copy link
Copy Markdown
Member

Very nifty idea! 🥳

@wpears
wpears requested a review from mistergone July 14, 2025 16:21
@wpears
wpears added this pull request to the merge queue Jul 14, 2025
Merged via the queue into main with commit f0a2dd4 Jul 14, 2025
14 checks passed
@wpears
wpears deleted the encode-descriptions branch July 14, 2025 17:42
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