Repository navigation
✨ Pull components from repo - #131
Merged
Merged
Conversation
AdrySky
approved these changes
Mar 29, 2022
AdrySky
left a comment
Contributor
There was a problem hiding this comment.
LGTM.
Using git clone sparse checkout - Thought it would be cool for the users to be able to update their xai_component folder by git pulling, but it assumes that the user already has git installed.
Personally, it's a good idea if user can update their /xai_component by fetching from repo.
3 of 15 tasks
4 of 15 tasks
3 of 15 tasks
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
This PR improves the xircuits entry point by allowing users to pull
xai_componentsfrom the base github repository. The old method assumed that users would usevenvto install xircuits, which is fragile and will fail when installing on other venvs like conda.I've made it so that request_folder.py util is also very extendable, which can be used to pull other things users may need such as examples and their own component libraries.
References
#126
Pull Request Type
Type of Change
Tests
1. Verify successful xai_component pull from repo
xircuits, accept to download xai_components when prompted.xircuitsandxai_componentsexistTested on?
Notes
There were multiple ways of copying xai_components to user dir that I've considered.
repo.get_contents(folder)and we can recursively get the files we need. The performance isn't as good as 1 since it requests multiple times, but it's more solid in terms of implementation.