Commit 202b637
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 more 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 e08c812 commit 202b637
File tree
27 files changed
+885
-930
lines changed- src
- app/api
- github
- git-info
- knowledge-files
- pr
- knowledge
- skill
- native
- git
- info
- knowledge-files
- knowledge-files
- pr
- knowledge
- skill
- components/Contribute
- EditKnowledge
- github
- native
- EditSkill
- github
- native
- Knowledge
- DocumentInformation
- KnowledgeSeedExamples
- KnowledgeWizard
- Skill/SkillWizard
- Utils
- types
- utils
27 files changed
+885
-930
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
This file was deleted.
0 commit comments