Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: add canEdit field to KB doc (VF-000) #466

Closed
wants to merge 2 commits into from

Conversation

amandasteinhauer
Copy link
Contributor

Fixes or implements CV3-588

Brief description. What is this change?

Add a canEdit field to the status object on the KB document.
This is differentiate between a plain text kb object where the text is editable and a TXT file upload which cannot be edited.

@@ -67,6 +67,7 @@ export interface KnowledgeBaseDocument {
status: {
type: KnowledgeBaseDocumentStatus;
data?: unknown;
canEdit?: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should only be available on the TEXT type, can move it to KnowledgeBaseText

Copy link

sonarcloud bot commented Nov 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

warning The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@amandasteinhauer
Copy link
Contributor Author

bors r+

2 similar comments
@amandasteinhauer
Copy link
Contributor Author

bors r+

@Xavientois
Copy link
Contributor

bors r+

@Xavientois
Copy link
Contributor

bors ping

@bors-vf
Copy link

bors-vf bot commented Nov 7, 2023

pong

bors-vf bot pushed a commit that referenced this pull request Nov 7, 2023
<!-- You can erase any parts of this template not applicable to your Pull Request. -->

**Fixes or implements CV3-588**

### Brief description. What is this change?

Add a canEdit field to the status object on the KB document.
This is differentiate between a plain text kb object where the text is editable and a TXT file upload which cannot be edited.
@Xavientois
Copy link
Contributor

bors r+

@bors-vf
Copy link

bors-vf bot commented Nov 7, 2023

Already running a review

@bors-vf
Copy link

bors-vf bot commented Nov 7, 2023

Pull request successfully merged into master.

Build succeeded:

@bors-vf bors-vf bot changed the title feat: add canEdit field to KB doc (VF-000) [Merged by Bors] - feat: add canEdit field to KB doc (VF-000) Nov 7, 2023
@bors-vf bors-vf bot closed this Nov 7, 2023
@bors-vf bors-vf bot deleted the amanda/kb-plain-text/VF-000 branch November 7, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants