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

Deploy to Production – 2024-08-21 #2999

Merged
merged 39 commits into from
Aug 19, 2024
Merged

Deploy to Production – 2024-08-21 #2999

merged 39 commits into from
Aug 19, 2024

Conversation

lmcnulty and others added 10 commits July 3, 2024 10:38
* Forward graphql requests to netlify function

* Trigger Build

* update lockfile

* Avoid having to introspect schema for every request

* Allow anonymous read only queries

* Allow anonymous read only queries

* Trigger Build

* Add quickadds resolver

* Split resolvers into separate files

* Separate auth in its own file

* Add jest and tests

* Add script to boot local api server for development purposes

* Add quickadd insert field

* Add github workflows

* Trigger build

remove

Trigger build

Trigger build

fsdfsf

Trigger build

Trigger build

bigint patch

use require

* Update codegen tool config

* Reuse mongodb client from context

* Update codege

* Strongly typed environment config

* Increase function timeout

* Update bson version

* Make environment variables available to gatsby functions

* Fix ts error

* Trigger build

* Make errors more verbose

* Add missing variables

* Disable env validation

* Use graphql-http to prevent event emitter leaks

* Enable env validation

* New bson version exports ObjectId instead of ObjectID

* Update lockfile

* Trigger build

* Remove unused query

* bue

* Add support for filters, sorting and pagination

* Remove unused package

* Remove unused file

* allow api tests to be cancelled

* Delete old test file

* Run api tests when pushing staging

* update test utils

* Trigger build

* Force exit to let tests exit

* remove old api endpoint

* Update client side queries

* Udpate docs

* Use vars for api and group ids

* convert to import jic

* Trigger build

* Trigger build

* Update workflows

* Trigger build

* Add missing variables

* Fix error when object id is already serialized

* Update workflow file

* Improve error message

* update readme

* Remove unused vars

* Remove unused packages

* Log errors to rollbar

* Trigger build

* Add rollbar token variable

* Trigger build

* fix variable name

* Trigger build

* Add function to programmatically generate query fields

* Add programmatic mutation fields function

* Add tests for update methods

* update client side queries

* Add field queries tests

* add tests for insert and update mutations

* add delete mutations programmatic tests

* Configure fixtures

* Tests suite needs to be run in a single process

* And missing dynamic fields and improve fixture design

* Add roles expectations

* delete redundant tests

* Add incidents and report queries

* Add report translations resolver

* add missing dotenv config

* Update tests to mock realm api

* remove unrelated files

* Remove unrelated changes

* Remove unrelated changes

* Remove access to test user credentials

* Remove unused

* Use dummy values on api test workflow

* Fix wrong database being mocked

* Fix schema issue

* cleanup

* Add incidents and reports field implementation

* Implement linkReportsToIncidents mutation

* Typed return

* Delete old implementation

* Add incidents/edit.spec

* Add incidents/history.spec

* Add incidents/new.spec

* Delete incidents/new.cy incidents/history.cy and incidents/edit.cy

* Add reports test api fixtures and improve fixtures expressiveness

* Migrate entities collection

* Add incidents fixture and update fixture structure

* Add users fixture

* Add utility functions to resolve and configure relationships

* Make sure inputs are required

* Add special type for available fields

* Update test fixtures and fix permissions

* add flag report mutation and tests

* Add date modified fields

* Fix upsertOne issues

* Remove leftover

* Add test to report to incident linking mutation

* Add submissions collection to api

* Add full e2e workflow

* Trigger Build

* update lockfile

* Fix history latest version test

* Fix new spec errors

* Add in memory mongo server

* remove comment

* Wait for memory server to start

* Trigger Build

* Remove quotes

* Trigger Build

* Fix typo in name

* Get cite tests to work fully e2e

* Rename intercept for consistency

* Add missing waitForRequest

* get submission form working with new api

* Add missing env variable

* Trigger Build

* Add missing variable

* Trigger Build

* Update users table components

* Add similarity flag mutation

* Add update one report mutation

* Get incident report edit form to work

* update lockfile

* Get dinamic citation page to work

* Get incident handling to work

* Update tests

* Update entity type to use date objects

* Fix schema stiching warnings

* Fix/silence warnings

* Rename to prevent artifact collision

* Update history related tests

* Trigger Build

* Add docs to server utils

* Silence warning

* Run mocked tests separately.

* Trigger Build

* Make sure to give time to autocomplete

* Fix tests

* Add createVariant mutation and separate types into files to deal with circular dep

* Delete custom mutation from remote

* Update variants related components and tests

* Trigger Build

* Add memory mongo command

* Update tests

* avoid report artifact collision

* Trigger Build

* update test

* Fix incidents app

* Remove debug

* Separate incident data type into its own file

---------

Co-authored-by: Clara Youdale <clara@botsfactory.io>
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

Attention: Patch coverage is 94.06641% with 218 lines in your changes missing coverage. Please review.

Project coverage is 96.49%. Comparing base (8d5b80a) to head (af28cc8).
Report is 5 commits behind head on main.

Files Patch % Lines
site/gatsby-site/server/fields/submissions.ts 69.67% 84 Missing ⚠️
site/gatsby-site/server/utils.ts 90.83% 83 Missing ⚠️
site/gatsby-site/server/types/user.ts 64.15% 19 Missing ⚠️
site/gatsby-site/server/fields/incidents.ts 90.19% 10 Missing ⚠️
site/gatsby-site/server/fields/reports.ts 96.31% 9 Missing ⚠️
site/gatsby-site/server/fields/common.ts 86.88% 8 Missing ⚠️
site/gatsby-site/server/context.ts 40.00% 3 Missing ⚠️
site/gatsby-site/server/types/report.ts 97.53% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2999       +/-   ##
===========================================
+ Coverage   84.31%   96.49%   +12.18%     
===========================================
  Files         179       30      -149     
  Lines       11214     8759     -2455     
  Branches     1955      180     -1775     
===========================================
- Hits         9455     8452     -1003     
+ Misses       1592      307     -1285     
+ Partials      167        0      -167     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cesarvarela
Copy link
Collaborator Author

This is ready for deployment, but let's hold on until Monday 😉

@kepae
Copy link
Collaborator

kepae commented Aug 19, 2024

@cesarvarela on your mark!

@cesarvarela cesarvarela merged commit 6c38996 into main Aug 19, 2024
13 of 20 checks passed
@kepae kepae changed the title Deploy to Production Deploy to Production – 2024-08-21 Aug 21, 2024
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.

5 participants