+
Skip to content

Add other TRS entry types to getToolId so other entry types can be aggregated #6028

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

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

kathy-t
Copy link
Contributor

@kathy-t kathy-t commented Oct 25, 2024

Description
Another follow-up to https://ucsc-cgl.atlassian.net/browse/SEAB-6467 and #6022, this time it's failing on the metrics-aggregator side when aggregating notebooks because it's calling a dockstore-common function that doesn't take into account other TRS entry types here.

This PR is set to the release branch...if it's too late, I can put it to develop. It just means that aggregation of other entry types that are not tools and workflows would fail from the metrics-aggregator side. We're only ingesting metrics for workflows from Terra right now, so maybe that's okay.

Review Instructions
See dockstore/dockstore-support#500

Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6467

Security and Privacy

If there are any concerns that require extra attention from the security team, highlight them here and check the box when complete.

  • Security and Privacy assessed

e.g. Does this change...

  • Any user data we collect, or data location?
  • Access control, authentication or authorization?
  • Encryption features?

Please make sure that you've checked the following before submitting your pull request. Thanks!

  • Check that you pass the basic style checks and unit tests by running mvn clean install
  • Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
  • Follow the existing JPA patterns for queries, using named parameters, to avoid SQL injection
  • If you are changing dependencies, check the Snyk status check or the dashboard to ensure you are not introducing new high/critical vulnerabilities
  • Assume that inputs to the API can be malicious, and sanitize and/or check for Denial of Service type values, e.g., massive sizes
  • Do not serve user-uploaded binary images through the Dockstore API
  • Ensure that endpoints that only allow privileged access enforce that with the @RolesAllowed annotation
  • Do not create cookies, although this may change in the future
  • If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

@kathy-t kathy-t self-assigned this Oct 25, 2024
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.45%. Comparing base (c845950) to head (2a94302).

Additional details and impacted files
@@                     Coverage Diff                     @@
##             release/1.16.0-beta.3    #6028      +/-   ##
===========================================================
+ Coverage                    74.43%   74.45%   +0.01%     
- Complexity                    5493     5495       +2     
===========================================================
  Files                          381      381              
  Lines                        19788    19786       -2     
  Branches                      2044     2043       -1     
===========================================================
+ Hits                         14730    14731       +1     
+ Misses                        4076     4075       -1     
+ Partials                       982      980       -2     
Flag Coverage Δ
bitbuckettests 26.66% <0.00%> (+<0.01%) ⬆️
hoverflytests 27.94% <0.00%> (+<0.01%) ⬆️
integrationtests 56.70% <0.00%> (+<0.01%) ⬆️
languageparsingtests 11.05% <0.00%> (+<0.01%) ⬆️
localstacktests 21.57% <100.00%> (+<0.01%) ⬆️
toolintegrationtests 30.03% <0.00%> (+<0.01%) ⬆️
unit-tests_and_non-confidential-tests 25.79% <100.00%> (+<0.01%) ⬆️
workflowintegrationtests 38.05% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

@@ -19,7 +19,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.dockstore</groupId>
<artifactId>dockstore-common</artifactId>
<version>1.16.0-beta.6</version>
<version>1.16.0-SNAPSHOT</version>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, not sure this should be changed. Maybe it should though, I'm a little unclear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it should be. In the wiki, it says to reset the generated files after pushing the new tag:

reset generated files if the branch you're working on is going to be merged (like in hubflow release finish)
./mvnw clean install -DskipTests

The build also fails if I don't update the generated files

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, to confirm, I think tagged builds will get a "real" version.
All other generated pom files will get a snapshot version.
That said, for this change to show up in a "normal" PR, I think that means a step was skipped somewhere

@@ -19,7 +19,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.dockstore</groupId>
<artifactId>dockstore-common</artifactId>
<version>1.16.0-beta.6</version>
<version>1.16.0-SNAPSHOT</version>
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, to confirm, I think tagged builds will get a "real" version.
All other generated pom files will get a snapshot version.
That said, for this change to show up in a "normal" PR, I think that means a step was skipped somewhere

@kathy-t kathy-t merged commit 818443d into release/1.16.0-beta.3 Oct 28, 2024
18 of 19 checks passed
@kathy-t kathy-t deleted the seab-6467/trs-id-fix branch October 28, 2024 18:02
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.

4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载