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

chore: project assets for text files are now documents (not artifacts) #1992

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

Tom-Szendrey
Copy link
Contributor

@Tom-Szendrey Tom-Szendrey commented Oct 10, 2023

Description

Txt is now a document not an artifact:

Utilizing the code editor for txt files

image

image

@Tom-Szendrey Tom-Szendrey linked an issue Oct 10, 2023 that may be closed by this pull request
@Tom-Szendrey Tom-Szendrey marked this pull request as draft October 10, 2023 20:53
@Tom-Szendrey
Copy link
Contributor Author

Setting as draft because i still need to test, im not familiar with the code-editor yet so i need to make sure its okay for text files and that this will save back correctly

final HttpResponse response = httpclient.execute(httpGet);
final String textFileAsString = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);

return ResponseEntity.ok(textFileAsString);

Check warning

Code scanning / CodeQL

Cross-site scripting

Cross-site scripting vulnerability due to a [user-provided value](1).
@dvince2
Copy link
Collaborator

dvince2 commented Oct 11, 2023

If we're making .txt's documents, we should also move .md's in as well as I know that Pascale wants to be able to use README.md's to enrich.

@Tom-Szendrey
Copy link
Contributor Author

If we're making .txt's documents, we should also move .md's in as well as I know that Pascale wants to be able to use README.md's to enrich.

https://github.com/DARPA-ASKEM/terarium/pull/1992/files#diff-8a3c209b372c58b5dd6788202c6fd60c3c59db9ca6c5b7e6ab77da6025c45ee3R366

@Tom-Szendrey Tom-Szendrey marked this pull request as ready for review October 11, 2023 13:34
@Tom-Szendrey Tom-Szendrey marked this pull request as draft October 11, 2023 13:43
@YohannParis YohannParis marked this pull request as ready for review October 11, 2023 13:47
@YohannParis YohannParis marked this pull request as draft October 11, 2023 13:50
@Tom-Szendrey Tom-Szendrey marked this pull request as ready for review October 11, 2023 13:54
@Tom-Szendrey Tom-Szendrey merged commit bb724b9 into main Oct 11, 2023
@Tom-Szendrey Tom-Szendrey deleted the TS/1987-task-change-txt-type-to-document branch October 11, 2023 13:58
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.

[TASK]: Change Txt type to Document
4 participants