-
Notifications
You must be signed in to change notification settings - Fork 589
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
Merge release/v0.24.1
to main
#4460
Changes from all commits
9b5ab39
8471d1f
d2ca5f7
cbb7c00
6cd7b0c
b726dcb
88627a4
584f6b6
8883b5a
56fc86b
3914ced
1640696
6e663c3
4d74e08
1dd6b80
94c52ba
2350e74
74cc85d
1d76724
e17741c
1261349
f692120
44c44e5
5654647
5c81022
547a1ff
656a264
2e49b92
58df963
5ba1a2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,24 @@ jobs: | |
e2e: | ||
uses: ./.github/workflows/e2e.yml | ||
|
||
teams: | ||
runs-on: ubuntu-latest | ||
if: github.base_ref == 'develop' | ||
steps: | ||
- uses: convictional/[email protected] | ||
with: | ||
owner: voxel51 | ||
repo: fiftyone-teams | ||
github_token: ${{ secrets.FIFTYONE_GITHUB_TOKEN }} | ||
github_user: voxel51-bot | ||
workflow_file_name: merge-oss.yml | ||
ref: develop | ||
wait_interval: 20 | ||
client_payload: '{ "branch": "${{ github.head_ref || github.ref_name }}" }' | ||
propagate_failure: true | ||
trigger_workflow: true | ||
wait_workflow: true | ||
|
||
test: | ||
uses: ./.github/workflows/test.yml | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Push Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/v[0-9]+.[0-9]+.[0-9]+ | ||
workflow_dispatch: | ||
inputs: | ||
ref_name: | ||
type: string | ||
|
||
jobs: | ||
pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: develop | ||
fetch-depth: 0 | ||
- run: | | ||
git config user.name 'voxel51-bot' | ||
git config user.email '[email protected]' | ||
git checkout merge/${{ inputs.ref_name || github.ref_name }} \ | ||
|| git checkout -b merge/${{ inputs.ref_name || github.ref_name }} | ||
git push -u origin merge/${{ inputs.ref_name || github.ref_name }} | ||
git checkout develop | ||
git pull origin merge/${{ inputs.ref_name || github.ref_name }} --no-rebase | ||
git pull origin ${{ inputs.ref_name || github.ref_name }} --no-rebase | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: voxel51-bot <[email protected]> | ||
token: ${{ secrets.FIFTYONE_GITHUB_TOKEN }} | ||
base: develop | ||
body: Merge `${{ inputs.ref_name || github.ref_name }}` to `develop` | ||
branch: merge/${{ inputs.ref_name || github.ref_name }} | ||
title: Merge `${{ inputs.ref_name || github.ref_name }}` to `develop` |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,15 +1,21 @@ | ||||||||||||||||||||||
import { useEffect } from "react"; | ||||||||||||||||||||||
import { useEffect, useMemo } from "react"; | ||||||||||||||||||||||
import { | ||||||||||||||||||||||
useInvocationRequestExecutor, | ||||||||||||||||||||||
useInvocationRequestQueue, | ||||||||||||||||||||||
} from "./state"; | ||||||||||||||||||||||
import { QueueItemStatus } from "./constants"; | ||||||||||||||||||||||
|
||||||||||||||||||||||
export default function OperatorInvocationRequestExecutor() { | ||||||||||||||||||||||
const { requests, onSuccess, onError } = useInvocationRequestQueue(); | ||||||||||||||||||||||
const pendingRequests = useMemo(() => { | ||||||||||||||||||||||
return requests.filter( | ||||||||||||||||||||||
(queueItem) => queueItem.status === QueueItemStatus.Pending | ||||||||||||||||||||||
); | ||||||||||||||||||||||
}, [requests]); | ||||||||||||||||||||||
|
||||||||||||||||||||||
Comment on lines
+10
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure that the useMemo dependency array correctly reflects all variables used in the memoized value. The dependency array for - }, [requests]);
+ }, [requests, QueueItemStatus.Pending]); Committable suggestion
Suggested change
|
||||||||||||||||||||||
return ( | ||||||||||||||||||||||
<> | ||||||||||||||||||||||
{requests.map((queueItem) => ( | ||||||||||||||||||||||
{pendingRequests.map((queueItem) => ( | ||||||||||||||||||||||
<RequestExecutor | ||||||||||||||||||||||
key={queueItem.id} | ||||||||||||||||||||||
queueItem={queueItem} | ||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure the useEffect hook is correctly set up to call the
clearSpaces
function.The
useEffect
hook should call theclearSpaces
function, not just reference it. This might be causing the function not to execute as intended.Committable suggestion