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

Collector Config Tab 화면에서 Single Quote가 Double Quote로 변환되는 문제 #559

Open
jaegeunha opened this issue Feb 5, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jaegeunha
Copy link
Collaborator

jaegeunha commented Feb 5, 2025

이슈 내용

AgentConfigurationCollector Config Tab에서 single quote(''')가 double quote(""")로 변환되는 문제가 발생

Image

문제 발생 예시

starlark plugin에서 설정한 실제 파일

[[processors.starlark]]
source = '''

'''

그러나 UI에서 이를 표시할 때는 다음과 같이 변환된다.

[[processors.starlark]]
source = """

"""

예상 수정 사항

  • '''로 감싸진 문자열이 UI에서도 동일하게 유지되어야 함

문제가 되는 코드

const test = TOML.parse("String")
  • TOML 라이브러리의 parse 함수에는 이와 관련된 옵션은 없어 보임

확인 사항

  1. react-codemirror2가 자동으로 quote 변환을 수행하지 않음
  2. 파일을 읽어온 후 @iarna/toml 라이브러리를 활용하여 Parsing 할 때 발생하는 문제

해결 방안

  • TOML 파일 내 객체 처리는 TOML.parse를 그대로 활용
  • ConfigScript State는 불러온 파일의 문자열을 파싱 없이 사용하도록 변경
@jaegeunha jaegeunha added this to v2.1 Feb 5, 2025
@jaegeunha jaegeunha converted this from a draft issue Feb 5, 2025
@jaegeunha jaegeunha self-assigned this Feb 5, 2025
@jaegeunha jaegeunha added the bug Something isn't working label Feb 5, 2025
@jaegeunha jaegeunha changed the title react-codemirror2에서 Single Quote가 Double Quote로 변환되는 문제 Collector Config Tab 화면에서 Single Quote가 Double Quote로 변환되는 문제 Feb 6, 2025
@jaegeunha jaegeunha moved this from Ready to In progress in v2.1 Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In progress
Development

No branches or pull requests

1 participant