Skip to content

feat: support for updating and deleting share access rule metadata - #3921

Open
simonostendorf wants to merge 3 commits into
gophercloud:mainfrom
simonostendorf:feat/sharedfilesystems-shareaccessrule-metadata
Open

feat: support for updating and deleting share access rule metadata#3921
simonostendorf wants to merge 3 commits into
gophercloud:mainfrom
simonostendorf:feat/sharedfilesystems-shareaccessrule-metadata

Conversation

@simonostendorf

Copy link
Copy Markdown
  • Implement UpdateMetadata and DeleteMetadatum functions in shareaccessrules.
  • Add corresponding test cases for metadata update and deletion.
  • Enhance GrantAccess to include metadata options.
  • Update related request and result structures to handle metadata.

- Implement UpdateMetadata and DeleteMetadatum functions in shareaccessrules.
- Add corresponding test cases for metadata update and deletion.
- Enhance GrantAccess to include metadata options.
- Update related request and result structures to handle metadata.

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

Looks good overall. I'd like to see how tests goes.

@simonostendorf

Copy link
Copy Markdown
Author

Looks good overall. I'd like to see how tests goes.

@winiciusallan thanks! Currently the tests are waiting for approval

@github-actions github-actions Bot added the semver:major Breaking change label Aug 23, 2026
@coveralls

coveralls commented Aug 23, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 63.574% (+0.04%) from 63.534% — simonostendorf:feat/sharedfilesystems-shareaccessrule-metadata into gophercloud:main

Comment thread openstack/sharedfilesystems/v2/shares/results.go Outdated
@simonostendorf

Copy link
Copy Markdown
Author

One question: Why is the pr marked as major version, I thought ive only added a new feature so it should be minor, right?

@winiciusallan

Copy link
Copy Markdown
Contributor

One question: Why is the pr marked as major version, I thought ive only added a new feature so it should be minor, right?

Per the job logs

 github.com/gophercloud/gophercloud/v2/openstack/sharedfilesystems/v2/shares
    Incompatible changes:
    - AccessRight: old is comparable, new is not
    - GrantAccessOpts: old is comparable, new is not
    Compatible changes:
    - AccessRight.Metadata: added
    - GrantAccessOpts.Metadata: added

Code relying on deeply comparing the struct might have breaking changes because of the new fields.

Comment thread internal/acceptance/openstack/sharedfilesystems/v2/shareaccessrules_test.go Outdated
Comment thread openstack/sharedfilesystems/v2/shares/requests.go Outdated
Comment thread openstack/sharedfilesystems/v2/shares/results.go Outdated
Comment thread openstack/sharedfilesystems/v2/shares/requests.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:sharedfilesystems This PR updates sharedfilesystems code semver:major Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants