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

Refactor codebase using generic GetPointer function #1006

Merged
merged 5 commits into from
Aug 29, 2023

Conversation

bjee19
Copy link
Contributor

@bjee19 bjee19 commented Aug 28, 2023

Proposed changes

Problem: We were still using typed GetPointer functions even after we had created a generic GetPointer function.

Solution: Replaced all uses of typed GetPointer functions with the generic GetPointer function and removed typed GetPointer functions from the codebase.

Testing: Since these changes only affected test files, I ensured that all the tests still pass.

Closes #822

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@bjee19 bjee19 requested a review from a team as a code owner August 28, 2023 22:34
@github-actions github-actions bot added the tech-debt Short-term pain, long-term benefit label Aug 28, 2023
Copy link
Contributor

@sjberman sjberman left a comment

Choose a reason for hiding this comment

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

Nice work!

Copy link
Contributor

@kate-osborn kate-osborn left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@ciarams87 ciarams87 left a comment

Choose a reason for hiding this comment

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

Excellent stuff! 🎉

@bjee19 bjee19 merged commit 13dc025 into nginxinc:main Aug 29, 2023
22 checks passed
@bjee19 bjee19 deleted the debt/generic-getpointer branch September 1, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Short-term pain, long-term benefit
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use the generic GetPointer instead of a typed GetPointer*
4 participants