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

feat: folder inheritance scripts #7430

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented May 17, 2024

todo

  • add tab and edit pane
  • wire up
  • test

closes INS-3860

challenges

  • how to wrap each level of script in such a way they don't affect the promises or the variables scopes of others

@jackkav jackkav changed the title supprt scripts in folder scope support scripts in folder scope May 17, 2024
@jackkav jackkav changed the title support scripts in folder scope feat: folder inheritance - support scripts May 17, 2024
@jackkav jackkav changed the title feat: folder inheritance - support scripts feat: folder inheritance scripts May 17, 2024
@jackkav jackkav marked this pull request as ready for review May 22, 2024 12:51
@@ -18,7 +18,7 @@ interface BaseRequestGroup {
environmentPropertyOrder: Record<string, any> | null;
metaSortKey: number;
preRequestScript: string;
postRequestScript: string;
afterRequestScript: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

we might named it as afterResponseScript after merging.

title={
<div className='flex items-center gap-2'>
After-request Script{' '}
{activeRequestGroup.preRequestScript && (
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be activeRequestGroup.afterResponseScript instead preXX.

}
await fn${i}();
`);
const joinedScript = [...folderScripts].join('\n');
Copy link
Contributor

Choose a reason for hiding this comment

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

we might also think about things like displaying progress or proper timeout value for joined scripts.

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.

None yet

2 participants