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

fix(te): Refactor TEs to use authority and lots of cleanup #1056

Merged
merged 8 commits into from
Jan 23, 2025

Conversation

benjaminpaige
Copy link
Collaborator

@benjaminpaige benjaminpaige commented Jan 23, 2025

Adding or refactoring TE's to match the appropriate authority template types.

Also did some cleaning up of index namespace functions and requiring certain environment variables.

I did a little refactoring of the Get Template functionality to make it more readable.

🎫 Linked Ticket

https://jiraent.cms.gov/browse/OY2-30069

📸 Screenshots / Demo

image
image

image
image

Copy link
Contributor

github-actions bot commented Jan 23, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 80.08% 3745 / 4676
🔵 Statements 79.39% 4073 / 5130
🔵 Functions 70.22% 1085 / 1545
🔵 Branches 61.53% 1696 / 2756
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
lib/lambda/processEmails.ts 90.65% 77.27% 100% 90.19% 103, 109, 117-118, 167-170, 183-184, 218-219
lib/lambda/search.ts 90.32% 75% 100% 90% 58-60
lib/lambda/submit/submissionPayloads/respond-to-rai.ts 88.23% 75% 100% 93.75% 9, 23
lib/libs/utils.ts 100% 100% 100% 100%
lib/libs/api/package/itemExists.ts 100% 100% 100% 100%
lib/libs/email/index.ts 58.82% 50% 66.66% 57.57% 71-72, 87-88, 98, 121-122, 127-129, 135-136, 141-142
lib/libs/email/content/tempExtension/index.tsx 100% 100% 100% 100%
Generated in workflow #1636 for commit ad371db by the Vitest Coverage Report Action

Copy link
Collaborator

@asharonbaltazar asharonbaltazar left a comment

Choose a reason for hiding this comment

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

Please try ChatGPT again so we can have a coherent PR title and description. Really helps for the FUTURE

export function getNamespace<T extends BaseIndex>(baseIndex?: T): Index;
export function getNamespace(baseIndex?: BaseIndex) {
const indexNamespace = process.env.indexNamespace ?? "";
export function getOsNamespace<T extends BaseIndex>(baseIndex: T): Index;
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the overloaded function is no longer needed, can we remove it? Also, perhaps we can adjust the return value to return what you typed in itemExists, line 8

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If the overloaded function is no longer needed, can we remove it? Also, perhaps we can adjust the return value to return what you typed in itemExists, line 8

good call, refactored.

i hate waited resources. nothing unused, nothing undefined. as it should be in code and life

@benjaminpaige benjaminpaige changed the title Te bnc es fix(te): Refactor TEs to use authority and lots of cleanup Jan 23, 2025
Copy link
Contributor

🎉 This PR is included in version 1.5.0-val.113 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants