Skip to content

Commit db25ed4

Browse files
authoredMar 19, 2025
Merge branch 'master' into Overview
2 parents d545a19 + 7396f7a commit db25ed4

File tree

51 files changed

+1474
-515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1474
-515
lines changed
 

‎.github/workflows/pr-comments.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: PR Comments
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- master
77

88
permissions:
9-
contents: write
10-
checks: write
119
pull-requests: write
1210

1311
jobs:
@@ -67,7 +65,7 @@ jobs:
6765
remove-link-from-badge: true
6866
default-branch: master
6967

70-
ut-files-comment:
68+
python-ut-files-comment:
7169
runs-on: ubuntu-22.04
7270
steps:
7371
- name: Checkout code

‎apps/beeswax/src/beeswax/common.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def compute_check(x):
125125
# Pick the most probable compute object
126126
selected_compute = (cluster if compute_check(cluster)
127127
else compute if compute_check(compute)
128-
else connector if compute_check(connector) else None)
128+
else connector if compute_check(connector) else cluster)
129129

130130
# If found, we will attempt to reload it, first by id then by name
131131
if selected_compute:
@@ -134,8 +134,11 @@ def compute_check(x):
134134
if c:
135135
return c.to_dict()
136136

137-
if selected_compute.get('name'):
138-
c = Compute.objects.filter(name=selected_compute['name']).first()
137+
# Compute name is sometimes passed in the type and dialect fields.
138+
# So, we will attempt to load compute using name, type and dialect as name.
139+
compute_name = selected_compute.get('name', selected_compute.get('type', selected_compute.get('dialect')))
140+
if compute_name:
141+
c = Compute.objects.filter(name=compute_name).first()
139142
if c:
140143
return c.to_dict()
141144

0 commit comments

Comments
 (0)