Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo logs to use logs table #8611

Open
Vadman97 opened this issue May 17, 2024 — with Linear · 2 comments
Open

Redo logs to use logs table #8611

Vadman97 opened this issue May 17, 2024 — with Linear · 2 comments

Comments

Copy link
Member

UI only changes

Copy link

linear bot commented May 17, 2024

Copy link

greptile-apps bot commented May 17, 2024

To redo logs to use the logs table with UI changes, follow these steps:

  1. Update GraphQL Schema Resolvers: Modify the resolvers in /backend/private-graph/graph/schema.resolvers.go to fetch logs from the logs table.

  2. Update GraphQL Models: Ensure the models in /backend/private-graph/graph/model/models_gen.go reflect the structure of the logs table.

  3. Modify HTTP Logging Handlers: Update the logging handlers in /backend/http/logging.go to write logs to the logs table instead of the current storage mechanism.

  4. Update UI Components: Modify the UI components to display logs from the logs table. Ensure the frontend queries the updated GraphQL endpoints.

  5. Test Changes: Use /backend/http/logging_test.go to write tests that verify logs are correctly written to and read from the logs table.

References

/backend/private-graph/graph/schema.resolvers.go
/backend/private-graph/graph/model/models_gen.go
/backend/http/logging.go
/backend/http/logging_test.go

Ask Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant