-
Notifications
You must be signed in to change notification settings - Fork 151
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
Generate OpenAPI spec during compile #1279
base: master
Are you sure you want to change the base?
Conversation
…mpatibility issue with CRA
… UserService.test.ts
ui/src/pages/Login/Login.tsx
Outdated
const login = mutation.mutateAsync; | ||
|
||
useEffect(() => { | ||
if (isSuccess) { |
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.
Could it be done still with onSuccess
option, but passed to usePostUserLogin
hook?
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.
Ok, fixed as proposed
import { FormikInput, FeedbackButton } from "components"; | ||
import { useMutation } from "react-query"; | ||
import { usePostUserChangepassword } from "../../../api/apiComponents"; |
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.
api
can be also a named path like contexts
or services
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.
Already fixed
@katekozlowska the tests seem to be failing |
ui/package.json
Outdated
@@ -18,31 +19,34 @@ | |||
"@types/react-router-bootstrap": "^0.26.6", | |||
"@types/react-router-dom": "^5.3.3", | |||
"@types/yup": "^0.32.0", | |||
"axios": "^1.6.5", | |||
"axios": "0.27.2", |
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.
@katekozlowska so we're still using a downgraded axios?
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.
axios has been removed
ui/package.json
Outdated
"bootstrap": "^5.3.2", | ||
"eslint-config-prettier": "^9.1.0", | ||
"formik": "^2.4.5", | ||
"immer": "^10.0.3", | ||
"openapicmd": "^2.4.0", |
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.
is this the openapi generator that we are using? the docs in stack.md mention openapi-codegen
, is that still used?
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.
not needed anymore. Removed it
ui/package.json
Outdated
"react-router-bootstrap": "^0.26.2", | ||
"react-router-dom": "^6.21.1", | ||
"react-scripts": "^5.0.1", | ||
"typescript": "5.1.6", | ||
"typescript": "4.9.5", |
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.
is the TS downgrade necessary?
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.
Upgraded to latest
@@ -0,0 +1,321 @@ | |||
/** | |||
* Generated by @openapi-codegen |
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.
if this is generated, should it be checked in to VCS?
@@ -0,0 +1,4 @@ | |||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. |
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.
Should this be here?
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.
(the entire file)
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.
The yarn.lock
file is added to a frontend project to ensure consistent dependency versions across all environments where the project is installed. It locks the specific versions of dependencies and their sub-dependencies, preventing potential issues caused by version mismatches. Including it in the repository ensures that all team members and deployment environments use the exact same dependency tree, improving reliability and avoiding unexpected bugs.
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.
yeah, but this one is in the top-level directory, shouldn't we have a non-empty ui/yarn.lock
?
nice job @katekozlowska 👏 |
This information has been added to the |
Fixed, not showing anymore |
No description provided.