-
Notifications
You must be signed in to change notification settings - Fork 165
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
feat: use vaccination database data for Tempat vaksin
#817
base: main
Are you sure you want to change the base?
Conversation
…to undefined province error
❌ Deploy Preview for wargabantuwarga failed. 🔨 Explore the source changes: 3f46744 🔍 Inspect the deploy log: https://app.netlify.com/sites/wargabantuwarga/deploys/617bbc63a881010007c1c411 |
Codecov Report
@@ Coverage Diff @@
## main #817 +/- ##
==========================================
+ Coverage 87.06% 87.08% +0.01%
==========================================
Files 134 134
Lines 1438 1440 +2
Branches 455 455
==========================================
+ Hits 1252 1254 +2
Misses 181 181
Partials 5 5
Continue to review full report at Codecov.
|
Hi mas @zainfathoni, I believe #804 is a prerequisite for this PR to be done. Do you know how to add the JSON data to the mirror? |
Hi mas @zainfathoni, any update? |
Heya! #804 is currently not a requirement for this. 93b1f76 unintentionally dropped the mirrors. Sorry, I forgot to revert Nefoplayground/wargabantuwarga.com@a7532dd as #806 was merged as the drop was intended for debugging purposes only. |
Also, regarding the mirror, I think #783 might be a good resource to get your head around the things here? I forgot my understanding of it, but maybe you will understand it. |
@@ -23,11 +23,12 @@ export async function fetchVaccinationDatabase() { | |||
fetch(`${vaksinId}/locations/${province}`) | |||
.then((res) => res.json() as unknown as VaccinationRegion) | |||
.then((region) => { | |||
locations[region.data[0].province] = region.data.map((location) => ({ | |||
locations[province] = region.data.map((location) => ({ |
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.
Nice heads up on that one.
Sorry for the slow response @redhoyasa. I have been swamped in my office due to a tight timeline for our current project lately. |
Okay. Sorry for late reply though. |
@fortressia I notice that you've reverted the mirror box. However, I don't see that the Is this expected? cc: @zainfathoni |
As booster shots will be available in coming weeks, I think WBW could be more relevant (again). |
Could you please elaborate on what you saw and expected, @redhoyasa? The answer to your question can be yes and no simultaneously, depending on what you meant by "you don't see". 😅 |
From my understanding, we use However, it requires the transformed data to be available in https://wbw-box.lucentshard.com, doesn't it? My concern is that I couldn't manage to find the transformed |
I see. Thank you for elaborating on it. There might be a mistake somewhere along the way. The |
Ah, I see. I actually wanted to send the revert PR earlier, but that made me confused so much that I sent the PR just after you told me to. |
Also, I didn't think |
Hello 👋 I will check it today. |
So I've found the culprit, the server is running out of memory :) I've added an additional 1.5GB of memory, just tested running it and it's running without issues. |
LOL 🤣 |
Thanks mas @adityapurwa for the fix. |
However, I cannot find Probably we have to change |
Emm, I think that's just an unrelated refactor to the file being missing in the server, right? |
Or did you find that code made the file undetected, which is kinda illogical in my opinion? If that's the case, can you please elaborate more? |
Closes #805
Description
Still a draft...
The approach taken will be similar to the one defined in #805.
Current Tasks