Coder Social home page Coder Social logo

gcp-pilot's People

Contributors

diegodfreire avatar dwalterjansen avatar guilacerda avatar guilhermearaujo avatar joaodaher avatar lucasgomide avatar lucassouto avatar rodolfo3 avatar rodrigoalmeidaee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gcp-pilot's Issues

AppEngine NotFound and silent error when initialising project location

In the GCP Pilot API base class here, the location is set, in the following priority:

  • explicitly provided value
  • default from a setting
  • project default determined using AppEngine here

I think historically, GCP projects had a default AppEngine resource always available. Nowadays they don't (I think this only happened in the last year or so).

This code handles a NotFound exception silently, catching it to return None. This however, causes many problems later on, a variety of NotFound or PermissionDenied errors when trying to create or access resources at project/<project-id>/location/None/rest-of-it

I think that it's an antipattern allow the location value to be None at the end of the base init, we should know at the point of failure there's been an error rather than much later. How about somehting like:

class GoogleCloudPilotAPI(abc.ABC):
    def __init__(
        #stuff
    ):
        #stuff
        self.location = self._set_location(location=location)
        if location is None:
            raise NoLocationError("Couldn't set location from either explicit argument, GCP_LOCATION environment variable or from AppEngine")

?

Is this project alive and open to collaboration?

So I've submitted an issue that never got touched, and assumed this project was dead... but have noticed a couple of version bumps recently.

Questions:

  • is someone maintaining it?

  • if so, who?

  • where are the contributing guidelines and what's the release flow?

  • the only issues on this board are raised by me, so where's the issues board you're using? And is there a release roadmap/plan?

  • do you need help?

  • have you considered getting sponsorship from Google (because really, this is a very good project compared to google's in-house "sdks" which are a nightmare to work with)?

(and because I noticed that you've deprecated support for python <3.10)

  • are you aware google use ridiculously out of date python versions (e.g. dataflow only supports up to 3.9), so to get any kind of acceptance you'll need to keep some backward compatibility?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.