Skip to content

Issue 52 record update payload - VDNS-428 - #92

Merged
JoshSEdwards merged 8 commits into
vinyldns:masterfrom
mschaefer28:issue-52-record-update-payload
Aug 18, 2026
Merged

JoshSEdwards merged 8 commits into
vinyldns:masterfrom
mschaefer28:issue-52-record-update-payload

Conversation

@mschaefer28

@mschaefer28 mschaefer28 commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Problem: Issues with the created/updated datetime fields not being accepted in the update_record_set call.

Approach: Adjusting the update_record_set function to call a helper which creates a new payload leaving out any unnecessary fields that the API does not require (created, fqdn, updated, status etc). This way we will not receive any datetime parsing errors since the fields are not included. Only did this at the update record set level so it does not affect other API calls.

Validation: Created unit test that passes in bad fields to the payload and double checks that the field doesnt exist in the body when checked. Will assert an error if it does.

Closes #52

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@9fee564). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #92   +/-   ##
=========================================
  Coverage          ?   93.89%           
=========================================
  Files             ?        9           
  Lines             ?     1147           
  Branches          ?        0           
=========================================
  Hits              ?     1077           
  Misses            ?       70           
  Partials          ?        0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JoshSEdwards JoshSEdwards left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@JoshSEdwards
JoshSEdwards merged commit badf972 into vinyldns:master Aug 18, 2026
2 checks passed
JoshSEdwards added a commit that referenced this pull request Aug 18, 2026
* adding in unit test to reproduce and fix datetime error /bug. updated bug fix guess to record.py

* removing unecessary fields in update_record_set payload to avoid datetime parsing isues

* fixing formatting issues

* fixing formatting issues

* fixing formatting issues

* fixing formatting issues

* fixing formatting issues

* fixing formatting issues

Co-authored-by: mschaefer28 <315495672+mschaefer28@users.noreply.github.com>
@arpit4ever arpit4ever linked an issue Aug 19, 2026 that may be closed by this pull request
@JoshSEdwards JoshSEdwards mentioned this pull request Sep 9, 2026
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.

Date fields throw BadRequest

3 participants