Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new columns to perfile table #305 #332

Merged
merged 5 commits into from
Jun 20, 2024
Merged

Add new columns to perfile table #305 #332

merged 5 commits into from
Jun 20, 2024

Conversation

RamiroISC
Copy link
Contributor

What does this PR do?

Add the column isBillable of type boolean with the default value true to the profiles table

Where should the reviewer start?

In the schema and in the Prisma migrations

How should this be manually tested?

With a query to the database

Copy link
Collaborator

@jackbravo jackbravo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Please just review my other comments and fix both Vitest and ESLint, which are failing.

@@ -8,7 +8,9 @@ import type {
PrismaClient,
} from "@prisma/client";
import { Prisma } from "@prisma/client";
import { sql } from "kysely";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none of these changes from lines 11 to 13 seem necessary. ESLint says we are importing but not using those names.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you revert line 11. It still shows this warning from ESLint

image

s Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file? Is it necessary?

 Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file? Is it necessary?

@@ -8,7 +8,9 @@ import type {
PrismaClient,
} from "@prisma/client";
import { Prisma } from "@prisma/client";
import { sql } from "kysely";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you revert line 11. It still shows this warning from ESLint

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tested these changes? You need to run

npm run migrate-profiles-lake

Copy link
Collaborator

@jackbravo jackbravo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@@ -41,6 +42,7 @@ export async function getActiveProfiles() {
const query = `SELECT contact__wizeos_profile_id, contact__employee_number, contact__email,
contact__first_name, contact__preferred_name, contact__last_name,
contact__photo__url,
contact__isBillable,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one is incorrect? Right?

@jackbravo jackbravo merged commit 38643d3 into main Jun 20, 2024
7 checks passed
@jackbravo jackbravo deleted the profiles_is_billable branch June 20, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants