From fc253687a3e09277ec0d244a588f1089a7835bde Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Sat, 27 Apr 2024 23:50:52 -0400 Subject: [PATCH] fix: correct spelling of receiver (#91) --- cli/docs/tutorials/quickstart.md | 2 +- docs/tutorials/quickstart/README.md | 8 ++++---- pkg/api/graphql/resolvers/models_test.go | 6 +++--- .../{event_reciever.graphql => event_receiver.graphql} | 0 ...eciever_group.graphql => event_receiver_group.graphql} | 0 5 files changed, 8 insertions(+), 8 deletions(-) rename pkg/api/graphql/schema/types/{event_reciever.graphql => event_receiver.graphql} (100%) rename pkg/api/graphql/schema/types/{event_reciever_group.graphql => event_receiver_group.graphql} (100%) diff --git a/cli/docs/tutorials/quickstart.md b/cli/docs/tutorials/quickstart.md index d037ff7..fbde5cf 100644 --- a/cli/docs/tutorials/quickstart.md +++ b/cli/docs/tutorials/quickstart.md @@ -70,7 +70,7 @@ receiver. ``` We can validate the new event receiver exists with the search command using the -`ID` from the create reciever command. +`ID` from the create receiver command. ```bash epr-cli receiver search --id 01HKX0J9KS8AASMRYX61458N41 --fields all diff --git a/docs/tutorials/quickstart/README.md b/docs/tutorials/quickstart/README.md index d11ceb7..ce96f50 100644 --- a/docs/tutorials/quickstart/README.md +++ b/docs/tutorials/quickstart/README.md @@ -505,7 +505,7 @@ As follows: We need to craft a GraphQL query. First thing we need is an event receiver. The event receiver acts as a classification and gate for events. -We can find and event reciever by id using the following graphql query: +We can find and event receiver by id using the following graphql query: ```json { @@ -518,7 +518,7 @@ We can find and event reciever by id using the following graphql query: } ``` -We can query the event reciever information using a POST on the graphql endpoint as follows: +We can query the event receiver information using a POST on the graphql endpoint as follows: ```bash curl -X POST -H "content-type:application/json" -d '{"query":"query ($er: FindEventReceiverInput!){event_receivers(event_receiver: $er) {id,name,type,version,description}}","variables":{"er":{"id":"01HPW652DSJBHR5K4KCZQ97GJP"}}}' http://localhost:8042/api/v1/graphql/query @@ -538,7 +538,7 @@ We can query for an event by name and version using the following graphql query: } ``` -We can query the event reciever information using a POST on the graphql endpoint as follows: +We can query the event receiver information using a POST on the graphql endpoint as follows: ```bash curl -X POST -H "content-type:application/json" -d '{"query":"query ($e : FindEventInput!){events(event: $e) {id,name,version,release,platform_id,package,description,success,event_receiver_id}}","variables":{"e": {"name":"foo","version":"1.0.0"}}}' http://localhost:8042/api/v1/graphql/query @@ -562,7 +562,7 @@ We can query for an event receiver group by name and version using the following } ``` -We can query the event reciever information using a POST on the graphql endpoint as follows: +We can query the event receiver information using a POST on the graphql endpoint as follows: ```bash curl -X POST -H "content-type:application/json" -d '{"query":"query ($erg: FindEventReceiverGroupInput!){event_receiver_groups(event_receiver_group: $erg) {id,name,type,version,description}}","variables":{"erg": {"name":"foobar","version":"1.0.0"}}}' http://localhost:8042/api/v1/graphql/query diff --git a/pkg/api/graphql/resolvers/models_test.go b/pkg/api/graphql/resolvers/models_test.go index 8a7018e..cbf6538 100644 --- a/pkg/api/graphql/resolvers/models_test.go +++ b/pkg/api/graphql/resolvers/models_test.go @@ -114,7 +114,7 @@ func TestEventReceiver(t *testing.T) { }) } -func TestFindEventReciever(t *testing.T) { +func TestFindEventReceiver(t *testing.T) { findEventReceiver := FindEventReceiverInput{ ID: &id, Name: graphql.NullString{Value: &name, Set: true}, @@ -161,7 +161,7 @@ func TestEventReceiverGroup(t *testing.T) { }) } -func TestFindEventRecieverGroup(t *testing.T) { +func TestFindEventReceiverGroup(t *testing.T) { findEventReceiverGroup := FindEventReceiverGroupInput{ ID: &id, Name: graphql.NullString{Value: &name, Set: true}, @@ -176,7 +176,7 @@ func TestFindEventRecieverGroup(t *testing.T) { }) } -func TestFindEventRecieverGroupToMap(t *testing.T) { +func TestFindEventReceiverGroupToMap(t *testing.T) { findEventReceiverGroup := FindEventReceiverGroupInput{ ID: &id, Name: graphql.NullString{Value: &name, Set: true}, diff --git a/pkg/api/graphql/schema/types/event_reciever.graphql b/pkg/api/graphql/schema/types/event_receiver.graphql similarity index 100% rename from pkg/api/graphql/schema/types/event_reciever.graphql rename to pkg/api/graphql/schema/types/event_receiver.graphql diff --git a/pkg/api/graphql/schema/types/event_reciever_group.graphql b/pkg/api/graphql/schema/types/event_receiver_group.graphql similarity index 100% rename from pkg/api/graphql/schema/types/event_reciever_group.graphql rename to pkg/api/graphql/schema/types/event_receiver_group.graphql