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

EREGCSC-2041 -- Adjust SSA.gov Title 16 links #910

Merged
merged 14 commits into from
Aug 1, 2023
Merged

Conversation

PhilR8
Copy link
Contributor

@PhilR8 PhilR8 commented Jul 26, 2023

Resolves EREGCSC-2041

Description

  1. Pulls titles from /v3/acts to be used for the StatuteSelector list items.

  2. Fixes issue with Title 16 SSA.gov compilation page URLs.

In the statute table, there is a column for links to the SSA.gov compilation page. Normally, the links to this page only need the title number and the section.

Example: Title 11, Section 1101

https://www.ssa.gov/OP_Home/ssact/title11/1101.htm

However, SSA.gov Title 16 links are a special case. They need to have a b appended after the title number.

Example: Title 16, Section 1601

https://www.ssa.gov/OP_Home/ssact/title16/1601.htm

https://www.ssa.gov/OP_Home/ssact/title16b/1601.htm

This pull request changes:

  • Creates list of titles used in StatuteSelector component from v3/acts API endpoint response
  • Adds condition in ssaGovUrl utility method that checks for the existence of Title 16 and, if found, uses 16b as the title in the returned URL.
  • Minor formatting and ESLint changes in urlMethods.js
  • Moves some transformation/shaping logic from Statutes.vue to the shared utils file so those new methods can be used in component unit tests, as well as having unit tests of their own.

Steps to manually verify this change:

  1. Visit the experimental deployment
  2. Make sure State Selector list (left side of page) loads fine and includes Title XVI (Title 16)
  3. Click Title XVI
  4. Make sure SSA.gov Compilation links contain 16b instead of 16
  5. Visit these updated SSA.gov links and make sure they go where expected to go
  6. Compare to prod statute table with title 16 selected

@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 14:11 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 14:18 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 14:22 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 14:22 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@PhilR8 PhilR8 marked this pull request as ready for review July 26, 2023 14:39
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 20:48 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 20:50 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 20:54 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 26, 2023 20:54 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@peggles2 peggles2 assigned peggles2 and thwalker6 and unassigned peggles2 Jul 27, 2023
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 19:51 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 19:53 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 19:57 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 19:57 — with GitHub Actions Inactive
@@ -8,7 +8,7 @@ export default {
eregsComponentLib: r("../regulations/eregs-component-lib"),
legacy: r("../../regulations"),
sharedComponents: r(
"../eregs-component-lib/src/components/shared-components"
"../regulations/eregs-component-lib/src/components/shared-components"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

update path to match other entries in this file

@github-actions
Copy link

✨ See the Django Site in action

@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 20:11 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 20:29 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 20:32 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 20:36 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 27, 2023 20:36 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 13:50 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 13:53 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 13:57 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 13:57 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

Copy link
Contributor

@thwalker6 thwalker6 left a comment

Choose a reason for hiding this comment

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

LGTM

@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 17:21 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 17:24 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 17:27 — with GitHub Actions Inactive
@PhilR8 PhilR8 temporarily deployed to dev July 28, 2023 17:27 — with GitHub Actions Inactive
@github-actions
Copy link

✨ See the Django Site in action

@thwalker6 thwalker6 merged commit 7190bd5 into main Aug 1, 2023
15 checks passed
@thwalker6 thwalker6 temporarily deployed to dev August 1, 2023 12:24 — with GitHub Actions Inactive
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