RubricLab / maige

Open-source infrastructure for running natural language workflows on your codebase.
https://maige.app
GNU Affero General Public License v3.0
68 stars 4 forks source link

Save repository metadata upon webhook hit #93

Closed sarimrmalik closed 9 months ago

sarimrmalik commented 9 months ago

Once a repository (or more) is added

sarimrmalik commented 9 months ago

Maige, can you recommend a solution for this issue?

maige-app[bot] commented 9 months ago

Based on the codebase, it seems that the functionality to store repository metadata upon a webhook hit is already implemented in app/api/webhook/github/route.ts. The code handles installation-related events to sync repositories and user data to the database. When a GitHub App is installed (action === 'created'), it clones, vectorizes, and saves public code to the database using the Weaviate class. Additionally, when repositories are added or removed (action === 'added' or action === 'removed'), it updates the database accordingly in a single transaction. For incremental data addition and tracking the entire webhook lifecycle, you may want to ensure that the webhook handler is correctly processing all relevant events and that the Weaviate class methods are being called as needed. As for the loading state in the /dashboard, you might need to implement UI changes to reflect the embedding process status.

By Maige. How's my driving?

tedspare commented 9 months ago

maige pls unassign me

tedspare commented 9 months ago

maige beta unassign me

tedspare commented 9 months ago

maige assign me

tedspare commented 9 months ago

maige label this

DexterStorey commented 9 months ago

maige what are my custom instructions

maige-app[bot] commented 9 months ago

@DexterStorey, your custom instructions are: Only comment when explicitly asked to. Always assign UI issues to @tedspare.

From Maige. How's my driving?

sarimrmalik commented 9 months ago

Hey maige, how are you?

sarimrmalik commented 9 months ago

Maige label this as a bug

sarimrmalik commented 9 months ago

Maige what are my custom instructions?

maige-app[bot] commented 9 months ago

@sarimrmalik, your custom instructions are:

  1. Only comment when explicitly asked to.
  2. Always assign UI issues to @tedspare.

From Maige. How's my driving?

sarimrmalik commented 9 months ago

Maige how are you, explicitly answer me? 💀

tedspare commented 9 months ago

maige please explicitly tell me, how are you?

maige-app[bot] commented 9 months ago

I'm functioning well, @tedspare. How can I assist you today?

From Maige. How's my driving?

sarimrmalik commented 9 months ago

maige please explicitly tell me, how are you?

maige-app[bot] commented 9 months ago

Hello @sarimrmalik, I'm functioning as expected! How can I assist you today?

From Maige. How's my driving?

tedspare commented 9 months ago

maige how are you?

tedspare commented 9 months ago

maige how can I get the user's username from their session in a client component?

maige-app[bot] commented 9 months ago

@tedspare, I've labeled the issue with question and dashboard as it seems related to UI and requires further information. Unfortunately, I couldn't find a direct reference in the codebase for retrieving the user's username from their session in a client component. You might need to look into the session management or authentication logic to extract the username.

From Maige. How's my driving?

sarimrmalik commented 9 months ago

Maige what are my custom instructions?

maige-app[bot] commented 9 months ago

Hi @sarimrmalik, your current custom instructions are:

From Maige. How's my driving?

tedspare commented 9 months ago

Maige label this as an enhancement

sarimrmalik commented 9 months ago

Maige what are my custom instructions?

maige-app[bot] commented 9 months ago

Hi @sarimrmalik, here are your custom instructions:

From Maige. How's my driving?

sarimrmalik commented 9 months ago

This is addressed.