-
Notifications
You must be signed in to change notification settings - Fork 258
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
rgw/admin: add creation time to bucket #937
Conversation
a46ecb2
to
41d9c40
Compare
This Pull Request has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remember, a closed PR can always be reopened. Thank you for your contribution. |
@Mergifyio rebase |
5f7b028
to
8764ee3
Compare
✅ Branch has been successfully rebased |
I have added a test, but I am not sure it is the right place to add a test for this. It tests that the creation date was within a reasonable duration as I couldn't see a way to make the test server return a known date. It might be better to test the other end. I also made a test with a mock response similar to what is going on in |
This Pull Request has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remember, a closed PR can always be reopened. Thank you for your contribution. |
@phlogistonjohn since you asked for the unit test, you want to take a final look? |
And @thotz, you are of course always very welcome to have a look at the rgw changes. ;-) |
Great, I am happy that there is a test. My lack of knowledge around specific of RGW make me hesitant to approve the PR though. It has my tacit approval now :-) |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
3855a80
to
4ea4be1
Compare
The nautilus test is now failing in the same location:
I suspect this may be a real regression. Someone please look into this. Thanks! |
@thotz Can it be the case that |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nautilus test is now failing in the same location:
With nautilus removed from the CI we could consider this change to add creation time to the bucket info structure.
kicked in 😀 . |
The API endpoint for bucket stats includes a
creation_time
field which is not included in theadmin.Bucket
struct. This simply adds the field.Checklist
//go:build ceph_preview
make api-update
to record new APIsNew or infrequent contributors may want to review the go-ceph Developer's Guide including the section on how we track API Status and the API Stability Plan.
The go-ceph project uses mergify. View the mergify command guide for information on how to interact with mergify. Add a comment with
@Mergifyio
rebase
to rebase your PR when github indicates that the PR is out of date with the base branch.