The mercury backend has been migrating Kysely → Drizzle for ~18 months (~87% done). The user wants a concerted final push with Linear tickets dividable among developers. The Linear project "Q3: Kysely > Drizzle" (lead Erty Seidohl, ENG team, started Q3 2026-07-01) exists for exactly this; its only issue is ENG-2812 "Tickets for Kysely Drizzle" — the ticket-writing task this plan fulfills. (An older per-function project "Kysely -> Drizzle", led by Chris, has 100+ Done issues.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Result<Response> = { | |
| get(): Promise<Response>; | |
| delete(): Promise<Response>; | |
| post(body?: BodyInit): Promise<Response>; | |
| put(body?: BodyInit): Promise<Response>; | |
| patch(body?: BodyInit): Promise<Response>; | |
| }; | |
| type Options = { | |
| headers?: Record<string, string>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DbHandler | |
| { | |
| private $conn; | |
| private $pdo; | |
| /** | |
| * DbHandler constructor. | |
| * Pass in connections to prevent race conditions being cause by multiple connections being created | |
| * @param {mysqli} $dbConnection - optional mysqli connection | |
| * @param {PDO} $pdoConnection - optional pdo connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const patchEstimateHandler = async (req, res) => { | |
| const { | |
| body: { canStartToday }, | |
| params: { estimateId }, | |
| userId | |
| } = req; | |
| const originalEstimate = await getEstimateById(estimateId); | |
| if (!originalEstimate) { | |
| return responseService.createErrorResponse(res, createError.NotFound()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import DataLoader from 'dataloader'; | |
| import UserPermission from '../../../models/user-permission.model'; | |
| async function batchUserPermissions(userIds) { | |
| const userPermissionListMap = new Map(); | |
| const userPermissions = await UserPermission.query() | |
| .select(['userId', 'permission']) | |
| .whereIn('userId', userIds); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow | |
| // pages/test.jsx | |
| import React from 'react'; | |
| import Link from 'next/link'; | |
| import LinkButton from '../components/homee-ui/LinkButton'; | |
| export default () => ( | |
| <div> | |
| <Link href="/workbench/[bucket]" as="/workbench/active" passHref> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow | |
| import React from 'react'; | |
| import css from 'styled-jsx/css'; | |
| import classnames from 'classnames'; | |
| import { useDispatch, useSelector } from 'react-redux'; | |
| import { useApolloClient } from '@apollo/react-hooks'; | |
| import pluralize from 'pluralize'; | |
| import PropTypes from 'prop-types'; | |
| import userHasLoginRole from '../../utils/userHasLoginRole'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const html = require('pa11y-reporter-html'); | |
| const pa11y = require('pa11y'); | |
| const fs = require('fs'); | |
| const open = require('open'); | |
| const [, , url] = process.argv; | |
| (async () => { | |
| console.log(`Signing in as admin user...`); | |
| const results = await pa11y('https://workshop.dev.homee.com/login/internal', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow | |
| import PropTypes from 'prop-types'; | |
| import React from 'react'; | |
| import { connect } from 'react-redux'; | |
| import { useApolloClient } from '@apollo/react-hooks'; | |
| import type { Dispatch } from 'redux'; | |
| import consumerRequestActions from './consumerRequestActionsMap'; | |
| import jobActions from './jobActionsMap'; |
NewerOlder