Terraform updates to add a scoreNumber attribute that is a Number instead of a String (we can get rid of the score attribute and the GSI once we migrate over all the existing scores)
Lambda updates to handle the number from the DB. Also, convert all the strings to numbers in the API request, so the API can still handle strings being passed to it
Includes a script that has a migration (using the AWS CLI and JQ) to take all the existing score strings and replacing them with scoreNumber numbers
I've run the Terraform deploy and migration in develop. and it all seems to be working as far as I can tell (existing functionality, plus sorting with 10 seems to work, and commas are replaced with periods)
Includes:
scoreNumber
attribute that is aNumber
instead of aString
(we can get rid of thescore
attribute and the GSI once we migrate over all the existing scores)score
strings and replacing them withscoreNumber
numbersI've run the Terraform deploy and migration in
develop
. and it all seems to be working as far as I can tell (existing functionality, plus sorting with 10 seems to work, and commas are replaced with periods)