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: Move intelligence from helpers.js to Go code #3273

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

Conversation

tlimoncelli
Copy link
Contributor

Issue:

Records such as A, CNAME, and so on are entirely processed in helpers.js. This makes it difficult to do unit testing, or process more complex record types such as LOC.

Resolution:

With this PR, we begin migrating the intelligence from helpers.js to the Go code. Instead of fully processing record data in helpers.js, we blindly pass the parameters are raw data. The Go code then converts these "raw" records to normal RecordConfigs.

A downside is that a lot of the Go code is repetitive. However, we will eventually automatically generate this code. Hopefully that will make that code generated automatically.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Changes detected by Check Git Status Action

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