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 – Merge commit restoration #3032

Merged
merged 40 commits into from
Aug 23, 2024
Merged

Deploy to Production – Merge commit restoration #3032

merged 40 commits into from
Aug 23, 2024

Conversation

kepae
Copy link
Collaborator

@kepae kepae commented Aug 21, 2024

No description provided.

lmcnulty and others added 30 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>
# Conflicts:
#	site/gatsby-site/cypress/e2e/integration/apps/variants.cy.js
Add full e2e workflows to production and staging
* Configure graphql codegen to work with Apollo client and enable static checking

* Update queries to use new codegen function

* Fix anonymous mutation

* Add updated codegen files

* Add comment

* Add codegen babel plugin to remove generated query map from production bundle

* Add generated fragment maskings

* update lockfile

* remove unnecessary mock

* style
# Conflicts:
#	site/gatsby-site/src/graphql/variants.js
* Delete migrated files

* Delete function file

* Delete report translations resolver
…-design

Revise Citation Page Taxonomy Table Style
clari182 and others added 9 commits August 15, 2024 10:48
* Migrate submissions to new API

* Remove unused adminData

* Fix updateSubmission mutation with new API changes

* Update SubmissionEditModal.js

* Add .ts to eslintrc

* Check for incident_ids if null

* Add new user query to not fetch adminData

* Add generated files for new query

* Revert to previous user roles query
* Add fixes to relationship handling from #1072

* Return link validation errors instead of throwing so they are shown in graphql response

* Update outdated query variables
Fix cite page not loading recently promoted incidents
@cesarvarela cesarvarela changed the base branch from main to add-editors August 23, 2024 15:27
@cesarvarela cesarvarela changed the base branch from add-editors to main August 23, 2024 15:27
@kepae kepae closed this Aug 23, 2024
@kepae kepae reopened this Aug 23, 2024
Copy link

codecov bot commented Aug 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (6c38996) to head (f1a807a).
Report is 41 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3032       +/-   ##
===========================================
+ Coverage   85.48%   96.49%   +11.00%     
===========================================
  Files         148       30      -118     
  Lines       12381     8759     -3622     
  Branches     1408      128     -1280     
===========================================
- Hits        10584     8452     -2132     
+ Misses       1609      307     -1302     
+ Partials      188        0      -188     

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

@kepae
Copy link
Collaborator Author

kepae commented Aug 23, 2024

Merging this as a merge commit to restore our PR workflow.

@kepae kepae merged commit 8c10d80 into main Aug 23, 2024
14 of 22 checks passed
@kepae kepae changed the title Deploy to Production Deploy to Production – Merge commit restoration Aug 23, 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