Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@aponcedeleonch
Copy link
Member

It was missing an import

@alex-mcgovern
Copy link
Contributor

I think we need to take another look at this, I seem to be getting duplicate entries in the openapi json when I run this locally, and there's also this log line being included in the json file:

2025-01-17 13:26:06 [debug    ] Connecting to DB from path: /Users/alexmcgovern/src/codegate/codegate_volume/db/codegate.db
2025-01-17 13:26:06 [debug    ] Connecting to DB from path: /Users/alexmcgovern/src/codegate/codegate_volume/db/codegate.db

I think we should remove this debug log here:

logger.debug(f"Connecting to DB from path: {self._db_path}")

@alex-mcgovern
Copy link
Contributor

I have prepared an alternative PR where we mount the entire dashboard router under the v1 api router: #634

We can then just use the fastAPI app to build the openAPI schema, overall is a lot cleaner I think.

@alex-mcgovern
Copy link
Contributor

Closed in favor of #634

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants