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

chore: use record id & lookup queries to more reliably update #3

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

Niallfitzy1
Copy link
Collaborator

Expands on learnings from #2 to try again to fix #1

  • Uses the Record.ID to update DNS records when present
  • When not present queries for the matching record & updates by id as long as one match is found
  • If no match is found we create the record
  • Similar logic is used to delete records
  • Hydrates the Created record ids as they are missing from the Porkbun response
  • Fully re-writes the tests to be more readable & explict

@Niallfitzy1 Niallfitzy1 merged commit c5d0f88 into main Sep 6, 2023
@Niallfitzy1 Niallfitzy1 deleted the lean-on-record-ids branch September 6, 2023 19:00
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.

DNS Entries are not overwritten, they are appended
1 participant