GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Firestore: Add @Deprecated annotation to getCollections by schmidt-sebastian · Pull Request #5916 · googleapis/google-cloud-java

Conversation

@schmidt-sebastian

@schmidt-sebastian schmidt-sebastian commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

These methods are deprecated as per the JavaDoc but we should probably use an Annotation as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2019
@schmidt-sebastian
Add @deprecated annotation to getCollections
497a039
@schmidt-sebastian
schmidt-sebastian force-pushed the mrschmidt/adddeprecated branch from f6a9c43 to 497a039 Compare July 29, 2019 18:24
@schmidt-sebastian schmidt-sebastian assigned BenWhitehead Jul 29, 2019
@schmidt-sebastian
schmidt-sebastian requested a review from BenWhitehead July 29, 2019 18:24
@BenWhitehead

BenWhitehead commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

I'm okay with the additional detail, but the javadocs don't seem to provide an alternative of how the users is supposed to be able to do this sort of operation. Do you know what the replacement is that we could refer to?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@schmidt-sebastian

schmidt-sebastian commented Jul 29, 2019

Copy link
Copy Markdown
Contributor Author

The JavaDoc's deprecated comments do say to use listCollections(). GitHub decided that is not worth showing :/ Is there something else we should be doing?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BenWhitehead

BenWhitehead commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

Ah, so it does my mistake. LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

BenWhitehead
BenWhitehead approved these changes Jul 29, 2019
View reviewed changes
@BenWhitehead

BenWhitehead commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

Actually, can we change the deprecation javadocs to use this format:

   * @deprecated Use {@link #listCollections()}.

Instead of the back-ticks. This will make the link clickable in the javadocs if we do it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@schmidt-sebastian
Use @link in JavaDoc
26f2be6
@schmidt-sebastian

schmidt-sebastian commented Jul 29, 2019

Copy link
Copy Markdown
Contributor Author

Updated the JavaDoc to use the links as suggested.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Jul 29, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5916 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5916      +/-   ##
============================================
- Coverage     46.79%   46.79%   -0.01%     
- Complexity    25648    25663      +15     
============================================
  Files          2456     2456              
  Lines        267593   267593              
  Branches      30564    30559       -5     
============================================
- Hits         125229   125228       -1     
- Misses       133105   133106       +1     
  Partials       9259     9259
Impacted Files Coverage Δ Complexity Δ
.../com/google/cloud/firestore/DocumentReference.java 73.25% <ø> (ø) 31 <0> (ø) ⬇️
...ain/java/com/google/cloud/pubsub/v1/Publisher.java 89.54% <0%> (-0.35%) 40% <0%> (ø)

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 b212217...26f2be6. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

BenWhitehead
BenWhitehead approved these changes Jul 29, 2019
View reviewed changes
@schmidt-sebastian
schmidt-sebastian merged commit 722b079 into master Jul 30, 2019
@kolea2 kolea2 mentioned this pull request Jul 31, 2019
Release google-cloud-java v0.103.0 #5950
Merged
@Neenu1995
Neenu1995 deleted the mrschmidt/adddeprecated branch July 6, 2022 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@BenWhitehead BenWhitehead BenWhitehead approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@BenWhitehead BenWhitehead

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@schmidt-sebastian @BenWhitehead @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.