-
Notifications
You must be signed in to change notification settings - Fork 18
[Playground] Component - list of deployment models (UI only) #172 #260
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
[Playground] Component - list of deployment models (UI only) #172 #260
Conversation
…proxy into feature/172-deployment-model-list
…m/yjchun626/azure-openai-sdk-proxy into feature/172-deployment-model-list
…m/yjchun626/azure-openai-sdk-proxy into feature/172-deployment-model-list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드리뷰 남겼습니다. 중복코드 삭제와 bUnit 사용하지 않는 방향으로 고민해 봐 주세요
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
컴포넌트가 자신의 외부로 값을 넘길 때 사용하는 이벤트콜백에 대해 고민을 해 보셔야 합니다.
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
…azor OnAfterRenderAsync -> OnInitialized로 대체
지금 계속 빌드가 깨지는데 로컬에서는 빌드가 잘 돌아가던가요? |
일단 제 fork된 레포에서의 빌드는 워크플로우 몇 번 재시도 하다보니 성공이 뜨긴 했습니다... 그런데 지금 상황이 로컬 (vscode에서 './script ...' 실행하는 것을 의미하신 것이 맞나요?) 에서 할때는 다른 것은 다 통과하고 integration test 단계에서 오류가 났다 안 났다 하는 상태입니다. 이번 커밋은 깃헙에 올려보니 계속 Unit test에서 몇개가 fail이 떠서 (fail/success - 2/99, 1/100 이런식으로 랜덤) 계속 확인해봤는데 run 할때마다 매번 다른 것에서 fail이 나더라고요... 자세히 캐치는 못했는데 AppHost 관련된 부분에서 자주 에러가 뜨는 것 같습니다.
|
어디다 작성해놔야 좋을지 잘 모르겠어서 일단 기록용으로 코멘트에 작성하겠습니다! (resolved 처리되니까 링크가 안 먹히더라고요) Blazor 컴포넌트 수명 주기 메소드 조사 배경
결론부터 말씀드리면
이전에 잘못 생각했던 것
이번에 알게 된 것
조사하다 생긴 궁금증 & 멘토님의 답변
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석으로 // given
// when
// then
한 부분들은 다른 테스트들과 동일하게 // Arrange
// Act
// Assert
로 바꿔주세요.
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
test/AzureOpenAIProxy.PlaygroundApp.Tests/UI/DeploymentModelListComponentTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
거의 다 왔습니다! 몇가지만 클린업 정도로 수정해 보시지요.
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
07a052c
to
25e9630
Compare
…m/yjchun626/azure-openai-sdk-proxy into feature/172-deployment-model-list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR 도중에 갑자기 리베이스를 했는지 포스 푸시가 들어와서 당황했는데, 야튼 몇가지 리뷰 코멘트 남겨뒀습니다.
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 코멘트 남겨뒀습니다.
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/Pages/Tests.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Outdated
Show resolved
Hide resolved
src/AzureOpenAIProxy.PlaygroundApp/Components/UI/DeploymentModelListComponent.razor
Show resolved
Hide resolved
…, 테스트 코드 추가(TestsPageTests, DeploymentModelListComponentTests)
@yjchun626 추가 코멘트를 달아뒀습니다. 거의 다 온 것 같아요! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! LGTM!
개요
구현 내용
1. DeploymentModelListComponent 생성
2. 테스트 추가
2-1. Playwright
2-2. BUnit
(2) 옵션 값이 선택되면 ValueChanged 이벤트가 트리거되고, 선택된 값으로 업데이트 되는지 확인
잘 모르겠는 점