-
Notifications
You must be signed in to change notification settings - Fork 282
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
fix(#1205): deprem io response fix #1213
fix(#1205): deprem io response fix #1213
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
LGTM! |
I'm sorry, I was rash. For example: |
@hackerone-yusuf I've changed it to full_text. Can you check? |
Yes, it works as expected now, thanks. |
Hm, I am not sure about this to be honest. But I don't think there should be another issue since this is not merged. |
@absolutezero13 Alright then, thank you again. |
i am confused, why are we making a change for node 14? |
@usirin I'm not sure where but while setting up this project there was a spesific node version requirement that is around v14 or something. But if it's node v15 or above in production then it will be fine but even then there is no need to use replaceAll when there is regex. |
@@ -16,7 +16,7 @@ import { useReasoningFilterMenuOption, useTimeStamp } from "@/stores/urlStore"; | |||
|
|||
const parseExtraParams = (extraParamsStr: string) => { | |||
return dJSON.parse<string, ChannelData["properties"]>( | |||
extraParamsStr?.replaceAll("nan", "") | |||
extraParamsStr?.replace("nan", "") |
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.
I guess this is gonna only will replace the first "nan" that it find. It does not seem like a fix.
More than that, why are we replacing "nan" to "" already on frontend side? Let's fix it on backend
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.
Sure
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.
@absolutezero13 It would be great if you could open an issue on backend, thank you. I am closing this PR, you can reopen it if you think that is wrong and anyone can reconsider! thanks for contributing
Description
replaceAll
function toreplace
because node v14 doesn't supportreplaceAll
. Parser was crashing on the server side because of this.fizikiDurum
property for the description as it looks like the most suitable to me. But we can change it, since the bigger problem is solved, that's why I wanted to create this PR.discord username: afetharita#0001
closes #issue #1205 #1210
Please describe your changes. Also describe your aim and content. Do not forget to list the dependencies required caused by those changes.
## Things to check before creating a PR
Creating PR rules
Changes
How were these changes tested?
Please describe the tests you did to test the changes you made. Please also specify your test configuration.
Test Configuration: