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

License data #8815

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

License data #8815

wants to merge 2 commits into from

Conversation

FarazA22
Copy link
Contributor

@FarazA22 FarazA22 commented Oct 2, 2024

Approach

https://www.pivotaltracker.com/story/show/188369690
Removed the CPA license name from the mapping object b/c the task no longer has license search enabled (we forgot to remove it).

https://www.pivotaltracker.com/story/show/188194087
I created a page that allows folks on the dev site to manipulate license data. If the environment variable is not development, the user will be routed back to the dashboard.

I was not able to add any unit tests because the environment variable when running jest is test (it requires the env variable to be set to dev); manually changing the variable causes an error because the node environment variable is read-only. Since this functionality only works on dev, I think it's OK not to have any tests. JP is comfortable with it as well.

I highly recommend visiting the site locally and making changes to license data. Once you have completed onboarding, visit http://localhost:3000/mgmt/modifyBusiness

Steps to Test

Notes

Code author checklist

  • I have rebased this branch from the latest main branch
  • I have performed a self-review of my code
  • I have created and/or updated relevant documentation on the engineering documentation website
  • I have not used any relative imports
  • I have pruned any instances of unused code
  • I have not added any markdown to labels, titles and button text in config
  • If I added/updated any values in userData (including profileData, formationData etc), then I added a new migration file
  • I have checked for and removed instances of unused config from CMS
  • If I added any new collections to the CMS config, then I updated the search tool and cmsCollections.ts (see CMS Additions in Engineering Reference/FAQ on the engineering documentation site)
  • I have updated relevant .env values in both .env-template and in Bitwarden

@FarazA22 FarazA22 force-pushed the licenseData branch 3 times, most recently from 470be0f to 8f7107d Compare October 2, 2024 20:29
const licenseSearchEnabledTaskIds = Object.keys(taskIdLicenseNameMapping).sort();

useEffect(() => {
if (process.env.NODE_ENV !== "development") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this the right variable?

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.

1 participant