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 — createTopic vs topic can be confusing? · Issue #669 · googleapis/google-cloud-node

createTopic vs topic can be confusing? #669

New issue
Copy link
New issue
Copy link
Closed
#685
Closed
createTopic vs topic can be confusing?#669
#685
Copy link
Assignees
stephenplusplus
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@jgeewax
jgeewax
opened on Jun 17, 2015
Issue body actions

Right now, to "create a topic", people jump immediately to createTopic -- which gives them back a topic, but then the second time they try to create a topic, it'll cause problems, right? What people typically want in their code is topic() with {autoCreate: true} ...

So... a couple options

  1. Remove / privatize createTopic (why create a topic to not use it...?)
  2. Document in createTopic that you probably want topic()
    1. and update topic()'s options to auto-create by default

Thoughts?

Activity

  1. jgeewax
    added
    docs
    api: pubsubIssues related to the Pub/Sub API.
    on Jun 17, 2015
  2. stephenplusplus commented on Jun 22, 2015

    @stephenplusplus
    stephenplusplus
    on Jun 22, 2015
    Contributor
    More actions

    I like privatizing createTopic and autocreating by default. RE: "(why create a topic to not use it...?)", should we loop in a Pub/Sub-er to see if we should continue to support that?

  3. jgeewax commented on Jun 22, 2015

    @jgeewax
    jgeewax
    on Jun 22, 2015
    ContributorAuthor
    More actions

    Hmm -- I think we're still pretty early, so it's not crazy to deprecate the method, and the "full deprecation" being that it's not longer in the docs. Thoughts?

  4. stephenplusplus commented on Jun 22, 2015

    @stephenplusplus
    stephenplusplus
    on Jun 22, 2015
    Contributor
    More actions

    SGTM.

  5. stephenplusplus
    self-assigned this
    on Jun 22, 2015
  6. stephenplusplus
    closed this as completedin #685on Jun 26, 2015
  7. sofisl
    added a commit that references this issue on Sep 27, 2022

    docs(samples): include metadata file, add exclusions for samples to h…

    b6bd178
  8. sofisl
    added 3 commits that reference this issue on Nov 9, 2022

    docs(samples): include metadata file, add exclusions for samples to h…

    9fba13c

    fix(deps): use google-gax v3.5.2 (#669)

    0b06be6

    chore(main): release 3.1.0 (#669)

    6b87bb6
  9. sofisl
    added a commit that references this issue on Jan 10, 2023

    build: add generated samples to .eslintignore (#669)

    c5b280b
  10. sofisl
    added 2 commits that reference this issue on Jan 24, 2023

    fix: do not modify options object, use defaultScopes (#669)

    9772e7b

    fix: do not modify options object, use defaultScopes (#669)

    31d3937
  11. miguelvelezsa
    added a commit that references this issue on Jul 23, 2025

    chore: use c8 for coverage (#669)

    652a2ad
  12. sofisl
    added 2 commits that reference this issue on Feb 3, 2026

    fix: apache license URL (#468) (#669)

    0d36298

    build: point to team in correct org (#669)

    d3f7341
  13. sofisl
    added a commit that references this issue on Feb 17, 2026

    build: point to team in correct org (#669)

    db276ff
  14. sofisl
    added 2 commits that reference this issue on Feb 25, 2026

    chore(deps): update dependency @types/node to v11.13.4 (#669)

    f6b99b3

    fix(deps): update dependency google-auth-library to v5 (#669)

    290e413
  15. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    chore(deps): update dependency mocha to v7 (#669)

    9d53f2b
  16. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore(deps): update dependency @types/node to v11.13.4 (googleapis#669)

    88aa8ba
  17. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    feat: drop support for node.js 8.x (#669)

    520bf74

    feat: drop support for node.js 8.x (#669)

    51f02bf
  18. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    feat: drop support for node.js 8.x (#669)

    8ccb01e
  19. thiyaguk09
    added a commit that references this issue on May 5, 2026

    feat: drop support for node.js 8.x (googleapis#669)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.