Giter Site home page Giter Site logo

x's Introduction

logo

infratographer/x

Infratographer specific shared extensions and libraries

x's People

Contributors

andy-v-h avatar dependabot[bot] avatar fishnix avatar jabielecki avatar jaormx avatar jnschaeffer avatar mikemrm avatar nicolerenee avatar renovate[bot] avatar rizzza avatar sfunkhouser avatar tommyjcarpenter avatar tylerauerbeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

x's Issues

Document x config

We are missing documentation on how x packages config is expected to work. Most of the x packages are doing it the correct way, but we need to document the pattern and update the packages to all follow this pattern.

Initial Permissions API client

Once the permissions API is defined for the client, we should move the client implementation into x so that it is easily available to all applications.

Within a delete resolvers, deleting > 1 item fails in the eventhook

Describe the bug
Say for example, we are deleting an annotationNamespace and all of it's associated annotations within one call to the ent client.

r.client.Annotation.Delete().Where(annotation.AnnotationNamespaceID(id)).Exec(ctx)

The eventhook for the annotation delete will fail because it is expecting only a singular deletion.

We receive the following error

"object doesn't have an id "

To Reproduce
Code up a delete resolver to delete all based on some predicate

Expected behavior
For the delete eventhook to be able to handle > 1 deletions of an thing at a time, rather than having to iterate and DeleteOne(id) at a time within the resolver.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Proposal: ZeroLog support and new Logger interface

Proposal

I'm proposing that we switch to ZeroLog as the default logger, so we would want to add a zerologx package that provides config and everything around logging.

Things to do

  • Implement zerologx
    • Provides config options for log level (info, warn, debug, trace, etc)
  • Implement logging interface
    • x packages should use an interface for logging instead of a specific logger implementation so that you can bring your own logger as long as it matches the interface. The interface can look like zerolog's logger since that is our default and it will make life a little easier.
  • Switch x packages to use new logging interface

goosex: Missing logger

Describe the bug
If you run migrations using goosex and they fail but you don't provide a logger to goosex via the SetLogger call, then you will get a panic: runtime error: invalid memory address or nil pointer dereference.

Expected behavior
We should default the logger to a standard logger or a noop logger. I'm open to either.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update module github.com/cockroachdb/cockroach-go/v2 to v2.3.8
  • fix(deps): update module github.com/gin-contrib/requestid to v1.0.2
  • fix(deps): update module github.com/gin-contrib/zap to v1.1.3
  • fix(deps): update module entgo.io/contrib to v0.5.0
  • fix(deps): update module github.com/jmoiron/sqlx to v1.4.0
  • fix(deps): update module github.com/pressly/goose/v3 to v3.20.0
  • fix(deps): update module golang.org/x/oauth2 to v0.20.0
  • chore(deps): update golangci/golangci-lint-action action to v5
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
.devcontainer/Dockerfile
  • mcr.microsoft.com/devcontainers/go 1-1.22-bullseye
github-actions
.github/workflows/codeql.yml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • github/codeql-action v3
.github/workflows/lint-go.yml
  • actions/checkout v4
  • actions/setup-go v5
  • golangci/golangci-lint-action v4
.github/workflows/test-go.yml
  • actions/checkout v4
  • actions/setup-go v5
  • codecov/codecov-action v4
gomod
go.mod
  • go 1.22
  • go 1.22.1
  • entgo.io/contrib v0.4.5
  • entgo.io/ent v0.13.1
  • github.com/99designs/gqlgen v0.17.45
  • github.com/MicahParks/jwkset v0.5.17
  • github.com/MicahParks/keyfunc/v3 v3.3.2
  • github.com/XSAM/otelsql v0.29.0
  • github.com/brianvoe/gofakeit/v7 v7.0.2
  • github.com/cockroachdb/cockroach-go/v2 v2.3.7
  • github.com/docker/go-connections v0.5.0
  • github.com/gin-contrib/requestid v1.0.0
  • github.com/gin-contrib/zap v1.1.1
  • github.com/gin-gonic/gin v1.9.1
  • github.com/go-jose/go-jose/v3 v3.0.3
  • github.com/golang-jwt/jwt/v5 v5.2.1
  • github.com/jackc/pgx/v5 v5.5.5
  • github.com/jaevor/go-nanoid v1.3.0
  • github.com/jmoiron/sqlx v1.3.5
  • github.com/labstack/echo-contrib v0.16.0
  • github.com/labstack/echo-jwt/v4 v4.2.0
  • github.com/labstack/echo/v4 v4.11.4
  • github.com/labstack/gommon v0.4.2
  • github.com/lib/pq v1.10.9
  • github.com/nats-io/nats-server/v2 v2.10.12
  • github.com/nats-io/nats.go v1.34.1
  • github.com/pressly/goose/v3 v3.19.2
  • github.com/spf13/cobra v1.8.0
  • github.com/spf13/pflag v1.0.5
  • github.com/spf13/viper v1.18.2
  • github.com/testcontainers/testcontainers-go v0.29.1
  • github.com/testcontainers/testcontainers-go/modules/postgres v0.29.1
  • github.com/vektah/gqlparser/v2 v2.5.11
  • github.com/zsais/go-gin-prometheus v0.1.0
  • go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin v0.49.0
  • go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho v0.49.0
  • go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0
  • go.opentelemetry.io/otel v1.24.0
  • go.opentelemetry.io/otel/exporters/jaeger v1.17.0
  • go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0
  • go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0
  • go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0
  • go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.24.0
  • go.opentelemetry.io/otel/sdk v1.24.0
  • go.uber.org/goleak v1.3.0
  • go.uber.org/zap v1.27.0
  • golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8@a685a6edb6d8
  • golang.org/x/oauth2 v0.19.0
  • github.com/cenkalti/backoff/v4 v4.3.0
  • github.com/google/uuid v1.6.0
  • github.com/labstack/echo v3.3.10+incompatible
  • github.com/stretchr/testify v1.9.0
  • go.opentelemetry.io/otel/trace v1.24.0
  • go.step.sm/crypto v0.44.2
  • go.uber.org/multierr v1.11.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.