Commit ab5d6a5
committed
Fix taxonomy deletion on skill wizard loading
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]>1 parent 8d330fa commit ab5d6a5
1 file changed
+25
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
| 25 | + | |
17 | 26 | | |
18 | | - | |
19 | 27 | | |
20 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
21 | 43 | | |
22 | 44 | | |
23 | 45 | | |
0 commit comments