Skip to content

Commit

Permalink
[NOREF] Migrate to new repository name (#2649)
Browse files Browse the repository at this point in the history
* Migrate all instances of github.com/cmsgov/easi-app to github.com/cms-enterprise/easi-app

* update new files to use new module - gqlgen

* Update CODEOWNERS
  • Loading branch information
ClayBenson94 committed Jul 1, 2024
1 parent df38cda commit 78f953a
Show file tree
Hide file tree
Showing 436 changed files with 1,965 additions and 1,965 deletions.
32 changes: 16 additions & 16 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Order matters in a CODEOWNERS file. The last matching pattern is what will be used for requests.
# Anything that doesn't hit the below patterns should be sent to the entire team for review.
* @CMSGov/easi
* @CMS-Enterprise/easi

# Frontend Changes
/yarn.lock @CMSGov/easi-frontend
/package.json @CMSGov/easi-frontend
/src/ @CMSGov/easi-frontend
/cypress/ @CMSGov/easi-frontend
/public/ @CMSGov/easi-frontend
/.storybook/ @CMSGov/easi-frontend
*.js @CMSGov/easi-frontend
*.ts @CMSGov/easi-frontend
*.tsx @CMSGov/easi-frontend
/yarn.lock @CMS-Enterprise/easi-frontend
/package.json @CMS-Enterprise/easi-frontend
/src/ @CMS-Enterprise/easi-frontend
/cypress/ @CMS-Enterprise/easi-frontend
/public/ @CMS-Enterprise/easi-frontend
/.storybook/ @CMS-Enterprise/easi-frontend
*.js @CMS-Enterprise/easi-frontend
*.ts @CMS-Enterprise/easi-frontend
*.tsx @CMS-Enterprise/easi-frontend

# Backend Changes
/go.mod @CMSGov/easi-backend
/go.sum @CMSGov/easi-backend
/pkg/ @CMSGov/easi-backend
/cmd/ @CMSGov/easi-backend
/migrations/ @CMSGov/easi-backend
*.go @CMSGov/easi-backend
/go.mod @CMS-Enterprise/easi-backend
/go.sum @CMS-Enterprise/easi-backend
/pkg/ @CMS-Enterprise/easi-backend
/cmd/ @CMS-Enterprise/easi-backend
/migrations/ @CMS-Enterprise/easi-backend
*.go @CMS-Enterprise/easi-backend
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ linters-settings:
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/cmsgov/easi-app
local-prefixes: github.com/cms-enterprise/easi-app
revive:
confidence: 0.1 # Default is 0.8. We want to ignore things that have an extremely low confidence level
exhaustive:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
hooks:
- id: go-fmt-import
name: Run "goimports" on go files
args: ['-local', 'github.com/cmsgov/easi-app']
args: ['-local', 'github.com/cms-enterprise/easi-app']
files: .*\.go$
exclude: >
(?x)^(
Expand Down
2 changes: 1 addition & 1 deletion cmd/backfill/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/google/uuid"
"github.com/guregu/null"

"github.com/cmsgov/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/models"
)

const (
Expand Down
12 changes: 6 additions & 6 deletions cmd/devdata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"go.uber.org/zap"
ld "gopkg.in/launchdarkly/go-server-sdk.v5"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/appconfig"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cmsgov/easi-app/pkg/testhelpers"
"github.com/cmsgov/easi-app/pkg/upload"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/appconfig"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/testhelpers"
"github.com/cms-enterprise/easi-app/pkg/upload"
)

type seederConfig struct {
Expand Down
10 changes: 5 additions & 5 deletions cmd/devdata/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (

"go.uber.org/zap"

"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/authentication"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cmsgov/easi-app/pkg/userhelpers"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/authentication"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/userhelpers"
)

// PrincipalUser is the "current user" when seeding the data
Expand Down
12 changes: 6 additions & 6 deletions cmd/devdata/system_intake.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"github.com/jmoiron/sqlx"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/graph/resolvers"
"github.com/cmsgov/easi-app/pkg/local/cedarcoremock"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/sqlutils"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/graph/resolvers"
"github.com/cms-enterprise/easi-app/pkg/local/cedarcoremock"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/sqlutils"
"github.com/cms-enterprise/easi-app/pkg/storage"
)

// creates, fills out the initial request form, and submits a system intake
Expand Down
8 changes: 4 additions & 4 deletions cmd/devdata/system_intake_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/google/uuid"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/graph/resolvers"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/graph/resolvers"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
)

type progressOptions struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/devdata/system_intake_business_case_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"github.com/guregu/null"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
)

func makeDraftBusinessCaseV1(name string, logger *zap.Logger, store *storage.Store, intake *models.SystemIntake) *models.SystemIntake {
Expand Down
8 changes: 4 additions & 4 deletions cmd/devdata/system_intake_decision_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"github.com/google/uuid"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/graph/resolvers"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/graph/resolvers"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
)

func makeSystemIntakeAndIssueLCID(
Expand Down
10 changes: 5 additions & 5 deletions cmd/devdata/system_intake_grb_reviewers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"go.uber.org/zap"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/graph/resolvers"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cmsgov/easi-app/pkg/userhelpers"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/graph/resolvers"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/userhelpers"
)

func createSystemIntakeGRBReviewer(
Expand Down
8 changes: 4 additions & 4 deletions cmd/devdata/trb_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"github.com/guregu/null"
"github.com/lib/pq"

"github.com/cmsgov/easi-app/cmd/devdata/mock"
"github.com/cmsgov/easi-app/pkg/easiencoding"
"github.com/cmsgov/easi-app/pkg/graph/resolvers"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/cmd/devdata/mock"
"github.com/cms-enterprise/easi-app/pkg/easiencoding"
"github.com/cms-enterprise/easi-app/pkg/graph/resolvers"
"github.com/cms-enterprise/easi-app/pkg/models"
)

func (s *seederConfig) seedTRBRequests(ctx context.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/easi/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/cmsgov/easi-app/pkg/server"
"github.com/cms-enterprise/easi-app/pkg/server"
)

var serveCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/easi/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/spf13/cobra"

"github.com/cmsgov/easi-app/cmd/easi/test"
"github.com/cms-enterprise/easi-app/cmd/easi/test"
)

var testCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/gen_intake_schema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/alecthomas/jsonschema"

intakemodels "github.com/cmsgov/easi-app/pkg/cedar/intake/models"
"github.com/cmsgov/easi-app/pkg/cedar/intake/translation"
intakemodels "github.com/cms-enterprise/easi-app/pkg/cedar/intake/models"
"github.com/cms-enterprise/easi-app/pkg/cedar/intake/translation"
)

func generateSchema(object interface{}, version translation.SchemaVersion, filename string) {
Expand Down
10 changes: 5 additions & 5 deletions cmd/migrate_intakes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"gopkg.in/launchdarkly/go-server-sdk.v5/ldcomponents"
"gopkg.in/launchdarkly/go-server-sdk.v5/testhelpers/ldtestdata"

"github.com/cmsgov/easi-app/pkg/appconfig"
"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cmsgov/easi-app/pkg/testhelpers"
"github.com/cms-enterprise/easi-app/pkg/appconfig"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/testhelpers"
)

func noErr(err error) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/populate_user_table/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/spf13/viper"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/pkg/appconfig"
"github.com/cmsgov/easi-app/pkg/oktaapi"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/appconfig"
"github.com/cms-enterprise/easi-app/pkg/oktaapi"
"github.com/cms-enterprise/easi-app/pkg/storage"
)

// getResolverDependencies takes a Viper config and returns a Store and Logger object to be used
Expand Down
2 changes: 1 addition & 1 deletion cmd/populate_user_table/iam_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/jmoiron/sqlx"
"github.com/lib/pq"

"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/storage"
)

// iamDB is a custom struct that satisfies the driver.Connector so that it can be used with sql.OpenDB.
Expand Down
2 changes: 1 addition & 1 deletion cmd/populate_user_table/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/viper"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
)

var rootCmd = &cobra.Command{
Expand Down
12 changes: 6 additions & 6 deletions cmd/populate_user_table/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"github.com/spf13/viper"
"go.uber.org/zap"

"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/authentication"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/oktaapi"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cmsgov/easi-app/pkg/userhelpers"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/authentication"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/oktaapi"
"github.com/cms-enterprise/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/userhelpers"

_ "embed"
)
Expand Down
16 changes: 8 additions & 8 deletions cmd/test_cedar_intake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import (
"go.uber.org/zap"
ld "gopkg.in/launchdarkly/go-server-sdk.v5"

"github.com/cmsgov/easi-app/pkg/appconfig"
"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/cedar/intake"
"github.com/cmsgov/easi-app/pkg/cedar/intake/translation"
"github.com/cmsgov/easi-app/pkg/dataloaders"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cmsgov/easi-app/pkg/storage"
"github.com/cmsgov/easi-app/pkg/testhelpers"
"github.com/cms-enterprise/easi-app/pkg/appconfig"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/cedar/intake"
"github.com/cms-enterprise/easi-app/pkg/cedar/intake/translation"
"github.com/cms-enterprise/easi-app/pkg/dataloaders"
"github.com/cms-enterprise/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/storage"
"github.com/cms-enterprise/easi-app/pkg/testhelpers"
)

func noErr(err error) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/test_email_templates/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"os"
"time"

"github.com/cmsgov/easi-app/pkg/appcontext"
"github.com/cmsgov/easi-app/pkg/email"
"github.com/cmsgov/easi-app/pkg/local"
"github.com/cmsgov/easi-app/pkg/models"
"github.com/cms-enterprise/easi-app/pkg/appcontext"
"github.com/cms-enterprise/easi-app/pkg/email"
"github.com/cms-enterprise/easi-app/pkg/local"
"github.com/cms-enterprise/easi-app/pkg/models"

"github.com/google/uuid"
"go.uber.org/zap"
Expand Down
4 changes: 2 additions & 2 deletions docs/adr/0018-integration-tests-third-party-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in CI. Okta tests are out of scope.

In this context, "integration test" refers to either: (1) a Cypress test
(frontend/backend integration/end-to-end test); or (2) the backend [integration
tests](https://github.com/CMSgov/easi-app/tree/main/pkg/integration) that run
tests](https://github.com/cms-enterprise/easi-app/tree/main/pkg/integration) that run
when invoking `easi test`. "CI environment" means the network in which our
CircleCI containers run. "Deployed environment" means one of our AWS
environments (development, implementation, production). The term "mock" is being
Expand All @@ -28,7 +28,7 @@ stub, fake, spy, etc.
reduce operational and networking overhead from the CI environment. Since a
successful deployment to the development AWS environment is required before
merging code, we can use the [health
check](https://github.com/CMSgov/easi-app/blob/main/pkg/server/health_check.go)
check](https://github.com/cms-enterprise/easi-app/blob/main/pkg/server/health_check.go)
that runs on server start in a deployed environment as a test to prevent
breaking changes to the CEDAR API client from being merged.

Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0021-audit-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ As we try to have logs for user actions, we need to better understand where
they live and what extent of logging we will be doing.

The decision to use AWS logging tools is addressed in a previous
[ADR](https://github.com/CMSgov/easi-app/blob/main/docs/adr/0009-logging-platform.md).
[ADR](https://github.com/cms-enterprise/easi-app/blob/main/docs/adr/0009-logging-platform.md).
We decided to use CMS Cloud Splunk because it best facilitated the requirement
of forwarding logs to the CCIC and integrating with the CMS Cloud team.

Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0029-server-side-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Additionally, the main con of in-application memory caching (that it's not share

### In application memory caching

* `+` Very easy to implement. (See [the POC branch](https://github.com/CMSgov/easi-app/compare/EASI-1505/go-cache-poc) for an example of how to implement it.)
* `+` Very easy to implement. (See [the POC branch](https://github.com/cms-enterprise/easi-app/compare/EASI-1505/go-cache-poc) for an example of how to implement it.)
* `+` Requires no changes to infrastructure
* `+` Likely has the lowest response time out of all the available options
* `+` Can easily be temporarily introduced and later replaced with another solution
Expand Down
4 changes: 2 additions & 2 deletions docs/adr/0030-graphql-n+1-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ ends up making a SQL request for all accessibility requests, then it makes a *se
2021-12-20 23:36:02.286 UTC [122] DETAIL: parameters: $1 = 'bea5c7a4-cf84-4aea-9300-5c8828aa1866'
```

This could cause some scalability issues as the number of records in our database goes up. It's also a potential issue when querying CEDAR; see [this PR comment](https://github.com/CMSgov/easi-app/pull/1406#discussion_r778218474) as an example where the n+1 problem prevents us from optimizing our GraphQL schema.
This could cause some scalability issues as the number of records in our database goes up. It's also a potential issue when querying CEDAR; see [this PR comment](https://github.com/cms-enterprise/easi-app/pull/1406#discussion_r778218474) as an example where the n+1 problem prevents us from optimizing our GraphQL schema.

## Considered Alternatives

* Do nothing.
* Use a dataloader-based approach for batching multiple queries. See https://github.com/graphql/dataloader and https://gqlgen.com/reference/dataloaders/ for information on this general approach.
* Implement this with the [`dataloaden`](https://github.com/vektah/dataloaden) library. The [`dataloaden-proof-of-concept` branch](https://github.com/CMSgov/easi-app/tree/dataloaden-proof-of-concept) has a proof of concept for using this, which batches the SQL queries.
* Implement this with the [`dataloaden`](https://github.com/vektah/dataloaden) library. The [`dataloaden-proof-of-concept` branch](https://github.com/cms-enterprise/easi-app/tree/dataloaden-proof-of-concept) has a proof of concept for using this, which batches the SQL queries.
* Implement this with the [`graph-gophers/dataloader`](https://github.com/graph-gophers/dataloader) library.


Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0034-send-cedar-intake-async.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CEDAR Intake Asynchronous Approach

The current (at time of writing) approach for sending data to the CEDAR Intake API is to [call the CEDAR Intake client as a part of an action that a user takes](https://github.com/CMSgov/easi-app/blob/5df7edb258addd2e974d797523318b09a4b2e21b/pkg/server/routes.go#L267-L270). This works, but raises a few questions:
The current (at time of writing) approach for sending data to the CEDAR Intake API is to [call the CEDAR Intake client as a part of an action that a user takes](https://github.com/cms-enterprise/easi-app/blob/5df7edb258addd2e974d797523318b09a4b2e21b/pkg/server/routes.go#L267-L270). This works, but raises a few questions:

- Should a failed call to CEDAR result in an error being returned to the user? (It does at the time of writing)
- How do we handle if one of these calls to CEDAR fails?
Expand Down
Loading

0 comments on commit 78f953a

Please sign in to comment.