Skip to content

Conversation

@MasterPtato
Copy link
Contributor

Changes

Copy link
Contributor Author

MasterPtato commented Apr 30, 2025


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added optional project and environment fields to StatusQuery for customizable status monitoring, with fallback to system test configuration values.

  • Added project: Option<String> and environment: Option<String> to StatusQuery struct in packages/core/api/status/src/route/actor.rs
  • Modified status function to prioritize query parameters over system test config values
  • Updated error handling to use unwrap! macro for system test project validation
  • Added fallback to "prod" as default environment when neither query nor config specify one

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +53 to 59
let system_test_project = unwrap!(
query
.project
.as_ref()
.or(status_config.system_test_project.as_ref()),
"system test project not configured"
);
Copy link

Choose a reason for hiding this comment

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

logic: unwrap! macro used here will panic if both query.project and status_config.system_test_project are None. Consider using unwrap_with! to provide a more specific error code

Suggested change
let system_test_project = unwrap!(
query
.project
.as_ref()
.or(status_config.system_test_project.as_ref()),
"system test project not configured"
);
let system_test_project = unwrap_with!(
query
.project
.as_ref()
.or(status_config.system_test_project.as_ref()),
INTERNAL_STATUS_CHECK_FAILED,
error = "system test project not configured"
);

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 30, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: cd8c696
Status: ✅  Deploy successful!
Preview URL: https://597fb186.rivet.pages.dev
Branch Preview URL: https://graphite-base-2377.rivet.pages.dev

View logs

@graphite-app
Copy link
Contributor

graphite-app bot commented May 2, 2025

Merge activity

  • May 1, 9:57 PM EDT: MasterPtato added this pull request to the Graphite merge queue.
  • May 1, 9:58 PM EDT: CI is running for this pull request on a draft pull request (#2422) due to your merge queue CI optimization settings.
  • May 1, 9:59 PM EDT: Merged by the Graphite merge queue via draft PR: #2422.

graphite-app bot pushed a commit that referenced this pull request May 2, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this May 2, 2025
@graphite-app graphite-app bot deleted the 04-30-fix_allow_custom_project_for_status_monitor branch May 2, 2025 01:59
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