-
Notifications
You must be signed in to change notification settings - Fork 871
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
When observer run, use observer task to get callback url and proxy lo… #1719
When observer run, use observer task to get callback url and proxy lo… #1719
Conversation
…src/' …cation <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > `WorkflowPostRunParameters` components now use `observer_task` properties for `webhook_callback_url` and `proxy_location` if available, with updates to `ObserverTask` type. > > - **Behavior**: > - `WorkflowPostRunParameters` in `WorkflowPostRunParameters.tsx` and `workflowRun/WorkflowPostRunParameters.tsx` now use `observer_task` properties for `webhook_callback_url` and `proxy_location` if `observer_task` is not null. > - **Types**: > - Add `webhook_callback_url` and `proxy_location` to `ObserverTask` in `types.ts`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for fcb7901d56d8afdf7a803b7af8bca4cb31d56e65. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
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.
👍 Looks good to me! Reviewed everything up to e7895ce in 33 seconds
More details
- Looked at
52
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
6
drafted comments based on config settings.
1. skyvern-frontend/src/api/types.ts:285
- Draft comment:
New fields (webhook_callback_url, totp_verification_url, totp_identifier, proxy_location) were added to ObserverTask. Ensure the backend returns these fields consistently with the schema. - Reason this comment was not posted:
Confidence changes required:0%
None
2. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:47
- Draft comment:
Using observer_task values for webhook_callback_url and proxy_location is clear. Confirm that observer task values should override workflowRun's own values. - Reason this comment was not posted:
Confidence changes required:0%
None
3. skyvern-frontend/src/api/types.ts:285
- Draft comment:
New fields added to ObserverTask. Consider adding inline comments or docs to clarify usage and ensure consistency with backend specs. - Reason this comment was not posted:
Confidence changes required:33%
None
4. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:47
- Draft comment:
Consider using a truthy check (e.g., if (workflowRun.observer_task)) instead of comparing explicitly to null for better readability. - Reason this comment was not posted:
Confidence changes required:33%
None
5. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:49
- Draft comment:
The fallback logic (using workflowRun.observer_task?.webhook_callback_url vs. workflowRun.webhook_callback_url) is appropriate; ensure that null values are handled as expected. - Reason this comment was not posted:
Confidence changes required:0%
None
6. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:143
- Draft comment:
ProxySelector's onChange handler is still a TODO; ensure to implement or provide a noop to prevent potential issues. - Reason this comment was not posted:
Confidence changes required:33%
None
Workflow ID: wflow_kvh7INs9TAGh5dIe
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
👍 Looks good to me! Incremental review on e7895ce in 36 seconds
More details
- Looked at
52
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
6
drafted comments based on config settings.
1. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:47
- Draft comment:
Consider extracting observer task fallback logic into a helper function to reduce duplication. This ensures consistent handling if more observer properties are needed in future. - Reason this comment was not posted:
Confidence changes required:50%
None
2. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:137
- Draft comment:
Using computed webhookCallbackUrl and proxyLocation improves clarity. Ensure that if observer_task fields become optional or undefined, appropriate fallbacks are provided. - Reason this comment was not posted:
Confidence changes required:30%
None
3. skyvern-frontend/src/api/types.ts:285
- Draft comment:
New properties added to ObserverTask. Consider adding inline comments to clarify when each field (webhook_callback_url, totp_verification_url, totp_identifier, proxy_location) should be used. - Reason this comment was not posted:
Confidence changes required:33%
None
4. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:47
- Draft comment:
Logic for selecting observer task fields is duplicated. Consider destructuring observer_task to simplify assignment of webhookCallbackUrl and proxyLocation. - Reason this comment was not posted:
Confidence changes required:33%
None
5. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:152
- Draft comment:
Observer task block renders only the prompt. If totp_verification_url and totp_identifier are important, consider displaying them or add a TODO note for future UI enhancements. - Reason this comment was not posted:
Confidence changes required:33%
None
6. skyvern-frontend/src/routes/workflows/workflowRun/WorkflowPostRunParameters.tsx:144
- Draft comment:
The ProxySelector's onChange handler is marked as TODO. Remember to implement the update logic for proxyLocation when a value is selected. - Reason this comment was not posted:
Confidence changes required:33%
None
Workflow ID: wflow_ZUZLlhz0aDwYSIzG
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
…cation
Important
Update
WorkflowPostRunParameters.tsx
to prioritize observer task URLs and proxy location, and extendObserverTask
type intypes.ts
.WorkflowPostRunParameters.tsx
to useobserver_task
'swebhook_callback_url
andproxy_location
if present, otherwise useworkflowRun
values.webhook_callback_url
,totp_verification_url
,totp_identifier
, andproxy_location
toObserverTask
intypes.ts
.This description was created by
for e7895ce. It will automatically update as commits are pushed.