Skip to content

[eas-cli] add environment filter to observe commands - #4275

Open
kadikraman wants to merge 9 commits into
mainfrom
kadikraman/add-environment-filter
Open

[eas-cli] add environment filter to observe commands#4275
kadikraman wants to merge 9 commits into
mainfrom
kadikraman/add-environment-filter

Conversation

@kadikraman

@kadikraman kadikraman commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Why

Part of ENG-26159

We want to match the filters on the dashboard to we could correctly pre-fill them in the prompts.

How

Add the --environment filter to metrics-summary, routes, events, versions and session

Test Plan

Tested locally against staging (I used --environment playground in my personal app just fyi, but I'll past the examples with the more popular --environment production):

Metrics summary

eas observe:metrics-summary --environment production
eas observe:metrics-summary --metric tti --stat median --days 7 --environment production

Metrics

eas observe:metrics tti --environment production
eas observe:metrics cold_launch --environment development --sort slowest --limit 20
eas observe:metrics tti --environment production --app-version 2.1.0 --platform ios

Routes

eas observe:routes --environment production
eas observe:routes --metric cold_ttr --route-name /home --environment preview

Events

eas observe:events --environment production            # summary of event names + counts
eas observe:events login_pressed --environment production
eas observe:events --all-events --environment development --days 3

Versions

eas observe:versions --environment production
eas observe:versions --platform android --days 30 --environment production

Session

eas observe:session --event-name tti --sort slowest --environment production

@kadikraman
kadikraman requested a review from douglowder August 25, 2026 11:20
@linear-code

linear-code Bot commented Aug 25, 2026

Copy link
Copy Markdown

ENG-26160

ENG-26159

@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

@github-actions

Copy link
Copy Markdown

✅ Thank you for adding the changelog entry!

@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 64.05%. Comparing base (66dbcaf) to head (b580e89).

Files with missing lines Patch % Lines
packages/eas-cli/src/observe/fetchVersions.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4275      +/-   ##
==========================================
+ Coverage   64.05%   64.05%   +0.01%     
==========================================
  Files        1042     1042              
  Lines       48009    48015       +6     
  Branches    10130    10135       +5     
==========================================
+ Hits        30745    30751       +6     
  Misses      17148    17148              
  Partials      116      116              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@douglowder douglowder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline

Comment thread packages/eas-cli/src/observe/flags.ts
@kadikraman
kadikraman requested a review from douglowder August 27, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants