-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/async prediction #541
Conversation
Performs prediction tasks (fetch, create, and interrupt). Also removes prediction actions that were at DeploymentsApi.js
These actions are similar to actions at 'testDeployment' store, but predictions are now async.
This store was replaced by the new store 'prediction', which performs similar actions, but asynchronously.
- Removes occurrences of 'testDeployment' store - Adds a polling that checks for prediction results.
Ensures same descriptions are used across the project.
Dicas para revisão de códigoCommits
SonarCloud Quality Gate
Build Github actions COM SUCESSOReactJS
ReduxAs instruções a seguir foram retiradas do Redux Style Guide.
|
src/containers/DeploymentTestResultModalContainer/DeploymentTestResultModalContainer.jsx
Outdated
Show resolved
Hide resolved
src/containers/DeploymentTestResultModalContainer/DeploymentTestResultModalContainer.jsx
Outdated
Show resolved
Hide resolved
@fberanizo Também não entendi aquele erro do sonar, mas pode ser por causa do != antes dele. Em JS geralmente usamos
|
It's not the final solution tough. Modal still blocks the access to the 'Interrupt' button. Results should be displayed in a different interface, maybe the logs/message section.
Removes action 'createPredictionWithFile' (it was replaced by 'createPredictionWithDataset'). Removes 'dataset' from payload of 'CREATE_PREDICTION_WITH_DATASET_REQUEST' actionType. Remover selector 'getFile'
Tests, actions, actionTypes, reducer and selectors.
…redictionRequest FETCH_PREDICTION_FAIL: don't set values in the state fetchPredictionRequest: when prediction is still in progress, don't set status/predictionResult.
…is closed) We have to do this because the user may have closed the modal, and there's no other way to reopen it.
SonarCloud Quality Gate failed. |
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.
Para mim está OK, mas realmente o modal não parece ser a melhor forma de fazer a funcionalidade de prediction.
Tive algumas ideias para o testar fluxo:
- Podemos criar uma visualização abaixo ou acima de monitoramentos
- Podemos fazer um outro botão de dropdown ao lado do botão de testar fluxo 🔽
- Podemos mostrar em um dropdown de notificações.
@LuanEdCosta acho que faremos com o Dropdown de notificações, sim! Vou dar merge neste PR e criar uma tarefa pra implementar essas melhorias. |
Adds a new Service "PredictionApi" …
Performs prediction tasks (fetch, create, and interrupt).
Also removes prediction actions that were at DeploymentsApi.js
Adds a new store 'prediction' to handle prediction actions …
These actions are similar to actions at 'testDeployment' store, but
predictions are now async.
Removes unused store 'testDeployment' …
This store was replaced by the new store 'prediction', which performs
similar actions, but asynchronously.
Updates containers to use actions of new store 'prediction' …
Renames remaining occurrences of 'testDeployment' to 'createPrediction' …
Ensures same descriptions are used across the project.