Skip to content

Commit 62c6baf

Browse files
committed
Update document upload api to enhance existing document upload experience
- All the contributions (knowledge and skill) now given the name on creation and not on submit from server side, to drive the workflow using the contribution name. - User is only allowed to see the document related to that knowledge contribution, rather than all the documents across all the contributions. - Documents are now submitted when user submits the contribution. - Existing documents are fetched when user edits the contribution. Both newly uploaded documents and the existing documents are presented to the user. - If user cancel the edit or doesn't submit the contribution, documents are not uploaded and the previous commit sha will remain unchanged in the yaml. - If user edits the knowledge contribution and adds/removes new/existing documents, all the existing and new documents will be shown to the user and submitted when user submit the contribution. - User don't have to worry about the commit sha anymore. Api implementation takes care of collecting all the documents and committing them in a single commit and using the sha in yaml. - API's also provide option to user to delete any of the existing uploaded document, but it's currently is not used. We need to design a workflow on how user can manage the contribution related documents. - This workflow works similarly for both github and native mode. Signed-off-by: Anil Vishnoi <[email protected]>
1 parent 0ecde32 commit 62c6baf

File tree

29 files changed

+1076
-950
lines changed

29 files changed

+1076
-950
lines changed

.env.native.example

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
IL_UI_DEPLOYMENT=native
12
IL_UI_ADMIN_USERNAME=admin
23
IL_UI_ADMIN_PASSWORD=password
34

src/app/api/github/git-info/route.ts

-105
This file was deleted.

0 commit comments

Comments
 (0)