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

Release v0.3.0 #573

Merged
merged 77 commits into from
Apr 6, 2022
Merged
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
a7f5762
Bump to version 0.3.0
Jul 23, 2021
9c31028
Create another function to escape encode (#499)
schafferjrdev Jul 28, 2021
08d20a6
Change notification name to operator name (#500)
schafferjrdev Jul 28, 2021
f140b8a
Feature/single parameter edition (#498)
cedric-matheus Jul 30, 2021
5b60345
Add zero validation on parameter config (#502)
cedric-matheus Jul 30, 2021
08ac7fe
Use badge to show count on project tags (#503)
schafferjrdev Jul 30, 2021
017486d
Hide loading component when running the experiment logs polling request
LuanEdCosta Jul 30, 2021
183cad5
Merge pull request #504 from platiagro/fix/logs-panel-loading
cedric-matheus Jul 30, 2021
e878ca8
Fix - Console Errors (#501)
LuanEdCosta Aug 2, 2021
b846417
Check null values (#505)
cedric-matheus Aug 2, 2021
f35bc2d
Added validation on experiment error message (#506)
schafferjrdev Aug 2, 2021
7d93cfc
Feature - Create Automated Tests Examples (#507)
LuanEdCosta Aug 3, 2021
62ac0cc
Remove useDownloadImage hook because it is not used
LuanEdCosta Aug 4, 2021
26fed3b
Add test for the useFirstRenderEffect hook
LuanEdCosta Aug 4, 2021
a98c1f2
Add test for the usePrevious hook
LuanEdCosta Aug 4, 2021
cad7070
Add test for the useDeepSelector hook
LuanEdCosta Aug 4, 2021
736c7a8
Organize useDeepSelector test imports
LuanEdCosta Aug 4, 2021
3e82977
Add test for the useIsLoading hook
LuanEdCosta Aug 4, 2021
3670b9c
Add test for the useChangeFavicon hook
LuanEdCosta Aug 4, 2021
37dbeed
Feature - Delete operator by keyboard (#508)
schafferjrdev Aug 5, 2021
3285895
Bump tar from 6.1.0 to 6.1.6 (#509)
dependabot[bot] Aug 5, 2021
aeb77a5
Adjust error messages on deployment actions (#511)
schafferjrdev Aug 5, 2021
8073ae9
Merge pull request #510 from platiagro/feature/create-tests-for-hooks
schafferjrdev Aug 9, 2021
6a1a02e
Reset interrupt button on tab change (#514)
schafferjrdev Aug 11, 2021
3112b6e
Bump path-parse from 1.0.6 to 1.0.7 (#515)
dependabot[bot] Aug 11, 2021
e431b9d
Fix - Sonar Test Coverage Report (#512)
LuanEdCosta Aug 12, 2021
c78a3f1
Feature - Create Store Tests (Part 1) (#513)
LuanEdCosta Aug 12, 2021
c644124
Fix - Use Operator Name in Compare Results Item (#516)
LuanEdCosta Aug 13, 2021
14db01c
Fix - Tensor Test Result Formatting (#518)
LuanEdCosta Aug 19, 2021
344471d
Fix - Redirection to Login if Response Status is 302 (#517)
LuanEdCosta Aug 19, 2021
2c98b9c
Prevents TypeError when ndarray is null (#520)
fberanizo Aug 19, 2021
d551cad
Adds new category 'MONITORING' to TASK_CATEGORIES (#521)
fberanizo Aug 19, 2021
df016a4
Fix/enable copy url (#522)
fberanizo Aug 20, 2021
2f40e3c
Feature - Tests for operator store (#519)
schafferjrdev Aug 23, 2021
a11f12f
Feature - Create Tests Part 2 (#523)
LuanEdCosta Aug 25, 2021
66e696b
Fix - Notify Once When Redirecting To Login (#524)
LuanEdCosta Aug 27, 2021
3a1c26d
Feature - Add Dex Auth Template (#525)
LuanEdCosta Aug 27, 2021
df7c783
altering the ci.yml file. (#527)
dnlcesilva Aug 27, 2021
3c994c5
Add button to clear select values (#526)
LuanEdCosta Aug 31, 2021
8612a92
Fix login page styles (#530)
LuanEdCosta Aug 31, 2021
6e07ebf
Feature - Add Loading Animation in Deployment Flow (#529)
LuanEdCosta Aug 31, 2021
39142f1
Fix Result.utils test (#531)
LuanEdCosta Sep 2, 2021
3ba40d0
Bump tar from 6.1.6 to 6.1.11 (#533)
dependabot[bot] Sep 2, 2021
d4be80b
Feature/deployment store standardize (#532)
schafferjrdev Sep 8, 2021
91624bf
Feature - Improve Lint Configs (#534)
LuanEdCosta Sep 8, 2021
5b0091a
Fix/create deployment redirect (#536)
schafferjrdev Sep 9, 2021
a79bcf5
Feature - Marketplace Pages (#535)
LuanEdCosta Sep 14, 2021
397606d
Feature/user perfil page (#537)
schafferjrdev Sep 14, 2021
aa83926
Bump tmpl from 1.0.4 to 1.0.5 (#538)
dependabot[bot] Sep 23, 2021
57741be
Bump url-parse from 1.5.1 to 1.5.3 (#539)
dependabot[bot] Oct 6, 2021
c09e880
Fix/monitoring by category (#540)
fberanizo Oct 22, 2021
44490d8
Feature/async prediction (#541)
fberanizo Nov 11, 2021
f336003
Bump follow-redirects from 1.14.1 to 1.14.7 (#542)
dependabot[bot] Jan 26, 2022
4c726e1
Change styles and classes to prevent overflow problems (#543)
LuanEdCosta Jan 28, 2022
1001667
Bump nanoid from 3.1.23 to 3.2.0 (#545)
dependabot[bot] Jan 28, 2022
2aeace4
Bump prismjs from 1.23.0 to 1.26.0 (#544)
dependabot[bot] Jan 28, 2022
12bf73f
My changes
Feb 2, 2022
b8c40a0
Revert "My changes"
LuanEdCosta Feb 3, 2022
cf0174e
Bug Fix - Operators In Negative Coordinate (#547)
LuanEdCosta Feb 3, 2022
6db1b7d
Bump Axios To 0.25.0 (#549)
LuanEdCosta Feb 7, 2022
ef9c57c
Fix - Deployment Flow Testing (#550)
LuanEdCosta Feb 11, 2022
cbf11be
Bump follow-redirects from 1.14.7 to 1.14.8 (#551)
dependabot[bot] Feb 15, 2022
33230aa
Feature - Show Operator Original Name (#552)
LuanEdCosta Feb 18, 2022
2af29ad
Bump url-parse from 1.5.3 to 1.5.7 (#553)
dependabot[bot] Feb 18, 2022
ae96ba7
Fix - Template File Upload (#554)
LuanEdCosta Feb 23, 2022
9a70204
Chore - PR and Issue Templates (#562)
LuanEdCosta Feb 23, 2022
c4a5662
Add branch develop to CI (#564)
LuanEdCosta Feb 24, 2022
a452dd4
Change variables for develop branch
LuanEdCosta Feb 24, 2022
a7c352f
Merge pull request #565 from platiagro/ci/develop-branch-variables
dfvneto Feb 24, 2022
a7fec9b
Show the experiment dataset name instead of the filename (#563)
LuanEdCosta Feb 24, 2022
16b196f
Bump url-parse from 1.5.7 to 1.5.10 (#566)
dependabot[bot] Mar 8, 2022
93e1ee4
Prevent adding a dataset with repeated name (#567)
LuanEdCosta Mar 8, 2022
d16b5dd
Use operator task name to check if is Google Drive (#568)
LuanEdCosta Mar 8, 2022
8faa84a
Show custom error message on template creation (#569)
LuanEdCosta Mar 15, 2022
ad0f8c9
Change the endpoint and method to fetch projects (#570)
LuanEdCosta Mar 21, 2022
742e76f
Fix - Change Endpoint to Get a List of Tasks (#572)
LuanEdCosta Apr 1, 2022
495c98a
Merge branch 'master' into develop
LuanEdCosta Apr 6, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Show custom error message on template creation (#569)
  • Loading branch information
LuanEdCosta authored Mar 15, 2022
commit 8faa84a8cc2c4e6826505611d751e1ece7e9728d
41 changes: 25 additions & 16 deletions src/store/templates/templates.actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,33 @@ const templatesActionSuccess =
/**
* Templates fail default action
*
* @param {object} failObject Success action default object
* @param {object} failObject Error action default object
* @param {string} failObject.requestActionType Action type request, used in loading
* @param {string} failObject.failActionType Action type fail
* @param {string=} failObject.message Success message
* @param {string=} failObject.message Error message
* @param {object} failObject.response Error message
* @param {Function} failObject.callback Fail function callback
* @returns {Function} Thunk action
*/
const templatesActionFail =
({ requestActionType, failActionType, message = undefined, callback }) =>
({
requestActionType,
failActionType,
message = undefined,
response,
callback,
}) =>
(dispatch) => {
dispatch({
type: failActionType,
});
dispatch({ type: failActionType });

if (message) dispatch(showError(message));
const customMessages = {
TemplateNameExists: 'Um template com o mesmo nome já existe!',
};

const customMessage = customMessages[response?.code] || response?.message;
const errorMessage = customMessage || message;

if (errorMessage) dispatch(showError(errorMessage));
if (callback) callback();

dispatch(removeLoading(requestActionType));
Expand Down Expand Up @@ -96,12 +108,11 @@ export const fetchTemplatesRequest = () => async (dispatch) => {

dispatch(templatesActionSuccess(successObject));
} catch (error) {
const errorMessage = error.message;

const errorObject = {
requestActionType,
failActionType: TEMPLATES_TYPES.FETCH_TEMPLATES_FAIL,
message: errorMessage,
message: error.message,
response: error.response?.data,
};

dispatch(templatesActionFail(errorObject));
Expand Down Expand Up @@ -150,12 +161,11 @@ export const createTemplateRequest =

dispatch(templatesActionSuccess(successObject));
} catch (error) {
const errorMessage = error.message;

const errorObject = {
requestActionType,
failActionType: TEMPLATES_TYPES.FETCH_TEMPLATES_FAIL,
message: errorMessage,
message: error.message,
response: error.response?.data,
};

dispatch(templatesActionFail(errorObject));
Expand Down Expand Up @@ -235,12 +245,11 @@ export const deleteTemplateRequest =

dispatch(templatesActionSuccess(successObject));
} catch (error) {
const errorMessage = error.message;

const errorObject = {
failActionType: TEMPLATES_TYPES.DELETE_TEMPLATE_FAIL,
requestActionType,
message: errorMessage,
message: error.message,
response: error.response?.data,
};

dispatch(templatesActionFail(errorObject));
Expand Down