Repository navigation
Conversation
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.83.1 to 1.83.2. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.83.1...v1.83.2) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-version: 1.83.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…olang.org/grpc-1.83.2 Bump google.golang.org/grpc from 1.83.1 to 1.83.2
…o refactor-docs
Initialize Sentry with the DSN from the environment instead of a hardcoded value. An unset SENTRY_DSN leaves the DSN empty, which the SDK handles by installing a no-op transport, so development environments stop reporting to Sentry without needing SENTRY_DSN="" in every contributor's .env.
config(sentry): Read the Sentry DSN from SENTRY_DSN
Add unit tests for GetPortString, GetEnvMongoURI, GetClubsDBUri, GetEnvLogin, GetEnvLimit and GetEnvMaxUploadSize, covering the unset, parsed, unparseable and hard-capped paths. GetEnvMongoURI and GetEnvLogin end in log.Fatalf, which would take the test binary down with them, so those cases run in a subprocess and assert the exit code. The subprocess runs from an empty directory so a contributor's own .env cannot satisfy the variable under test.
fix: return 404 for missing section course (#433)
test(configs): Cover the remaining env reading functions
KBui4
marked this pull request as ready for review
November 14, 2026 22:37
Contributor
Author
|
I think I'll leave it so gqlgen autobinds to /graph/model for now. I'll look into binding with the REST schema models once I get to figuring out what to do with events. |
replace mock ids with valid ids in tests
Issue 445 CLUBS_DB_URI Optionality
Refactor docs
feat(api): add degrees endpoint
fix: redirect root route to Swagger UI
…eturn-the-available-terms 382 create the endpoint that return the available terms
#401 Fixed all minor golangci-lint errors + integrated golangci-lint into CI/CD
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.45.0 to 1.47.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](open-telemetry/opentelemetry-go@v1.45.0...v1.47.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/sdk dependency-version: 1.47.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
…elemetry.io/otel/sdk-1.47.0 build(deps): bump go.opentelemetry.io/otel/sdk from 1.45.0 to 1.47.0
…o graph-refactor
golangci-lint defaults to 3 issues max so if there's more than 3 issues, you'd have to run the lint command multiple times
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Essentially applies improvements I figured out while making the GraphQL workshop.
The main change is switching from gqlgen's ID, which maps to a string type after generating, to ObjectID, a custom scalar that maps to bson.ObjectID after generating. This means we don't need all those transform functions, and we don't need to redefine DB models (e.g., we don't need both the DBCourse and Course models, just the Course model).
This also pulls the latest changes from
develop, sographql-v2should be ready to merge intodevelopimmediately afterwards, provided that there are no new changes in both of those branches.List of refactoring changes:
scalars.godb_models.gosince we don't need separate DB models and transform functions anymore, and removeddb_models_test.gosince we no longer need the tests for transform functionsmodels.gofor manually defining models with ID reference; gqlgen will use these models instead of regenerating them because of the autobind option ingqlgen.ymlgqlgen.ymlto using the inline directive in the schema; I think it's easier to do it this way compared to adding it at the end of the configuration file, and also, I don't really want people messing around withgqlgen.ymlif not necessarybuild.batto use go tool for gqlgen generate instead of using a direct path as recommended from gqlgenMakefileTesting
AI Disclosure
This was more for when I was doing it for the GraphQL workshop but just for adding and using the custom marshaller and unmarshaller for the ObjectID scalar.
Checklist