-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Remove redundant code [Refactoring] #135
Comments
Hi @shravan20 , I was studying the codebase, and wanted to start contributing. This issue #135 seems like a good start. My question is should I delete the duplicate file altogether or just use the existing backend version while keeping the duplicate. Thanks & Regards, |
Hello @shravan20, I was walking through the code and as you have mentioned I found that the animation file is repeated in the frontend as well as backend. I think we can remove this redundant code in the below two ways
I think the second approach is better, because in this way the file directory will be more understandable for everyone. If we follow the first approach then there can be some ambiguity in the frontend side when we are doing imports from the backend and also suppose in the future if the backend and frontend are split into different repositories then that may break the code. Please let me know which method you think will be best and then I can start working on it if @raj5036 have not started the work. |
Hi, is this issue still open ? May i work on it ? |
Hi is this issue still open? |
Yes, this is open |
Hi. May I be assigned to work on this? |
Hey @codegeass56, feel free to pick this up and raise a PR. :) |
Hi @shravan20, I spent a few hours understanding the codebase. The issue boils down to the limitations of using create-react-app (CRA) which disallows importing a file from outside /src. The most optimal solution (without affecting performance) is the existing one if you want to play by the rules of CRA. Other solutions I have come across are:
I am interested to see how this issue is fixed and will be following it. For now, I am unassigning myself and will try to contribute elsewhere. I am a novice when it comes to full-stack apps so pray tell if you have any suggestions :) |
Hi I’d like to work on this issue. Could you assign it to me? |
hi can i work on this issue is it still open to work on ? |
@besalraj30 are you still working on the issue? |
Is your feature request related to a problem? Please describe.
Constant Values stored as JSON values are duplicated across the frontend and backend version.
Describe the solution you'd like
Remove the duplicated version inside the /frontend/src/util/animation/index.js file and use the existing backend-version src/animations/animation.js file
The text was updated successfully, but these errors were encountered: