glean-parser 14.3.0__tar.gz → 14.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {glean_parser-14.3.0 → glean_parser-14.4.0}/CHANGELOG.md +5 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/PKG-INFO +6 -1
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/history.md +5 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/schemas/metrics.2-0-0.schema.yaml +6 -1
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/javascript_server.jinja2 +1 -1
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/ruby_server.jinja2 +1 -1
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/PKG-INFO +6 -1
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/all_metrics.yaml +3 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/event_key_ordering.yaml +3 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/server_events_compare.rb +4 -2
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/server_metrics_with_event.yaml +5 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test-py/test.py +1 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_javascript.py +2 -2
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_javascript_server.py +1 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_kotlin.py +3 -2
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_markdown.py +2 -1
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_ruby_server.py +1 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_swift.py +2 -2
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.circleci/config.yml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.editorconfig +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.github/CODEOWNERS +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.github/ISSUE_TEMPLATE.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.github/dependabot.yml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.github/pull_request_template.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.gitignore +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/.swiftlint.yml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/AUTHORS.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/CODE_OF_CONDUCT.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/CONTRIBUTING.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/LICENSE +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/MANIFEST.in +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/Makefile +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/README.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/Makefile +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/_static/glean.jpeg +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/authors.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/conf.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/contributing.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/index.rst +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/installation.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/make.bat +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/metrics-yaml.rst +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/pings-yaml.rst +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/readme.md +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/docs/tags-yaml.rst +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/__init__.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/__main__.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/coverage.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/data_review.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/go_server.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/javascript.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/javascript_server.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/kotlin.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/lint.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/markdown.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/metrics.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/parser.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/pings.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/python_server.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/ruby_server.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/rust.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/schemas/metrics.1-0-0.schema.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/schemas/pings.1-0-0.schema.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/schemas/pings.2-0-0.schema.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/schemas/tags.1-0-0.schema.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/swift.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/tags.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/data_review.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/go_server.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/javascript.buildinfo.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/javascript.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/kotlin.buildinfo.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/kotlin.geckoview.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/kotlin.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/markdown.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/python_server.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/qmldir.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/rust.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/swift.jinja2 +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/translate.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/translation_options.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/util.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/validate_ping.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/SOURCES.txt +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/dependency_links.txt +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/entry_points.txt +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/not-zip-safe +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/requires.txt +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser.egg-info/top_level.txt +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/pytest.ini +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/requirements_dev.txt +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/server_telemetry/sdk-metrics-compat.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/server_telemetry/server-side-pings.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/setup.cfg +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/setup.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/conftest.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/all_pings.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/bad_ping.yamlx +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/core.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/duplicate_labeled.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/duplicate_send_in_ping.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/empty.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/events_with_types.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/fxa-server-metrics.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/fxa-server-pings.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/gecko.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/go_server_metrics.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/go_server_metrics_unsupported.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/invalid-ping-names.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/invalid.yamlx +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/jwe.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/metric-with-tags.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/mixed-expirations.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/object.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/old_event_api.yamlx +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/ordering.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/pings.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/rate.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/ruby_server_metrics_unsupported.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/ruby_server_pings_unsupported.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/schema-violation.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/send_if_empty_with_metrics.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/server_events_compare.go +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/server_metrics_no_events_no_pings.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/server_pings.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/single_labeled.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/smaller.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/tags.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/telemetry_mirror.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/text.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/text_invalid.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/unknown_ping_used.yaml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/wrong_key.yamlx +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/yaml_nits.yamlx +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/detekt.yml +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test-go/test.go.tmpl +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test-js/package.json +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test-js/test.js.tmpl +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test-rb/test.rb.tmpl +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_cli.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_go_server.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_lint.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_metrics.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_parser.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_pings.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_python_server.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_rust.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_tags.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_translate.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_utils.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/test_validate_ping.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tests/util.py +0 -0
- {glean_parser-14.3.0 → glean_parser-14.4.0}/tools/extract_data_categories.py +0 -0
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 14.4.0
|
|
6
|
+
|
|
7
|
+
- Fix JS and Ruby server templates to correctly send event extra values as strings ([DENG-4405](https://mozilla-hub.atlassian.net/browse/DENG-4405))
|
|
8
|
+
- ENHANCEMENT: Extra keys in `extra_keys:` fields may now contain any printable ASCII characters ([bug 1910976](https://bugzilla.mozilla.org/show_bug.cgi?id=1910976))
|
|
9
|
+
|
|
5
10
|
## 14.3.0
|
|
6
11
|
|
|
7
12
|
- Add the `module_spec` option to the javascript_server outputter ([#726](https://github.com/mozilla/glean_parser/pull/726))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: glean_parser
|
|
3
|
-
Version: 14.
|
|
3
|
+
Version: 14.4.0
|
|
4
4
|
Summary: Parser tools for Mozilla's Glean telemetry
|
|
5
5
|
Home-page: https://github.com/mozilla/glean_parser
|
|
6
6
|
Author: The Glean Team
|
|
@@ -79,6 +79,11 @@ $ glean_parser check < ping.json
|
|
|
79
79
|
|
|
80
80
|
## Unreleased
|
|
81
81
|
|
|
82
|
+
## 14.4.0
|
|
83
|
+
|
|
84
|
+
- Fix JS and Ruby server templates to correctly send event extra values as strings ([DENG-4405](https://mozilla-hub.atlassian.net/browse/DENG-4405))
|
|
85
|
+
- ENHANCEMENT: Extra keys in `extra_keys:` fields may now contain any printable ASCII characters ([bug 1910976](https://bugzilla.mozilla.org/show_bug.cgi?id=1910976))
|
|
86
|
+
|
|
82
87
|
## 14.3.0
|
|
83
88
|
|
|
84
89
|
- Add the `module_spec` option to the javascript_server outputter ([#726](https://github.com/mozilla/glean_parser/pull/726))
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 14.4.0
|
|
6
|
+
|
|
7
|
+
- Fix JS and Ruby server templates to correctly send event extra values as strings ([DENG-4405](https://mozilla-hub.atlassian.net/browse/DENG-4405))
|
|
8
|
+
- ENHANCEMENT: Extra keys in `extra_keys:` fields may now contain any printable ASCII characters ([bug 1910976](https://bugzilla.mozilla.org/show_bug.cgi?id=1910976))
|
|
9
|
+
|
|
5
10
|
## 14.3.0
|
|
6
11
|
|
|
7
12
|
- Add the `module_spec` option to the javascript_server outputter ([#726](https://github.com/mozilla/glean_parser/pull/726))
|
|
@@ -28,6 +28,11 @@ definitions:
|
|
|
28
28
|
pattern: "^[a-z_][a-z0-9_]{0,29}(\\.[a-z_][a-z0-9_]{0,29})*$"
|
|
29
29
|
maxLength: 40
|
|
30
30
|
|
|
31
|
+
event_extra_key:
|
|
32
|
+
type: string
|
|
33
|
+
pattern: "^[ -~]+$"
|
|
34
|
+
maxLength: 40
|
|
35
|
+
|
|
31
36
|
# Prior to version 2.0.0 of the schema, special ping names with underscores
|
|
32
37
|
# were also supported.
|
|
33
38
|
kebab_case:
|
|
@@ -385,7 +390,7 @@ definitions:
|
|
|
385
390
|
Valid when `type`_ is `event`.
|
|
386
391
|
type: object
|
|
387
392
|
propertyNames:
|
|
388
|
-
$ref: "#/definitions/
|
|
393
|
+
$ref: "#/definitions/event_extra_key"
|
|
389
394
|
additionalProperties:
|
|
390
395
|
type: object
|
|
391
396
|
properties:
|
|
@@ -234,7 +234,7 @@ class {{ ping|event_class_name(metrics_by_type) }} {
|
|
|
234
234
|
{% if event.extra_keys %}
|
|
235
235
|
extra: {
|
|
236
236
|
{% for extra, metadata in event.extra_keys.items() %}
|
|
237
|
-
{{ extra }}: {{ extra }},
|
|
237
|
+
{{ extra }}: String({{ extra }}),
|
|
238
238
|
{% endfor %}
|
|
239
239
|
},
|
|
240
240
|
{% endif %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: glean_parser
|
|
3
|
-
Version: 14.
|
|
3
|
+
Version: 14.4.0
|
|
4
4
|
Summary: Parser tools for Mozilla's Glean telemetry
|
|
5
5
|
Home-page: https://github.com/mozilla/glean_parser
|
|
6
6
|
Author: The Glean Team
|
|
@@ -79,6 +79,11 @@ $ glean_parser check < ping.json
|
|
|
79
79
|
|
|
80
80
|
## Unreleased
|
|
81
81
|
|
|
82
|
+
## 14.4.0
|
|
83
|
+
|
|
84
|
+
- Fix JS and Ruby server templates to correctly send event extra values as strings ([DENG-4405](https://mozilla-hub.atlassian.net/browse/DENG-4405))
|
|
85
|
+
- ENHANCEMENT: Extra keys in `extra_keys:` fields may now contain any printable ASCII characters ([bug 1910976](https://bugzilla.mozilla.org/show_bug.cgi?id=1910976))
|
|
86
|
+
|
|
82
87
|
## 14.3.0
|
|
83
88
|
|
|
84
89
|
- Add the `module_spec` option to the javascript_server outputter ([#726](https://github.com/mozilla/glean_parser/pull/726))
|
|
@@ -103,6 +103,7 @@ module Glean
|
|
|
103
103
|
# extras to pass into event detail
|
|
104
104
|
object_type:,
|
|
105
105
|
object_state:,
|
|
106
|
+
linking:,
|
|
106
107
|
# The user's FxA account ID, if available.
|
|
107
108
|
identifiers_fxa_account_id:,
|
|
108
109
|
# full user_agent value from controller context
|
|
@@ -116,8 +117,9 @@ module Glean
|
|
|
116
117
|
'name' => 'object_update',
|
|
117
118
|
'timestamp' => (Time.now.utc.to_f * 1000).to_i,
|
|
118
119
|
'extra' => [
|
|
119
|
-
['object_type', object_type],
|
|
120
|
-
['object_state', object_state],
|
|
120
|
+
['object_type', object_type.to_s],
|
|
121
|
+
['object_state', object_state.to_s],
|
|
122
|
+
['linking', linking.to_s],
|
|
121
123
|
].to_h,
|
|
122
124
|
}},
|
|
123
125
|
]
|
|
@@ -283,7 +283,7 @@ def test_event_extra_keys_in_correct_order(tmp_path):
|
|
|
283
283
|
with (tmp_path / "event.js").open("r", encoding="utf-8") as fd:
|
|
284
284
|
content = fd.read()
|
|
285
285
|
content = " ".join(content.split())
|
|
286
|
-
assert '["alice", "bob", "charlie"]' in content
|
|
286
|
+
assert '["And1WithExtraCasing", "alice", "bob", "charlie"]' in content
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
def test_arguments_are_generated_in_deterministic_order(tmp_path):
|
|
@@ -304,7 +304,7 @@ def test_arguments_are_generated_in_deterministic_order(tmp_path):
|
|
|
304
304
|
with (tmp_path / "event.js").open("r", encoding="utf-8") as fd:
|
|
305
305
|
content = fd.read()
|
|
306
306
|
content = " ".join(content.split())
|
|
307
|
-
expected = 'export const example = new EventMetricType({ category: "event", name: "example", sendInPings: ["events"], lifetime: "ping", disabled: false, }, ["alice", "bob", "charlie"]);' # noqa
|
|
307
|
+
expected = 'export const example = new EventMetricType({ category: "event", name: "example", sendInPings: ["events"], lifetime: "ping", disabled: false, }, ["And1WithExtraCasing", "alice", "bob", "charlie"]);' # noqa
|
|
308
308
|
assert expected in content
|
|
309
309
|
|
|
310
310
|
|
|
@@ -365,11 +365,12 @@ def test_event_extra_keys_in_correct_order(tmp_path):
|
|
|
365
365
|
content = fd.read()
|
|
366
366
|
content = " ".join(content.split())
|
|
367
367
|
assert "ExampleExtra(" in content
|
|
368
|
+
assert "and1withextracasing:" in content
|
|
368
369
|
assert "alice:" in content
|
|
369
370
|
assert "bob:" in content
|
|
370
371
|
assert "charlie:" in content
|
|
371
372
|
assert ": EventExtras" in content
|
|
372
|
-
assert 'allowedExtraKeys = listOf("alice", "bob", "charlie")' in content
|
|
373
|
+
assert 'allowedExtraKeys = listOf("And1WithExtraCasing", "alice", "bob", "charlie")' in content
|
|
373
374
|
|
|
374
375
|
|
|
375
376
|
def test_arguments_are_generated_in_deterministic_order(tmp_path):
|
|
@@ -392,7 +393,7 @@ def test_arguments_are_generated_in_deterministic_order(tmp_path):
|
|
|
392
393
|
with (tmp_path / "Event.kt").open("r", encoding="utf-8") as fd:
|
|
393
394
|
content = fd.read()
|
|
394
395
|
content = " ".join(content.split())
|
|
395
|
-
expected = 'EventMetricType<ExampleExtra> by lazy { // generated from event.example EventMetricType<ExampleExtra>( CommonMetricData( category = "event", name = "example", sendInPings = listOf("events"), lifetime = Lifetime.PING, disabled = false ), allowedExtraKeys = listOf("alice", "bob", "charlie")) } }' # noqa
|
|
396
|
+
expected = 'EventMetricType<ExampleExtra> by lazy { // generated from event.example EventMetricType<ExampleExtra>( CommonMetricData( category = "event", name = "example", sendInPings = listOf("events"), lifetime = Lifetime.PING, disabled = false ), allowedExtraKeys = listOf("And1WithExtraCasing", "alice", "bob", "charlie")) } }' # noqa
|
|
396
397
|
assert expected in content
|
|
397
398
|
|
|
398
399
|
|
|
@@ -194,7 +194,8 @@ def test_event_extra_keys_in_correct_order(tmp_path):
|
|
|
194
194
|
print(content)
|
|
195
195
|
content = " ".join(content.split())
|
|
196
196
|
assert (
|
|
197
|
-
r"<ul><li>
|
|
197
|
+
r"<ul><li>And1WithExtraCasing: four</li>"
|
|
198
|
+
r"<li>alice: two</li>"
|
|
198
199
|
r"<li>bob: three</li>"
|
|
199
200
|
r"<li>charlie: one</li></ul>" in content
|
|
200
201
|
)
|
|
@@ -288,9 +288,9 @@ def test_event_extra_keys_in_correct_order(tmp_path):
|
|
|
288
288
|
content = " ".join(content.split())
|
|
289
289
|
assert (
|
|
290
290
|
"struct ExampleExtra: EventExtras "
|
|
291
|
-
"{ var alice: String? var bob: String? var charlie: String?" in content
|
|
291
|
+
"{ var and1withextracasing: Bool? var alice: String? var bob: String? var charlie: String?" in content
|
|
292
292
|
)
|
|
293
|
-
assert ', ["alice", "bob", "charlie"]' in content
|
|
293
|
+
assert ', ["And1WithExtraCasing", "alice", "bob", "charlie"]' in content
|
|
294
294
|
|
|
295
295
|
|
|
296
296
|
def test_event_extra_keys_with_types(tmp_path):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{glean_parser-14.3.0 → glean_parser-14.4.0}/glean_parser/templates/javascript.buildinfo.jinja2
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{glean_parser-14.3.0 → glean_parser-14.4.0}/tests/data/server_metrics_no_events_no_pings.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|