-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature: add ability for repository refetch on wiki refresh #372
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
base: main
Are you sure you want to change the base?
feature: add ability for repository refetch on wiki refresh #372
Conversation
Summary of ChangesHello @DaniilSmirnov, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements a crucial feature that allows users to force a complete refresh of a repository's data. This capability is exposed through a new UI toggle which, when activated, instructs the backend to remove all previously cloned repository files and processed data before re-fetching, guaranteeing that the system works with the latest version of the repository. The changes involve modifications to the backend API for handling the deletion logic, updates to the frontend to provide the user interface for this option, and an expansion of recognized code file types for more comprehensive processing. Additionally, several UI components were refactored for better maintainability and code quality. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request successfully adds the functionality to force a refresh of a repository by deleting its cached clone and database file. The changes are well-distributed across the backend API and the frontend components. The refactoring of the UserSelector component is a significant improvement in code quality and maintainability.
I've identified a critical bug in the backend API related to directory creation and a high-severity issue in the error handling logic that could lead to misleading error messages. I've also pointed out a couple of medium-severity issues in the frontend for improving code clarity and component accessibility. Addressing these points will make the new feature more robust and the codebase cleaner.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Hi!
This PR provides ability to force update for repository by deleting already cloned repo and .pkl file