Skip to content

Conversation

@purplecabbage
Copy link
Member

@purplecabbage purplecabbage commented Jan 9, 2025

Description

We shortcut some logic to make it quick and easy for developers to test/debug their non-web actions. This pr adds a --strict flag to closer mimic the behavior of Adobe Runtime.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@purplecabbage purplecabbage requested a review from shazron January 9, 2025 02:13
@codecov
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

}),
strict: Flags.boolean({
description: 'Run in strict mode, this will block non-web actions from being run directly',
defaullt: false
Copy link
Member

Choose a reason for hiding this comment

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

typo default

}

if (invoker && !sequence) {
if (invoker && !sequence && !actionConfig.strictMode) {
Copy link
Member

Choose a reason for hiding this comment

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

Where is the serveNonWebAction code? That needs to be resurrected here (it was deleted in the previous PR) and enabled by --strict. If not the e2e tests will fail since they expect 401s for non-web actions being called.

@shazron shazron mentioned this pull request Mar 7, 2025
@purplecabbage
Copy link
Member Author

stale

@purplecabbage purplecabbage deleted the StrictMode branch January 5, 2026 19:43
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.

3 participants