mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
Remove console.logs (#5500)
This commit is contained in:
parent
f99e58fba5
commit
4aadc77c59
8 changed files with 6 additions and 31 deletions
2
.github/workflows/pr.yaml
vendored
2
.github/workflows/pr.yaml
vendored
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
npmTag: rc
|
||||
restoreDeletedChangesets: true
|
||||
buildScript: build:libraries
|
||||
nodeVersion: 22
|
||||
nodeVersion: 22.6
|
||||
packageManager: pnpm
|
||||
secrets:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
2
.github/workflows/release-alpha.yaml
vendored
2
.github/workflows/release-alpha.yaml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
|||
with:
|
||||
npmTag: alpha
|
||||
buildScript: build:libraries
|
||||
nodeVersion: '22.4'
|
||||
nodeVersion: '22.6'
|
||||
packageManager: pnpm
|
||||
secrets:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
2
.github/workflows/tests-e2e.yaml
vendored
2
.github/workflows/tests-e2e.yaml
vendored
|
|
@ -50,7 +50,7 @@ jobs:
|
|||
|
||||
- name: cypress
|
||||
timeout-minutes: 6
|
||||
uses: cypress-io/github-action@v5
|
||||
uses: cypress-io/github-action@v6
|
||||
env:
|
||||
CI: true
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
22
|
||||
22.6
|
||||
|
|
|
|||
2
.nvmrc
2
.nvmrc
|
|
@ -1 +1 @@
|
|||
v22
|
||||
v22.6
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
// eslint-disable-next-line import/no-extraneous-dependencies -- cypress SHOULD be a dev dependency
|
||||
import fs from 'node:fs';
|
||||
import { defineConfig } from 'cypress';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import pg from 'pg';
|
||||
|
||||
const isCI = Boolean(process.env.CI);
|
||||
|
||||
|
|
@ -15,25 +13,7 @@ export default defineConfig({
|
|||
POSTGRES_URL: 'postgresql://postgres:postgres@localhost:5432/registry',
|
||||
},
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {
|
||||
on('task', {
|
||||
async connectDB(query: string) {
|
||||
const dbUrl = new URL(config.env.POSTGRES_URL);
|
||||
const client = new pg.Client({
|
||||
user: dbUrl.username,
|
||||
password: dbUrl.password,
|
||||
host: dbUrl.hostname,
|
||||
database: dbUrl.pathname.slice(1),
|
||||
port: Number(dbUrl.port),
|
||||
ssl: false,
|
||||
});
|
||||
await client.connect();
|
||||
const res = await client.query(query);
|
||||
await client.end();
|
||||
return res.rows;
|
||||
},
|
||||
});
|
||||
|
||||
setupNodeEvents(on) {
|
||||
on('after:spec', (_, results) => {
|
||||
if (results && results.video) {
|
||||
// Do we have failures for any retry attempts?
|
||||
|
|
|
|||
|
|
@ -187,7 +187,6 @@ export class AlertsManager {
|
|||
channel: channels.find(channel => channel.id === alert.channelId)!,
|
||||
};
|
||||
});
|
||||
console.log('pairs:', pairs);
|
||||
|
||||
const slackToken = await this.slackIntegrationManager.getToken({
|
||||
organization: event.organization.id,
|
||||
|
|
|
|||
|
|
@ -5165,7 +5165,6 @@ async function updateSchemaCoordinateStatus(
|
|||
const actions: Promise<unknown>[] = [];
|
||||
|
||||
if (args.coordinatesDiff.deleted) {
|
||||
console.log('DELETED', JSON.stringify(Array.from(args.coordinatesDiff.deleted)));
|
||||
// actions.push(
|
||||
// trx.query(sql`/* schema_coordinate_status_deleted */
|
||||
// DELETE FROM schema_coordinate_status
|
||||
|
|
@ -5180,7 +5179,6 @@ async function updateSchemaCoordinateStatus(
|
|||
}
|
||||
|
||||
if (args.coordinatesDiff.added) {
|
||||
console.log('ADDED', JSON.stringify(Array.from(args.coordinatesDiff.added)));
|
||||
// actions.push(
|
||||
// trx.query(sql`/* schema_coordinate_status_inserted */
|
||||
// INSERT INTO schema_coordinate_status
|
||||
|
|
@ -5204,7 +5202,6 @@ async function updateSchemaCoordinateStatus(
|
|||
}
|
||||
|
||||
if (args.coordinatesDiff.undeprecated) {
|
||||
console.log('UNDEPRECATED', JSON.stringify(Array.from(args.coordinatesDiff.undeprecated)));
|
||||
// actions.push(
|
||||
// trx.query(sql`/* schema_coordinate_status_undeprecated */
|
||||
// UPDATE schema_coordinate_status
|
||||
|
|
@ -5220,7 +5217,6 @@ async function updateSchemaCoordinateStatus(
|
|||
await Promise.all(actions);
|
||||
|
||||
if (args.coordinatesDiff.deprecated) {
|
||||
console.log('DEPRECATED', JSON.stringify(Array.from(args.coordinatesDiff.deprecated)));
|
||||
// await trx.query(sql`/* schema_coordinate_status_deprecated */
|
||||
// UPDATE schema_coordinate_status
|
||||
// SET deprecated_at = NOW(), deprecated_in_version_id = ${args.versionId}
|
||||
|
|
|
|||
Loading…
Reference in a new issue