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 — Add support for object change notification to storage · Issue #357 · googleapis/google-cloud-python

Add support for object change notification to storage #357

New issue
Copy link
New issue
Copy link
Closed
Closed
Add support for object change notification to storage#357
Copy link
Assignees
lukesneeringer
Labels
api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Storage Future

Description

@tseaver
tseaver
opened on Nov 8, 2014
Issue body actions

See: https://cloud.google.com/storage/docs/object-change-notification

E.g., we could add a watch() method to Bucket, which would register the notification URL and return an instance of a new Channel class: that instance would have a close() method which would turn off the notifications.

Reacted by Jeffrey Godwyll

Activity

Next
  1. tseaver
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: storageIssues related to the Cloud Storage API.
    on Nov 8, 2014
  2. tseaver commented on Nov 8, 2014

    @tseaver
    tseaver
    on Nov 8, 2014
    ContributorAuthor
    More actions

    Supporting OCN is a prerequisite to doing "safe" caching of bucket keys, as suggested in #19.

  3. tseaver commented on Jan 30, 2015

    @tseaver
    tseaver
    on Jan 30, 2015
    ContributorAuthor
    More actions

    @jgeewax can you give us a feel for how important this issue (and #19) are? Should they be blockers for Storage M1?

  4. dhermes commented on Jan 30, 2015

    @dhermes
    dhermes
    on Jan 30, 2015
    Contributor
    More actions

    FWIW, there are 34 methods in storage and this is one of them. This would target storage.channels.stop and storage.objects.watchAll.


    Can move this elsewhere, but is a list of the other 32 methods, not all of which we support

    Each of the 5 resources

    • buckets
    • bucketAccessControls
    • objects
    • objectAccessControls
    • defaultObjectAccessControls

    have the 6 verbs insert, get, list, update, patch, delete and in addition there is a way to concatenate objects and to copy them

    • storage.objects.compose
    • storage.objects.copy
  5. tseaver commented on Jan 30, 2015

    @tseaver
    tseaver
    on Jan 30, 2015
    ContributorAuthor
    More actions

    @dhermes, #19 was a request for a way to cache all the blob IDs in a bucket: I have the sense that we cannot "safely" provide that feature without having a way to invalidate the cache, which requires the storage.objects.watchAll API (and therefore storage.channels.stop).

  6. dhermes commented on Jan 30, 2015

    @dhermes
    dhermes
    on Jan 30, 2015
    Contributor
    More actions

    Yes the "get all keys" / "get all objects" concept is not something that really applies to a mature application (one with more than a few thousand objects). As for the people "just getting started", the two HTTP requests won't be such a big deal. What's more, we shouldn't be encouraging people to get a list of "all objects" locally; they should only use what they need (e.g. for serving a request for a signed-in user).

  7. jgeewax commented on Jan 30, 2015

    @jgeewax
    jgeewax
    on Jan 30, 2015
    Contributor
    More actions

    I think this one should probably not be a total blocker for a 1.0 release, but I really like the API that @tseaver suggests. It makes sample code look like:

    bucket = storage.get_bucket('...')
    
    # Set up a 'watch' on the bucket (ie, tell it to ping a URL when things happen):
    channel = bucket.watch('http://...', channel_id='my-magical-channel')
    channel2 = bucket.watch('http://...')
    
    # Stop notifications..
    channel.close()
    channel2.close()
    
    # Stop all notifications (can we do this?)
    # Is this the right name? Maybe bucket.get_notification_channels() ?
    channels = bucket.get_channels()
    for channel in channels:
      channel.close()
    
    # Get a channel by ID and stop those notifications.
    # Maybe bucket.get_notification_channel() ?
    channel = bucket.get_channel('my-magical-channel')
    channel.close()
  8. jgeewax
    added this to the Storage Stable milestone on Jan 30, 2015
  9. dhermes commented on Feb 10, 2015

    @dhermes
    dhermes
    on Feb 10, 2015
    Contributor
    More actions

    Based on "I think this one should probably not be a total blocker for a 1.0 release" I'm moving Stable -> Future.

  10. dhermes
    modified the milestones: Storage Future, Storage Stable on Feb 10, 2015
  11. lukesneeringer
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Apr 19, 2017
  12. lukesneeringer commented on Aug 11, 2017

    @lukesneeringer
    lukesneeringer
    on Aug 11, 2017
    Contributor
    More actions

    Hello,
    One of the challenges of maintaining a large open source project is that sometimes, you can bite off more than you can chew. As the lead maintainer of google-cloud-python, I can definitely say that I have let the issues here pile up.

    As part of trying to get things under control (as well as to empower us to provide better customer service in the future), I am declaring a "bankruptcy" of sorts on many of the old issues, especially those likely to have been addressed or made obsolete by more recent updates.

    My goal is to close stale issues whose relevance or solution is no longer immediately evident, and which appear to be of lower importance. I believe in good faith that this is one of those issues, but I am scanning quickly and may occasionally be wrong. If this is an issue of high importance, please comment here and we will reconsider. If this is an issue whose solution is trivial, please consider providing a pull request.

    Thank you!

  13. lukesneeringer
    closed this as completedon Aug 11, 2017
  14. 22 remaining items

  15. parthea
    added 11 commits that reference this issue on Nov 24, 2025

    Dual templates (#357)

    37a814f

    fix: ensure exception is available when BackgroundConsumer open strea…

    2eae3a7

    fix: fix regression in `bidi` causing `Thread-ConsumeBidirectionalStr…

    f9a53fe

    fix: avoid scribbling on (reused) bind param (#365)

    31396e6

    chore(deps): update all dependencies (#357)

    bd77489

    chore: new owl bot post processor docker image (#357)

    18f305c

    feat: add Samples section to CONTRIBUTING.rst (#357)

    ca3cb25

    chore: release 2.6.0 (#337)

    a662cfc

    feat: add Samples section to CONTRIBUTING.rst (#357)

    ab6b4b1

    chore: release 2.6.0 (#337)

    3a21ae1

    Update dependency cachetools to v3 (#357)

    fb10def
  16. parthea
    added 4 commits that reference this issue on Mar 2, 2026

    chore(python): update .kokoro/requirements.txt (#357)

    854396d

    dbapi: add BYTES param_types to byte strings

    ae837de

    build(deps): Bump requests from 2.28.1 to 2.31.0 (#357)

    7244901

    chore(python): update dependencies in /.kokoro (#357)

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

Metadata

Metadata

Assignees

  • @lukesneeringer
    lukesneeringer

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    • Storage Future

    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.