Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RW-12554 Send metrics when we run into Cannot delete a resource with children #2882

Merged
merged 7 commits into from
May 21, 2024

Conversation

Qi77Qi
Copy link
Contributor

@Qi77Qi Qi77Qi commented May 20, 2024

https://precisionmedicineinitiative.atlassian.net/browse/RW-12554


PR checklist

  • Include the JIRA issue number in the PR description and title
  • Make sure Swagger is updated if API changes
    • ...and Orchestration's Swagger too!
  • If you changed anything in model/, then you should publish a new official rawls-model and update rawls-model in Orchestration's dependencies.
  • Get two thumbsworth of PR review
  • Verify all tests go green, including CI tests
  • Squash commits and merge to develop (branches are automatically deleted after merging)
  • Inform other teams of any substantial changes via Slack and/or email

@Qi77Qi Qi77Qi force-pushed the qiretry400 branch 2 times, most recently from b90629e to a068af2 Compare May 20, 2024 19:30
IO(fastPassFailureCounter.add(1, Attributes.of(AttributeKey.stringKey("function"), functionName)))
}
def incrementFastPassFailureCounter(functionName: String): IO[Unit] =
IO(fastPassFailureCounter.add(1, Attributes.of(AttributeKey.stringKey("function"), functionName)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these are from scalafmtAll

AttributeKey.stringKey("member_type"), memberType.toString,
AttributeKey.stringKey("action"), action
)))
def incrementCounter(name: String,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the only method I added

@Qi77Qi Qi77Qi requested review from dvoet and aherbst-broad May 20, 2024 19:32
Copy link
Contributor

@aherbst-broad aherbst-broad left a comment

Choose a reason for hiding this comment

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

Great idea

@@ -209,6 +209,7 @@ case class Workspace(
def toWorkspaceName: WorkspaceName = WorkspaceName(namespace, name)
def briefName: String = toWorkspaceName.toString
def path: String = toWorkspaceName.path
def isAoU: Boolean = googleProjectId.value.startsWith("terra-vpc-sc-")
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if there's a more generic counter we can expose here rather than a boolean isAou. That is, we may have other consumers we want to slice on in the future that use service perimeter's etc. Perhaps a project type "base" or "vpc"?

@Qi77Qi
Copy link
Contributor Author

Qi77Qi commented May 21, 2024


--
Unable to download artifact(s): Artifact not found for name: test-reports Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.mdShow more
 

<br class="Apple-interchange-newline">

@Qi77Qi Qi77Qi merged commit b7fd0fe into develop May 21, 2024
26 checks passed
@Qi77Qi Qi77Qi deleted the qiretry400 branch May 21, 2024 17:58
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