Closed mikeallisonJS closed 1 year ago
Warnings | |
---|---|
:warning: | :exclamation: Big PR (2828 changes) |
(change count - 2828): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.
Generated by :no_entry_sign: dangerJS against 3be16eb26a7490c4c4598638b90d74d660716db7
Ran Plan for dir: infrastructure
workspace: default
Plan Error
💰 Infracost estimate: monthly cost will not change
Project | Previous | New | Diff |
JesusFilm/core/infrastructure | $543 | $543 | $0 |
All projects | $571 | $571 | $0 |
3 projects have no code changes.
This comment will be updated when the cost estimate changes.
Ran Plan for dir: infrastructure
workspace: default
Plan: 20 to add, 2 to change, 4 to destroy.
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan: 20 to add, 2 to change, 4 to destroy.
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan: 20 to add, 2 to change, 4 to destroy.
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan: 20 to add, 2 to change, 4 to destroy.
atlantis apply
atlantis unlock
atlantis apply
Ran Apply for dir: infrastructure
workspace: default
Apply Failed: Pull request must be mergeable before running apply.
Ran Plan for dir: infrastructure
workspace: default
Plan: 20 to add, 2 to change, 4 to destroy.
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan: 20 to add, 2 to change, 4 to destroy.
atlantis apply
atlantis unlock
atlantis apply
Ran Apply for dir: infrastructure
workspace: default
Apply Failed: Pull request must be mergeable before running apply.
Ran Plan for dir: infrastructure
workspace: default
Plan Error
atlantis plan
Ran Plan for dir: infrastructure
workspace: default
Plan: 0 to add, 2 to change, 0 to destroy.
atlantis apply
atlantis unlock
I see you added the "on stage" label, I'll get this merged to the stage branch!
Ran Plan for dir: infrastructure
workspace: default
Plan: 0 to add, 2 to change, 0 to destroy.
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan: 0 to add, 2 to change, 0 to destroy.
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan Error
running "/home/atlantis/.atlantis/bin/terraform1.4.6 plan -input=false -refresh -out \"/home/atlantis/.atlantis/repos/JesusFilm/core/1542/default/infrastructure/default.tfplan\"" in "/home/atlantis/.atlantis/repos/JesusFilm/core/1542/default/infrastructure": exit status 1
â•·
│ Error: failed to read provider configuration schema for registry.terraform.io/dopplerhq/doppler: failed to instantiate provider "registry.terraform.io/dopplerhq/doppler" to obtain schema: could not read package directory: open .terraform/providers/registry.terraform.io/dopplerhq/doppler/1.1.6/linux_amd64: no such file or directory
│
│
╵
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
Plan Error
The default workspace at path infrastructure is currently locked by another command that is running for this pull request.
Wait until the previous command is complete and try again.
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
The latest updates on your projects.
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
journeys-admin | ✅ Ready | Visit Preview | Thu May 25 22:36:54 UTC 2023 |
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
Ran Plan for dir: infrastructure
workspace: default
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.
atlantis apply -d infrastructure
atlantis plan -d infrastructure
atlantis apply
atlantis unlock
atlantis plan
Ran Plan for dir: infrastructure
workspace: default
Plan Error
The default workspace at path infrastructure is currently locked by another command that is running for this pull request.
Wait until the previous command is complete and try again.
Ran Plan for dir: infrastructure
workspace: default
Plan: 10 to add, 4 to change, 4 to destroy.
atlantis apply
atlantis unlock
atlantis apply
Ran Apply for dir: infrastructure
workspace: default
Apply Failed: Pull request must be mergeable before running apply.
atlantis unlock
All Atlantis locks for this PR have been unlocked and plans discarded
Description
🤖 Generated by Copilot at 1ed025b
This pull request migrates the api-journeys service from ArangoDB to PostgreSQL as the database provider. It updates the codebase, the infrastructure, and the tests to use Prisma, a tool for managing PostgreSQL schemas and migrations. It also adds a new feature for querying and paginating journey visitors by various sorting and filtering options. It affects the following files:
seed.ts
,graphql.ts
,button.resolver.spec.ts
,button.resolver.ts
,event.module.ts
,event.resolver.spec.ts
,event.resolver.ts
,event.service.spec.ts
,settings.json
,Dockerfile
,migration.sql
,migration_lock.toml
,schema.prisma
,psMigrate.ts
,locals.tf
,main.tf
,variables.tf
,project.json
, andprisma.service.ts
.https://3.basecamp.com/3105655/buckets/32387047/todos/6067395788
How should this PR be QA Tested?
Please describe the QA tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
fetch secrets
nx prisma-reset (if there are problems with my data)
nx prisma-generate api-journeys
nx prisma-migrate api-journeys
nx seed api-journeys
[ ] existing endpoints for events & visitors function without change
[ ] journeyVisitorConnection & journeyVisitorCount endpoints function
Walkthrough
🤖 Generated by Copilot at 1ed025b
.vscode/settings.json
file (link)Dockerfile
for the database seed script to install and run Prisma (link)psMigrate
function in the seed script to import data from ArangoDB to PostgreSQL (link, link)psMigrate
function, which queries and inserts data into the PostgreSQL database (link)PG_DATABASE_URL
environment variable to the local infrastructure configuration (link)PG_DATABASE_URL
environment variable to the secrets list and a new module for the database to the main infrastructure configuration (link)PrismaService
class, which connects to the PostgreSQL database and enables the shutdown hooks (link)VisitorService
with thePrismaService
in the button resolver and its tests (link, link, link)visitor.update
method to use theprisma.visitor.update
method and pass the where and data arguments in the button resolver and its tests (link, link, link, link)prisma.journeyVisitor.update
method to update the journeyVisitor fields and increment the activityCount in the button resolver and its tests (link, link, link)ButtonClickEvent
in the button resolver (link)PrismaService
to the event module (link, link)PrismaService
in the event service tests (link)journeyVisitor
property to the return value of thevisitorService.get
method in the event service tests (link)getAllByVisitorId
method and its test from the event service tests (link)