1
0
mirror of synced 2025-12-21 02:46:50 -05:00
Commit Graph

20 Commits

Author SHA1 Message Date
Peter Bengtsson
9c42d70a5a jest test suite should never send to Hydro (#22740)
Part of #1200
2021-11-10 21:38:26 +00:00
Kevin Heis
9522baa015 If Hydro just took too long, ignore it (#22547)
* If Hydro just took too long, ignore it

* Update lib/hydro.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-11-03 16:50:35 +00:00
Kevin Heis
dca7e56c3d More hydro error info (#22533)
* Add more info to hydro failures

* Clean up

* Update hydro.js

* Move hydro names to event schema file

* Update hydro.js
2021-11-02 16:13:48 +00:00
Kevin Heis
83804c7114 Create search result event (#22307)
* Create search result event

* Update Search.tsx

* actually send it

* remove comment

* Apply suggestions from code review

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* add 'required' to schema

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2021-10-21 00:37:39 +00:00
Kevin Heis
8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00
Kevin Heis
42e785b0a8 Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00
James M. Greene
4cf1794e41 Log Hydro validation failures (#20189)
* Log Hydro validation failures
* Include request body as well
2021-06-29 19:36:12 +00:00
Sarah Edwards
7e4db83ead Add event tracking for application selector (#19533)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-05-26 14:11:55 -07:00
Mike Surowiec
e8a65dba8a hydro: allow grouping of response stats by code 2021-04-10 14:06:22 -07:00
Mike Surowiec
09dfd19093 fix: statsd prefix doesn't work as intended, clean up stats scoping 2021-04-08 09:48:17 -07:00
Mike Surowiec
a9bde76bfc fix: hydro status code metric 2021-04-08 09:43:09 -07:00
Mike Surowiec
db4695da14 fix: use asyncTimer properly 2021-04-06 16:49:20 -07:00
Mike Surowiec
720c194854 fix: remove semicolons 2021-04-06 16:38:45 -07:00
Mike Surowiec
57311c8c46 fix: remove field.paths from err 2021-04-06 16:37:51 -07:00
Mike Surowiec
8998e52dc0 move hydro sentry error out of /events, to hydro 2021-04-06 16:28:41 -07:00
Mike Surowiec
008faf57eb improve sentry reporting, add metrics for hydro 2021-04-06 16:21:40 -07:00
Kevin Heis
93849795e0 Record redirect events (#16181)
* Record redirect events

* Update index.js

* Update record-redirect.js

* Only run when it can send to Hydro

* Update record-redirect.js
2020-10-26 10:18:42 -07:00
Kevin Heis
3daacd9a6b Add new schemas for redirect, copy, print (#16175)
* Add new schemas for redirect, copy, print

* Update schema-event.js

* Update events.js

* Copy -> Clipboard

* Update events.js
2020-10-23 09:31:58 -07:00
Kevin Heis
7c0c493c35 Sending events to POST /events endpoint (#15796) 2020-10-08 09:24:41 -07:00
Jason Etcovitch
239643b094 Add basic Hydro SDK (#15725)
* Add back changes from prior to purge

* Add back in updates since main change

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2020-09-30 12:49:27 -04:00