Skip to content

[bug-1846013] Allows users to fetch results from all frameworks - #9761

Open
gopar wants to merge 1 commit into
mozilla:masterfrom
gopar:bug-1846013-framework-param-optional
Open

[bug-1846013] Allows users to fetch results from all frameworks#9761
gopar wants to merge 1 commit into
mozilla:masterfrom
gopar:bug-1846013-framework-param-optional

Conversation

@gopar

@gopar gopar commented Aug 8, 2026

Copy link
Copy Markdown

@netlify

netlify Bot commented Aug 8, 2026

Copy link
Copy Markdown

Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit ec19781
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6a7675db2767500008cfe5ef
😎 Deploy Preview https://deploy-preview-9761--treeherder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

# Build common result dictionary (contains only data both test versions use)
is_complete = base_runs_count and new_runs_count
resolved_framework = (
framework or base_sig.get("framework_id") or new_sig.get("framework_id")

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Who should win here when framework is empty? base or new?

Comment on lines +2091 to 2100
query_set = PerformanceSignature.objects.filter(parent_signature_id=None).prefetch_related(
"performancealert"
)
if framework_id is not None:
query_set = query_set.filter(framework_id=framework_id)
query_set = (
PerformanceSignature.objects.prefetch_related("performancealert")
.filter(framework_id=framework_id, parent_signature_id=None)
.values("suite", "test")
query_set.values("suite", "test")
.annotate(repositories=GroupConcat("repository_id", distinct=True))
.annotate(platforms=GroupConcat("platform_id", distinct=True))
.annotate(total_alerts=Count("performancealert"))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

So i don't see any tests related to this endpoint. Is it in use? When I tried writing a test I got some sql errors and it was because GroupConcat is a MySql feature not in postgres. is this dead code that should be removed then?

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.

1 participant