Skip to content

doc(storage): improve {Bucket,Object}Metadata docs#8434

Merged
coryan merged 2 commits into
googleapis:mainfrom
coryan:doc-storage-object-metadata-accessors
Feb 23, 2022
Merged

doc(storage): improve {Bucket,Object}Metadata docs#8434
coryan merged 2 commits into
googleapis:mainfrom
coryan:doc-storage-object-metadata-accessors

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Feb 22, 2022

The documentation was not rendering correctly. It was reusing the
description from one function to many unrelated functions. In addition,
the groups were also rendering incorrectly.

After re-reading the Doxygen documentation it seems that

/// @name Group description
///@{
... grouped member functions
///@}

Is the "Right Thing":tm:

Fixes #8429.


This change is Reviewable

The documentation was not rendering correctly. It was reusing the
description from one function to many unrelated functions. In addition,
the groups were also rendering incorrectly.

After re-reading the Doxygen documentation it seems that

```cc
/// @name Group description
///@{
... grouped member functions
///@}
```

Is the "Right Thing":tm:
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Feb 22, 2022
@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: a8c0964a6d905115864f7fc2946580ece1948989

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@coryan
Copy link
Copy Markdown
Contributor Author

coryan commented Feb 22, 2022

Rendered to PDF:

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 22, 2022

Codecov Report

Merging #8434 (0897579) into main (1e165e8) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8434   +/-   ##
=======================================
  Coverage   95.09%   95.09%           
=======================================
  Files        1366     1366           
  Lines      122339   122339           
=======================================
+ Hits       116335   116338    +3     
+ Misses       6004     6001    -3     
Impacted Files Coverage Δ
google/cloud/storage/bucket_metadata.h 98.93% <ø> (ø)
google/cloud/storage/object_metadata.h 100.00% <ø> (ø)
...le/cloud/storage/internal/curl_download_request.cc 90.10% <0.00%> (+0.35%) ⬆️
...le/cloud/internal/default_completion_queue_impl.cc 97.72% <0.00%> (+0.56%) ⬆️
...torage/examples/storage_service_account_samples.cc 97.64% <0.00%> (+0.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e165e8...0897579. Read the comment docs.

@coryan coryan marked this pull request as ready for review February 22, 2022 23:42
@coryan coryan requested a review from a team February 22, 2022 23:42
Comment thread google/cloud/storage/object_metadata.h Outdated
Comment thread google/cloud/storage/object_metadata.h Outdated
Comment thread google/cloud/storage/object_metadata.h Outdated
return *this;
}

/// Returns all the Object's metadata entries,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/,/./

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Comment thread google/cloud/storage/object_metadata.h Outdated
//@}
///@}

/// Returns `true` if the object has a `owner` attributes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/a owner/an owner/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Comment thread google/cloud/storage/object_metadata.h Outdated
/**
* The generation of the object metadata.
*
* Note that changes to the object metadata (e.g. changing the `cacheControl`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

optionally use @note

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@coryan coryan enabled auto-merge (squash) February 23, 2022 01:42
@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: 0897579a236d6aced3f206a8ae35d16f11099651

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@coryan coryan merged commit 083d568 into googleapis:main Feb 23, 2022
@coryan coryan deleted the doc-storage-object-metadata-accessors branch February 23, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ObjectMetadata has incorrect published documents

3 participants