Skip to content

Conversation

@vishnoianil
Copy link
Member

@vishnoianil vishnoianil commented Apr 29, 2025

Seems like skill page renders before deployment type is set and that results in loading SkillFormGithub, and that eventually calls the /api/github/tree api's. Once the deployment type value is set, it renders the SkillFormNative. Calling of /api/github/tree, overwrite the taxonomy if it sees that the remote sha is not same as local sha. This is expected because in case of the github mode local taxonomy is only read only, and it clones the latest taxonomy if remote sha is not equal to local sha. But in native mode, local taxonomy is used for caching the submitted contribution as well, so it doesn't have to pull any new changes upstream because call the taxonomy changes are in the scope of single user and that too present on the same machine. But in both the mode, local taxonomy is store at directory location, so in case of native mode, if the api/github/tree api is called, it will see that the remote sha is not same as local sha and it will clone the latest from the upstream. This fix ensure that SkillFormGithub is not loaded in native mode.

@vishnoianil vishnoianil force-pushed the fix-taxonomy-deletion branch from 9f9552c to 7a2c53e Compare April 29, 2025 22:21
Seems like skill page renders before deployment type is set and
that results in loading SkillFormGithub, and that eventually calls
 the /api/github/tree api's. Once the deployment type value is set,
it renders the SkillFormNative. Calling of /api/github/tree, overwrite
 the taxonomy if it sees that the remote sha is not same as local sha.
This is expected because in case of the github mode local taxonomy is
only read only, and it clones the latest taxonomy if remote sha is not
equal to local sha. But in native mode, local taxonomy is used for caching
the submitted contribution as well, so it doesn't have to pull any new changes
upstream because call the taxonomy changes are in the scope of single user
and that too present on the same machine. But in both the mode, local
taxonomy is store at same directory location, so in case of native mode,
if the api/github/tree api is called, it will see that the remote sha
is not same as local sha and it will clone the latest from the upstream.

This fix ensure that SkillFormGithub is not loaded in native mode.

Signed-off-by: Anil Vishnoi <[email protected]>
@jeff-phillips-18 jeff-phillips-18 merged commit a02c7af into instructlab:main Apr 30, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants