-
Notifications
You must be signed in to change notification settings - Fork 16
[$100] Update scanOne
to query
#256
Comments
Contest https://www.topcoder.com/challenges/30108050 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30108051 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30108052 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30108053 has been created for this ticket. |
[500]: Challenge for the updated issue 256 is creating, rescheduling this event |
1 similar comment
[500]: Challenge for the updated issue 256 is creating, rescheduling this event |
Contest https://www.topcoder.com/challenges/30108054 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30108054 has been updated - it has been assigned to afrisalyp. |
@jmgasper - Owh, that's weird behavior of dynamodb that I've never realized it.
Yeah, I'm going to work on it. |
@afrisalyp - You're not the only one. Multiple reviewers and myself missed that as well, and because we don't have as much test data in dev as we do in prod, we never really saw the issue. At least we have an idea of what the issue is now! |
@jmgasper - Yeah, that's good. Topcoder X uses |
Eventually we'll have to, but let's focus on Issue table for now, just to get past this blocking issue. |
Yeah. agreed. |
Two PR for topcoder-x-processor and topcoder-x-ui submitted. |
@afrisalyp - I'm not sure this is working properly for new tickets, where the query won't return anything:
|
That's weird again. It's the same error as seen in #245. I'm sure that I've successfully tested the code in my local dev. |
@afrisalyp - Looks like prod uses node 8.12.0 Not sure what NPM version is used. |
I'm not really sure if this has an effect, but I found that the model in the migration script has different type in |
@afrisalyp - Not sure that would affect us here because this is for a new ticket, so not something that was migrated over. |
We can try to change it though - do you want to test in dev first? |
I don't see this error #256 (comment) in my local dev. Also, didn't the migration script use for the prod only? |
Yes, the migration script was for prod only. We can attempt to adjust the code to account for that change in prod, if you want. |
@jmgasper |
@jmgasper - Now I'm pretty sure that it's the problem. :D
And if we compare with the prod DB record that you just sent me
We have different labels type. "S" and "SS".
It's related to the "S". |
@afrisalyp - I made the change in prod, but now the query isn't working properly: Note that below the repositoryId isn't matching, nor is the provider.
|
@jmgasper - Fixed. according to https://dynamoosejs.com/api/query/#querylimitlimit. |
Contest https://www.topcoder.com/challenges/30108189 has been created for this ticket. |
Contest https://www.topcoder.com/challenges/30108189 has been updated - it has been assigned to afrisalyp. |
Payment task has been updated: https://software.topcoder-dev.com/review/actions/ViewProjectDetails?pid=30108189 |
@afrisalyp - We narrowed down the problem with duplicates to us not implementing
scanOne
properly.Scanning only scans a subset of larger tables at once, meaning we have to scan multiple times to scan the whole table, which we don't do. This explains why sometimes it randomly works (found in the first "page"), but other times doesn't (on a page that wasn't scanned).
We've set up indices on dev and prod that we can query directly, instead of using scanOne. Can you make the proper code updates for this please? This should fix the last big issue (with the duplicate issues being created).
The text was updated successfully, but these errors were encountered: