Skip to content

Use slices for tag qs filters - #3918

Open
stephenfin wants to merge 4 commits into
gophercloud:mainfrom
shiftstack:tags-qs-slice
Open

Use slices for tag qs filters#3918
stephenfin wants to merge 4 commits into
gophercloud:mainfrom
shiftstack:tags-qs-slice

Conversation

@stephenfin

Copy link
Copy Markdown
Contributor

This was already done for the loadbalancer service. Do it for other services.

This is a breaking change that should not be backported to v2. While here, we also fix a TODO with another filter.

@github-actions github-actions Bot added edit:networking This PR updates networking code edit:compute This PR updates compute code edit:identity This PR updates identity code semver:major Breaking change labels Aug 7, 2026
@coveralls

coveralls commented Aug 7, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 63.582%. remained the same — shiftstack:tags-qs-slice into gophercloud:main

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

I would add a few UT's that would prove the query string is built correctly.
For example assert that list opts turn into ?tags=a,b (not ?tags=a&tags=b).

Comment thread openstack/networking/v2/extensions/trunks/requests.go
@stephenfin
stephenfin marked this pull request as draft August 10, 2026 10:42
@stephenfin
stephenfin marked this pull request as ready for review August 14, 2026 11:06
@stephenfin

Copy link
Copy Markdown
Contributor Author

The networking failures are unrelated. #3945 will address them.

@winiciusallan

Copy link
Copy Markdown
Contributor

Now we have #3945 merged, I believe we can re-run the jobs. @stephenfin Would you mind triggering them?

This is more intuitive.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change ListOpts.RevisionNumber to a *int.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
@stephenfin

Copy link
Copy Markdown
Contributor Author

Now we have #3945 merged, I believe we can re-run the jobs. @stephenfin Would you mind triggering them?

I've rebased and forced pushed

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

I found another set of fields that could be potentially changed to use a slice, see

https://github.com/gophercloud/gophercloud/blob/main/openstack/orchestration/v1/stacks/requests.go#L257-L267

while we're here and if it makes sense, i believe it's worth changing.

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.

Can we also exercise this changes on servers in the acceptance tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:compute This PR updates compute code edit:identity This PR updates identity code edit:networking This PR updates networking code semver:major Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants