♻️ Refactor Component Libraries as Submodules #148
Merged
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
Moving forward, there'll be a clearer description on how xai component libraries are organized.
examples
folder to their respective directories, which improves the housekeeping of the folder.Ultimately this PR paves a path on how contributors can submit their own component libraries to the Xircuits repo, to which we can include in the list of submodules or in a future xai component manager. Users can also fork Xircuits and create their own component libraries pulled from their own repositories, private or not.
Pull Request Type
Type of Change
Tests
1. Submodule Functionality Check
Check that pycaret and modelstash component folders exist, but empty.
Pull the xai_components by running:
Confirm that you have the xai components now.
If you would like to pull only 1 component library, you'll need to supply the path like:
Check that you can update to the latest by:
or if you'd like to update all submodules at the same time:
I have just added a readme for modelstash components, see if you can pull the update from Xircuits.
(bonus) Check if you can pull from a private repo. For demo purposes the pycaret components are temporarily set to be private. If you are logged in as a XpressAi member you should be able to pull it, and not without. This would require a fresh setup without your git account installed though... but it should theoretically work as expected.
Tested on?
Notes
I'll need to add this to the documentation on how to component libraries as submodules. Essentially it's just:
and it will be added to
.gitmodules
.