The processing step normalizes and validates annotation data. That data is
then indexed in Elasticsearch and that's why there's example data for
processed fields that are indexed, but not for the source annotation or
fields that aren't indexed. I don't plan to add "last 7 days" type examples
for the source annotation values, but I have been adding examples to the
documentation for annotations. For example, Steven added example data when
he added this annotation:

https://crash-stats.mozilla.org/documentation/datadictionary/dataset/annotation/field/MacMemoryPressureSysctl

There's no API for accessing data dictionary data at the moment, but it's
probably not hard to build. If you could write up a bug with how you need
it to work to support Searchfox, I can make it happen.

/will

On Thu, Dec 1, 2022 at 8:28 PM Andrew Sutherland <
asutherl...@asutherland.org> wrote:

> This is super amazing!  It's invaluable to know the space of annotation
> data that is available, and in particular, I love the example data from
> the last 7 days.  Thank you!
>
> Is the example data something that could potentially be fetched in an
> aggregate JSON so that searchfox could provide the example data in
> "inlay hint" style (ex: what VS Code does for inferred types for rust
> analyzer and clangd) in source listings where the
> `CrashReporter::Annotation::*` symbols are found in the source? (This
> would be an optional display thing, and for this specific case maybe it
> would be more likely to end up in a forthcoming sidebar.)
>
> For example, I see there's a call to CrashReport::AnnotateCrashReport at
>
> https://searchfox.org/mozilla-central/rev/2fc2ccf960c2f7c419262ac7215715c5235948db/ipc/glue/ProtocolUtils.cpp#76-88
> with the `CrashReporter::Annotation::IPCSystemError` symbol used, and we
> could hang the example data off that symbol if there's a JSON dictionary
> that has the `IPCSystemError` name from
>
> https://crash-stats.mozilla.org/documentation/datadictionary/dataset/annotation/field/IPCSystemError
> that we can mangle using a mozilla-central specific config file. Right
> now I do see the example data is in
>
> https://crash-stats.mozilla.org/documentation/datadictionary/dataset/processed/field/ipc_system_error
> which links to the former, but ideally the information would be directly
> coupled or available elsewhere in the JSON object so that searchfox
> could do a straighforward lookup in either direction.
>
> Searchfox could also add one or more context-menu options like "Go to
> crash stats docs for IPCSystemError" or "Search crash stats for
> IPCSystemError" or things like that on the symbol, although that's
> separable from having JSON dictionary as long as there's a predictable
> URL scheme searchfox can use from the symbol name[1].
>
> Andrew
>
> 1: Disclaimer: The context-menu functionality is still in progress, but
> I'm confident about being able to get to that functionality over my
> holiday break as it's essential to complete the first round of automatic
> diagramming so it can be exposed to users.
>
>
> --
> You received this message because you are subscribed to the Google Groups "
> dev-platform@mozilla.org" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dev-platform+unsubscr...@mozilla.org.
> To view this discussion on the web visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/0956e3ff-286e-f8b7-9f8e-1ca57f54838c%40asutherland.org
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"dev-platform@mozilla.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dev-platform+unsubscr...@mozilla.org.
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAKnh9qgeGfH4v6QNHK8Wqa7w%2B6Kg3rkk4MKWT%2BTuVQ_zXM%2BpGA%40mail.gmail.com.

Reply via email to