Skip to content

Commit

Permalink
Merge pull request #1242 from newrelic/nru-course-review
Browse files Browse the repository at this point in the history
Update AB test guides
  • Loading branch information
alexronquillo authored Apr 12, 2021
2 parents 2e2da59 + 4b139f7 commit 6fecdc6
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ To supply information to the catalog about your app, you need to create the _cat

<Step>

Navigate to the root of your Nerdpack at `nru-programmability-course/describe-app/ab-test`.
Change to the _describe-app/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/describe-app/ab-test
```

</Step>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ In the design guide, there is a line graph under each of the tables you created

<Step>

Change to the _add-a-chart-group_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-a-chart-group/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-a-chart-group
cd nru-programmability-course/add-a-chart-group/ab-test
```

</Step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ The design guide details what data each chart shows. Use those details to craft

<Step>

Change to the _add-chart-headings_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-chart-headings/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-chart-headings
cd nru-programmability-course/add-chart-headings/ab-test
```

</Step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Unfortunately, there are a few issues with the code and design for this section.

<Step>

Change to the _present-confirmation-modal_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _present-confirmation-modal/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/present-confirmation-modal
cd nru-programmability-course/present-confirmation-modal/ab-test
```

This directory contains the code your application should have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ _nr1.json_ is the Nerdpack's metadata file, containing a schema type, unique ide

```json fileName=nr1.json
{
"schemaType": "Nerdpack",
"schemaType": "NERDPACK",
"id": "311bcd0c-f7eb-4285-afed-4219179bf91d",
"displayName": "A/B Test",
"description": "A/B test your application using New Relic One."
Expand All @@ -69,7 +69,7 @@ Use "A/B Test Launcher" for the launcher's `displayName` and "Open the A/B test
"id": "ab-test-launcher",
"displayName": "A/B Test Launcher",
"description": "Open the A/B test Nerdlet",
"rootNerdletId": "ab-test-Nerdlet"
"rootNerdletId": "ab-test-nerdlet"
}
```

Expand All @@ -87,8 +87,8 @@ Update your Nerdlet's `displayName` to "A/B Test" and `description` to "Control

```json fileName=nerdlets/ab-test-nerdlet/nr1.json
{
"schemaType": "Nerdlet",
"id": "ab-test-Nerdlet",
"schemaType": "NERDLET",
"id": "ab-test-nerdlet",
"displayName": "A/B Test",
"description": "Control and view results of your A/B test"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ This new section has three main components:

<Step>

Change to the _add-end-test-section_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-end-test-section/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-end-test-section
cd nru-programmability-course/add-end-test-section/ab-test
```
</Step>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ There are several charts you need to create, which may seem overwhelming at firs

<Step>

Change to the _add-your-first-chart_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-your-first-chart/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-your-first-chart
cd nru-programmability-course/add-your-first-chart/ab-test
```

This directory contains the code your application should have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Once you’ve planned out how you’re going to arrange your columns, you can wr

<Step>

Change to the _add-a-grid_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-a-grid/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-a-grid
cd nru-programmability-course/add-a-grid/ab-test
```

</Step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ The `navigation` component lets you open entities, navigate to entities, and bui

<Step>

Change to the _add-navigation_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-navigation/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-navigation
cd nru-programmability-course/add-navigation/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Both of these charts hold data that you can't get from New Relic. **Past tests**

<Step>

Change to the _add-nerdstorage_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-nerdstorage/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-nerdstorage
cd nru-programmability-course/add-nerdstorage/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ To input your authorization token, you'll use a `Modal` with a `TextField`. The

<Step>

Change to the _add-nerdstoragevault_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-nerdstoragevault/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-nerdstoragevault
cd nru-programmability-course/add-nerdstoragevault/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ Until now, you've provided every chart with a single query. Here, you have to pr

<Step>

Change to the _customize-nrql-data_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _customize-nrql-data/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/customize-nrql-data
cd nru-programmability-course/customize-nrql-data/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ Next, you learn how to pass your NRQL query to your **Newsletter subscriptions p

<Step>

Change to the _add-nrql-components_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-nrql-components/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-nrql-components
cd nru-programmability-course/add-nrql-components/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ When you select a version from this form, the selection does not persist in the

<Step>

Change to the _persist-selected-version_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _persist-selected-version/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/persist-selected-version
cd nru-programmability-course/persist-selected-version/ab-test
```

</Step>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ In the design, there are two pie charts beneath the line chart that you’ve alr

<Step>

Change to the _add-pie-charts_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-pie-charts/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-pie-charts
cd nru-programmability-course/add-pie-charts/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ Each lesson in the course builds upon the last, so make sure you've completed th

In this course, you're building a New Relic One application. This application shows telemetry data from a demo service that is running an A/B test so that it can reveal that data in charts, like a dashboard. Your New Relic application is different than a dashboard, however, because it does more than show New Relic data. It pulls external data, provides UI components and functionality, and even has its own small data stores. The purpose of this New Relic application is to present context so you can better understand the A/B test results and how those results tie in to your business objectives.

So far, you've built all your charts, organized them for improved usability, provided them with real data, and more. There are some final improvements you can make, using Platform API components. In this lesson, you learn how to take use values in the New Relic platform state.
So far, you've built all your charts, organized them for improved usability, provided them with real data, and more. There are some final improvements you can make, using Platform API components. In this lesson, you learn how to use values in the New Relic platform state.

<Steps>

<Step>

Change to the _add-platform-state-context_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-platform-state-context/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-platform-state-context
cd nru-programmability-course/add-platform-state-context/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down Expand Up @@ -191,7 +191,7 @@ While `NrqlQuery` components accept a convenient `timeRange` prop, not every com

<Step>

Navigate to the root of your Nerdpack at _nru-programmability-course/persist-selected-version/ab-test_.
Navigate to the root of your Nerdpack at _nru-programmability-course/add-platform-state-context/ab-test_.

</Step>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ There are some rules governing how you can use tags and you can read about those

<Step>

Change to the _publish_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _publish/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/publish
cd nru-programmability-course/publish/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ When you build a New Relic One application, it's valuable to view it on the plat

<Step>

From inside the Nerdpack's root directory, run `nerdpack:serve`:
From inside the Nerdpack's root directory, serve your Nerdpack:

```bash
nr1 nerdpack:serve
Expand Down Expand Up @@ -70,7 +70,7 @@ Select your launcher to see your root Nerdlet and its default welcome message:
Congratulations, you've served your first New Relic One application!
Notice, in the `nerdpack:serve` output, that the server reloads when you change files in your Nerdpack. Give it a try by updating _nerdlets/ab-test-nerdlet/index.js_:
Notice, in the command's output, that the server reloads when you change files in your Nerdpack. Give it a try by updating _nerdlets/ab-test-nerdlet/index.js_:
```js fileName=nerdlets/ab-test-nerdlet/index.js lineHighlight=5
import React from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ In this design guide, the `TableChart` components come after the pie charts you

<Step>

Change to the _add-tables_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _add-tables/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-tables
cd nru-programmability-course/add-tables/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curl https://api.nerdsletter.net/cancellations
This is because the Nerdsletter API requires an `Authorization` header. More specifically, you must pass a bearer token of `ABC123` to gain authorized access to its data. If you make a request to the service with the header `Authorization: Bearer ABC123`, you'll get a successful response with the mocked cancellation data:

```sh
curl https://api.nerdsletter.net/cancellations -h 'Authorization: Bearer ABC123'
curl https://api.nerdsletter.net/cancellations -H 'Authorization: Bearer ABC123'
[output] {"a": 15, "b": 78}
```

Expand All @@ -36,10 +36,10 @@ In the last lesson, you used `NerdGraph` to store this API token in your New Rel

<Step>

Change to the _third-party-services_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):
Change to the _third-party-services/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/third-party-services
cd nru-programmability-course/third-party-services/ab-test
```

This directory contains the code that we expect your application to have at this point in the course. By navigating to the correct directory at the start of each lesson, you leave your custom code behind, thereby protecting yourself from carrying incorrect code from one lesson to the next.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ With your charts organized and descriptive headings above each one, your New Rel

<Step>

Change to the _add-version-descriptions/ab-test_ directory of the [coursework repository](https://github.com/newrelic-experimental/nru-programmability-course):

```sh
cd nru-programmability-course/add-version-descriptions/ab-test
```

</Step>

<Step>

In _nerdlets/ab-test-nerdlet_, add a new Javascript file named _description.js_:

```sh
Expand Down

0 comments on commit 6fecdc6

Please sign in to comment.