-
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/user perfil page #537
Conversation
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.
|
Fix misconfiguration of API calls when running in a docker image.
import { AuthExpiredInterceptor } from 'services/interceptors'; | ||
import { AXIOS_INSTANCE_FACTORY_IDENTIFIER } from 'services/factories'; | ||
|
||
describe('MonitoringsApi', () => { |
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.
@schafferjrdev aqui ficou um describe errado MonitoringsApi
-> UserProfileApi
aliás, o arquivo poderia ser renomeado para UserProfileApi.test.js
src/services/UserPerfilApi.js
Outdated
import { createAxiosInstance } from 'services/factories'; | ||
|
||
const UserNameApi = createAxiosInstance({ | ||
baseURL: process.env.REACT_APP_CENTRALDASHBOARD_API || 'http://localhost:8080', | ||
}); | ||
|
||
/** | ||
* Returns monitorings from the API | ||
* | ||
* @returns {Promise} Get Request | ||
*/ | ||
const getUserName = () => { | ||
return UserNameApi.get('/api/workgroup/env-info'); | ||
}; | ||
|
||
export default { | ||
getUserName, | ||
axiosInstance: UserNameApi, | ||
}; |
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.
@schafferjrdev aqui pode ser renomeado de UserPerfilApi.js
para UserProfileApi.js
@@ -0,0 +1,22 @@ | |||
import UserNameApi from 'services/MonitoringsApi'; |
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.
services/MonitoringsApi
também acho que pode ser UserProfileApi.js
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.
👍
Created store, service and page.
Has CORS error on getUserName to be fixed on develop environment.