Skip to content

Commit

Permalink
Merge branch 'release-v0.17.0' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
brizental committed Jul 16, 2021
2 parents 1cfdb5a + fede13f commit 14af0bf
Show file tree
Hide file tree
Showing 28 changed files with 1,514 additions and 741 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
source venv/bin/activate
pip install -r requirements.txt
glean_parser translate metrics.yaml pings.yaml -f javascript -o generated \
--option platform=qt --option version="0.16"
--option platform=qt --option version="0.17"
sudo apt-get install xvfb
xvfb-run python main.py &> qml.log &
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Unreleased changes

[Full changelog](https://github.com/mozilla/glean.js/compare/v0.16.0...main)
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.17.0...main)

# v0.17.0 (2021-07-16)

[Full changelog](https://github.com/mozilla/glean.js/compare/v0.16.0...v0.17.0)

* [#529](https://github.com/mozilla/glean.js/pull/529): Implement the URL metric type.

# v0.16.0 (2021-07-06)

Expand Down
2 changes: 2 additions & 0 deletions benchmarks/size/webext/max.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import QuantityMetricType from "@mozilla/glean/webext/private/metrics/quantity";
import StringMetricType from "@mozilla/glean/webext/private/metrics/string";
import TimespanMetricType from "@mozilla/glean/webext/private/metrics/timespan";
import UUIDMetricType from "@mozilla/glean/webext/private/metrics/uuid";
import URLMetricType from "@mozilla/glean/webext/private/metrics/url";
// Plugins
import PingEncryptionPlugin from "@mozilla/glean/webext/plugins/encryption";

Expand All @@ -29,5 +30,6 @@ console.log(
JSON.stringify(StringMetricType),
JSON.stringify(TimespanMetricType),
JSON.stringify(UUIDMetricType),
JSON.stringify(URLMetricType),
JSON.stringify(PingEncryptionPlugin),
);
3 changes: 3 additions & 0 deletions docs/adding_a_new_metric_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ async function testGetValue(ping: string = this.sendInPings[0]): Promise<string

> **Note**: All testing functions must start with the prefix `test`.
The `testGetNumRecordedErrors` function does not need to be implemeted individually per metric
type as it is already implemented on the `MetricType` super class.

## Testing

Tests for metric type implementations live under the `glean/tests/unit/core/metrics/types` folder. Create a new
Expand Down
Loading

0 comments on commit 14af0bf

Please sign in to comment.