Infratographer specific shared extensions and libraries
infratographer / x Goto Github PK
View Code? Open in Web Editor NEWInfratographer specific shared extensions and libraries
License: Apache License 2.0
Infratographer specific shared extensions and libraries
License: Apache License 2.0
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.
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.
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.
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.
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.x
packages to use new logging interfaceDescribe 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.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
github.com/XSAM/otelsql
, go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin
, go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho
, go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
, go.opentelemetry.io/otel
, go.opentelemetry.io/otel/exporters/otlp/otlptrace
, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
, go.opentelemetry.io/otel/exporters/stdout/stdouttrace
, go.opentelemetry.io/otel/sdk
, go.opentelemetry.io/otel/trace
)github.com/testcontainers/testcontainers-go
, github.com/testcontainers/testcontainers-go/modules/postgres
).devcontainer/Dockerfile
mcr.microsoft.com/devcontainers/go 1-1.22-bullseye
.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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.