Skip to content

Add support for listing recordsets across all zones - #3688

Merged
mandre merged 1 commit into
gophercloud:mainfrom
Sharpz7:dns-recordsets-list-all
May 27, 2026
Merged

mandre merged 1 commit into
gophercloud:mainfrom
Sharpz7:dns-recordsets-list-all

Conversation

@Sharpz7

@Sharpz7 Sharpz7 commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

This change introduces a new ListAll function and helper URL builder to expose the Designate /recordsets endpoint via gophercloud. This allows callers to retrieve recordsets across all zones, in addition to the existing per-zone ListByZone helper.

The new ListAll function:

  • Reuses the existing ListOpts/ListOptsBuilder types for filtering, sorting, and pagination.
  • Returns a pagination.Pager consistent with other list operations in this package.

Fixes #3687

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

TODO

@github-actions github-actions Bot added edit:dns This PR updates dns code semver:minor Backwards-compatible change backport-v2 This PR will be backported to v2 labels Apr 6, 2026
@coveralls

coveralls commented Apr 6, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 64.021% (+0.008%) from 64.013% — Sharpz7:dns-recordsets-list-all into gophercloud:main

@mandre mandre 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.

Thanks! The code looks good (apart from the misplaced listAllRecordSetsURL() function) but I would really like tests before we merge it. It should be relatively easy to add both unit tests and acceptance tests.

Comment thread openstack/dns/v2/recordsets/requests.go Outdated
Comment thread openstack/dns/v2/recordsets/requests.go
@Sharpz7

Sharpz7 commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @mandre . Happy to do all of that

@Sharpz7

Sharpz7 commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

@mandre I think that is it ready to go

@mandre

mandre commented May 21, 2026

Copy link
Copy Markdown
Contributor

@mandre I think that is it ready to go

Sorry I missed the ping. I'll take a look today.

@mandre

mandre commented May 21, 2026

Copy link
Copy Markdown
Contributor

Would you be able to squash your changes before we merge?

@Sharpz7

Sharpz7 commented May 25, 2026

Copy link
Copy Markdown
Contributor Author

@mandre are you not able to squash on the merge side - just for your reference? Regardless, I'll do it today. Thank you :))

@mandre

mandre commented May 27, 2026

Copy link
Copy Markdown
Contributor

@mandre are you not able to squash on the merge side - just for your reference? Regardless, I'll do it today. Thank you :))

Apparently not anymore since we enabled merge queue. This is what the github UI looks like now:

image

I might have been able to push to your branch directly, I'm going to give it a try.

This change introduces a new ListAll function and helper URL builder to
expose the Designate /recordsets endpoint via gophercloud. This allows
callers to retrieve recordsets across all zones, in addition to the
existing per-zone ListByZone helper.

The new ListAll function:
- Reuses the existing ListOpts/ListOptsBuilder types for filtering,
  sorting, and pagination.
- Returns a pagination.Pager consistent with other list operations in
  this package.
@mandre
mandre force-pushed the dns-recordsets-list-all branch from 803b93a to ef1e621 Compare May 27, 2026 15:55
@mandre
mandre enabled auto-merge May 27, 2026 15:55
@kayrus

kayrus commented May 27, 2026

Copy link
Copy Markdown
Contributor
Screenshot_20260527_180021

we can enable squash

@Sharpz7

Sharpz7 commented May 27, 2026 •

Copy link
Copy Markdown
Contributor Author

@mandre apologizes I had meetings and was just about to do the squash now!

I appreciate your time greatly.

@mandre
mandre added this pull request to the merge queue May 27, 2026
Merged via the queue into gophercloud:main with commit 0e3d8eb May 27, 2026
64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:dns This PR updates dns code semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ListAll functionality to recordsets

4 participants