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

VOTE-972: Add robotstxt module. Delete default robots.txt file and pr… #758

Merged
merged 3 commits into from
Jul 27, 2024

Conversation

daniel-crowder
Copy link
Contributor

@daniel-crowder daniel-crowder commented Jun 12, 2024

…event if from being committed to repo.

Jira ticket

VOTE-972

Description

Add contrib module, RobotsTxt, and configure the robots.txt out put for production's static site.

Deployment and testing

Post-deploy steps

  1. Update your setting.local.php file to set config split environment to production
    $config['config_split.config_split.production']['status'] = TRUE;
  2. Locally run lando retune

QA/Testing instructions

  1. Goto /robots.txt and confirm the output contains a list of Allows and Disallows for the environment(enabled config split setting).
  2. Run lando static to generate static site locally.
  3. Confirm that the robots.txt and the correct entries are found in the static directory.
  4. Update your setting.local.php file to set config split environment to non_production
    $config['config_split.config_split.non_production']['status'] = TRUE;
  5. Run lando drush cim to import non-production configs.
  6. Goto /robots.txt and confirm the output is set to block everything from being crawled.
  7. Repeat Steps 2-3
  8. Repeat Steps 4-7 after updating config split setting to
    $config['config_split.config_split.local']['status'] = TRUE;

Checklist for the Developer

  • A link to the JIRA ticket has been included above.
  • No merge conflicts exist with the target branch.
  • Automated tests have passed on this PR.
  • A reviewer has been designated.
  • Deployment and testing steps have been documented above, if applicable.

Checklist for the Peer Reviewers

  • The file changes are relevant to the task objective.
  • Code is readable and includes appropriate commenting.
  • Code standards and best practices are followed.
  • QA/Test steps were successfully completed, if applicable.
  • Applicable logs are free of errors.

@daniel-crowder daniel-crowder marked this pull request as ready for review June 13, 2024 16:23
rayestrada
rayestrada previously approved these changes Jun 13, 2024
@rayestrada
Copy link
Contributor

Will need to wait until launch week to deploy this one.

@rayestrada rayestrada merged commit 709759e into dev Jul 27, 2024
3 checks passed
tt-gsa added a commit that referenced this pull request Aug 1, 2024
* VOTE-464 Initialize redesign votegov theme

* VOTE-464 resolve phplint errors with new theme

* VOTE-414: scaffolding for header

* Header refinements

* Update text formats for wysiwyg content

* Add ordered list to simple text format

* VOTE-499 configure main menu
VOTE-497 configure sitewide alert

* VOTE-415 Configure footer

* VOTE-528: state page title scaffolding

* revert block placement

* VOTE-525: add breadcrumb module

* VOTE-418: Homepage template scaffolding (#445)

* add nvrf block to state page nodes

* fix page title

* create registration type template suggestions

* satisfy phplint

* state page main content scaffolding

* votegov theme refinements

* Remove unused files from bixal_uswds theme

* Update CI/CD and references to new theme

* Move drupal_breadcrumb enable to right config dir

* testing rolling deploy on test

* Vote-2195: Cypress version and test updates (#860)

* Vote-2195: Update cypress to next version

* Vote-2195: Update to cypress tests

* Adding a sleep command to wait to rerun any failed test (#865)

* VOTE-2418: Resolve issue with taxonomy page loading when not loading from a parenting paragraph. (#857)

* VOTE-1121 Update SCSS to select USWDS packages (#837)

* VOTE-2240: Add high contrast main navigation menu styles (#822)

* VOTE-2319 Change date format for election day to long format (#863)

* Vote-2364:  Test coverage for accessibility toolbar (#862)

* remove zombie code

* add testing coverage for accessability tool bar

* VOTE-2429: Add external link class to Military and Overseas card (#866)

* VOTE-2388: adjust heading max width for heading (#869)

* VOTE-2424: removes lazy loading from hero image (#867)

* VOTE-2443 Replace spanish usa.gov links in the footer (#864)

* VOTE-2381: Add 'lang' attribute to language names (#868)

* VOTE-2477: Add translation for know your voter rights (#872)

* VOTE-2433 Add Spanish translation for secondary nav aria label (#873)

* VOTE-2485: Update robots.txt file for search.gov testing

* BUGFIX: remove 'of' from alias ignore settings (#861)

* VOTE-2272 replace touchpoints global button modal with a link to a hosted form (#870)

* VOTE-2444 start or update registration copy change (#878)

* VOTE-2444 Update registration heading in English

* VOTE-2444 Update Spanish translation

* VOTE-2324: Enable Somali for production. (#875)

* VOTE-2324: Enable Somali for production.

* VOTE-2324: Enable Somali translations for local environment.

* Vote 2425: hide untranslated content (#881)

* VOTE-2490 add config translations for home label (#882)

* VOTE-2505 Add (FVAP) back into temporary voter cards (#883)

* VOTE-972: Add robotstxt module. set robots.txt file per env (#758)

* VOTE-2372 Fix regression in state registration string

* VOTE-2324 Update somali config file

* HOTFIX replace Virginia with @state_name in string translations

* VOTE-2443 add missing double quotes around href attributes

* VOTE-2381 correct lang attributes in language swticher

* VOTE-2272 make touchpoints button translatable

* VOTE-2511: retry tome generating files or fail if the command exits non-zero (#886)

* VOTE-2241 configure a minimal maintenance page template (#884)

* Revert "VOTE-2444 start or update registration copy change (#878)"

This reverts commit ca6f179.

* VOTE-2512 Change link text on state page for English and Spanish

* VOTE-2510 Fix voter guide url axe test

* VOTE-970: update URIs as preparation for launch

* HOTFIX: disable FAQ JSON scheme on state pages

* testing buildpack version increase

---------

Co-authored-by: Ray Estrada <raymond.estrada@gsa.gov>
Co-authored-by: mlloydbixal <amanda.lloyd@gsa.gov>
Co-authored-by: Christian Medders - Bixal <88721460+clmedders@users.noreply.github.com>
Co-authored-by: Russell O'Neill <russell.oneill@gsa.gov>
Co-authored-by: Daniel Crowder <daniel.crowder@gsa.gov>
Co-authored-by: SamiraMSadat <108487505+SamiraMSadat@users.noreply.github.com>
Co-authored-by: Mandy Lloyd <121046395+mlloydbixal@users.noreply.github.com>
Co-authored-by: SamiraMSadat <samira.sadat@gsa.gov>
@rayestrada rayestrada deleted the feature/VOTE-972-update-robots-txt branch August 14, 2024 01:43
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.

2 participants