User Details
- User Since
- Jan 2 2022, 7:31 PM (155 w, 20 h)
- Roles
- Disabled
Jul 20 2022
Jun 23 2022
Jun 17 2022
Jun 14 2022
Jun 13 2022
Jun 7 2022
I don't think this helper function is necessary -- logic can be inlined. Feel free to argue otherwise.
Jun 6 2022
The duplication between dynamodb and dynamodb-test is a problem. We should investigate this in a follow-up: from the localstack docs, it looks like separate databases with separate tables are created for each credential that connects https://docs.localstack.cloud/localstack/configuration/#dynamodb. So ideally terraform would just create the tables twice somehow with different credentials, one for test and one for dev.
Jun 3 2022
wallet_login just doesn't seem necessary. What's wrong with the existing siwe API you're calling in this helper?
May 27 2022
May 24 2022
First, break this into subroutines for readability and reuse across DB fetchers. Like you should have functions parseTimestampAttribute, parseAuthType, etc and call parseTimestampAttribute(item.remove("created")).
May 19 2022
May 17 2022
I think this would be better as two functions create_simple_primary_key(partition_key) and create_composite_primary_key(partition_key, sort_key). Terminology from https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey.
Yeah looks good
May 9 2022
Just a couple ways to make things more concise and/or readable. Feel free to ignore if you don't like it.
May 5 2022
Create a real error type
Resigning as reviewer b/c I don't condone 80 char line limits. :-P
Ah, interesting. So I intended for the scripts to not get copied twice by putting docker/ in the .dockerignore (see services/backup/.dockerignore). However, that is not actually working and preventing the files from getting copied because apparently the .dockerignore must be in the root of the context -- unlike gitignores, docker doesn't check every subdirectory for a .dockerignore.
May 4 2022
You should add a required_providers declaration somewhere like providers.tf. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs.
Apr 29 2022
Nice!
Apr 28 2022
Apr 27 2022
Apr 26 2022
Yeah, if you're deploying to prod with docker-compose, I'd just make a separate docker-compose.prod.yml and you can do docker-compose -f docker-compose.prod.yml.
I think you should just make a proper CLI for starting the service with one subcommand "server" or something to start the server and "keygen" to run your script. Instead of having a separate binary.
As noted, COMM_SERVICES_DEV_MODE should not be a compile-time flag, please fix
Apr 19 2022
Apr 18 2022
One thing to fix before landing
Apr 7 2022
Apr 6 2022
Apr 4 2022
Rebased
- This should expect the context to be the root directory, like the other services. See how in docker-compose.yml the other services specify the context is "../". Pretty sure the whole point is just to get access to the common proto definitions for now, but it's good for the service builds to be as similar as possible even though this is Rust and the others are C++.
Maybe a crude approach, but we could add something like yarn nix-dev to package.json as an alias for nix develop --extra-experimental-features nix-command --extra-experimental-features flakes?
This doesn't seem like a good approach, see my comments on D3495. How were these tables and buckets created in the production DB? Were these commands run manually? The same script or migration system should be used in both local and production environments. This approach doesn't permit that because necessarily one database environment has to be set up to create the schema backup which is used to bootstrap the dev environment.
First, there should probably be separate diffs for S3 and DynamoDB as these are very different use cases in my opinion.
Mar 22 2022
Mar 21 2022
Mar 18 2022
I think it's much better to abandon this and use a local dynamodb service in the docker-compose like https://hub.docker.com/r/amazon/dynamodb-local or https://github.com/localstack/localstack. It's a much simpler and more maintainable solution.
Mar 17 2022
Rebased
Mar 15 2022
- Rename build dir from _build to build
Add a root = true at the top. From docs "root: special property that should be specified at the top of the file outside of any sections. Set to true to stop .editorconfig files search on current file."
Mar 14 2022
Mar 11 2022
Mar 10 2022
Oops, just updated my .editorconfig