Skip to content
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

Support conditional actions with expectations #1144

Merged
merged 11 commits into from
Oct 23, 2024

Conversation

brianhall
Copy link
Contributor

@brianhall brianhall commented Oct 19, 2024

Asana Task/Github Issue: https://app.asana.com/0/481882893211075/1208563922804591/f

Description

Testing Steps

  • Run test suite and drag/drop into XCode

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

Copy link

github-actions bot commented Oct 19, 2024

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

Copy link

github-actions bot commented Oct 19, 2024

[Beta] Generated file diff

Time updated: Wed, 23 Oct 2024 19:12:41 GMT

Integration
    - integration/contentScope.js

File has changed

Windows
    - windows/contentScope.js

File has changed

Apple
    - dist/contentScopeIsolated.js

File has changed

Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit d491793
🔍 Latest deploy log https://app.netlify.com/sites/content-scope-scripts/deploys/67194a6e764bb60008d626c1
😎 Deploy Preview https://deploy-preview-1144--content-scope-scripts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@brianhall brianhall marked this pull request as ready for review October 21, 2024 18:57
@brianhall brianhall requested review from shakyShane and a team as code owners October 21, 2024 18:57
Copy link
Contributor

@shakyShane shakyShane left a comment

Choose a reason for hiding this comment

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

2 miain things I noticed:

1 - we can prevent changing the signatures of the exiting code (see the linked commit)
2 - if you want to execute actions from within another - you need to consider that it's an async operation and capture/communicate those errors for observability. If you already validated that errors are propagated correctly, at the very least we should await each execution to prevent dangling promises.

this commit has a couple of ideas, happy to talk if you need anything 3676158#diff-588b8450ad6aff7276f65312571cd134fa5afb0cd4fc4066d106bd74a47891f7R33-R41

Copy link
Contributor

@shakyShane shakyShane left a comment

Choose a reason for hiding this comment

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

Can you check the error text :)

@brianhall brianhall merged commit e437f3d into main Oct 23, 2024
11 checks passed
@brianhall brianhall deleted the bhall/support-conditional-actions branch October 23, 2024 19:17
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.

2 participants