cal/playwright
Omar López 7bc7b241ac
Zomars/cal 794 normalize emails in db (#1361)
* Email input UX improvements

* Makes email queries case insensitive

* Lowercases all emails

* Type fixes

* Re adds lowercase email to login

* Removes citext dependency

* Updates schema

* Migration fixes

* Added failsafes to team invites

* Team invite improvements

* Deleting the index, lowercasing 

```
calendso=> UPDATE users SET email=LOWER(email);
ERROR:  duplicate key value violates unique constraint "users.email_unique"
DETAIL:  Key (email)=(free@example.com) already exists.
```

vs.

```
calendso=> CREATE UNIQUE INDEX "users.email_unique" ON "users" (email);
ERROR:  could not create unique index "users.email_unique"
DETAIL:  Key (email)=(Free@example.com) is duplicated.
```

I think it'll be easier to rectify for users if they try to run the migrations if the index stays in place.

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2021-12-21 00:59:06 +00:00
..
integrations.test.ts-snapshots Zomars/cal 794 normalize emails in db (#1361) 2021-12-21 00:59:06 +00:00
lib Zomars/cal 748 paid bookings are failing (#1335) 2021-12-17 16:58:23 +00:00
booking-pages.test.ts Zomars/cal 748 paid bookings are failing (#1335) 2021-12-17 16:58:23 +00:00
event-types.test.ts E2E tests refactoring (#1318) 2021-12-15 16:25:49 +00:00
integrations-stripe.test.ts Zomars/cal 748 paid bookings are failing (#1335) 2021-12-17 16:58:23 +00:00
integrations.test.ts Zomars/cal 794 normalize emails in db (#1361) 2021-12-21 00:59:06 +00:00
login.test.ts E2E tests refactoring (#1318) 2021-12-15 16:25:49 +00:00
onboarding.test.ts E2E tests refactoring (#1318) 2021-12-15 16:25:49 +00:00