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

[Feature Request] - Pre and post script effect #100

Open
g-gibosky opened this issue Mar 18, 2024 · 7 comments
Open

[Feature Request] - Pre and post script effect #100

g-gibosky opened this issue Mar 18, 2024 · 7 comments

Comments

@g-gibosky
Copy link

Hello.
First, Restfox is a great tools and I'm loving it, because is fast and easy to work.
Want to request a feature, that is one of the great features of Thunder Client, the possibility to set env and other thing or run other requests after or before a selected request is run.

A simple example is, i have a token base authentication system, that i need to request a login and collect the response token and pass it to request by a env variable token. But after sometime the token expire and i have to stop, fetch the login again and them update manually the token to keep testing the endpoints.

The screen example:

image

At the condition dropdown, there is some options:
Run Always
Run Once
Run Every X minutes
When Variable is Empty
When Variable is None

There is also a script part but is much more complex, if you are curious there is the link: https://github.com/rangav/thunder-client-support/blob/master/docs/filters.md

That feature would be awesome and would speed-up testing 100x.

@g-gibosky g-gibosky changed the title Pre and post script effect [Feature Request] - Pre and post script effect Mar 18, 2024
@flawiddsouza
Copy link
Owner

flawiddsouza commented Mar 18, 2024

the possibility to set env and other thing or run other requests after or before a selected request is run.

This is already present and can be accomplished with Plugins. Please watch this video: https://www.youtube.com/watch?v=3cOQPm43Wus.

Let me know if you think something is missing from this. I'll be happy to add it, as long as it will be helpful to most people.

Update: I guess my comment answers only the 1st question you asked. But the 2nd feature that you requested seems to be a bit different. It allows you make one request depend on another, or so I assume. I'll have to think about this.

@g-gibosky
Copy link
Author

g-gibosky commented Mar 19, 2024

I see. That is great but if it was a dedicated tab, i think that would add a lot of value to the software, since would allow to more direct and versatile manipulation for the request. For example it is a upgrade of Thunder Client when comparing to Insominia.
But if you judge that is not worth, no problem.

Also consider adding the videos to the front page, so users have a easier time learning this features.

Thanks for the link.

@flawiddsouza
Copy link
Owner

I've been thinking of making the plugins a tab in the request panel itself, so your point is valid.

I've never used Thunder Client. Will be taking a look at it and see if I can add the features you've asked.

The linked video is actually already present in the README of this github repo but I guess it's easily missed. People are used to the script terminology, so plugins might seem like something else.

@eznix86
Copy link
Contributor

eznix86 commented Mar 29, 2024

+1 for having plugins moved as a tab, because plugins when right clicking seems to be a hidden from eyesight.
Screenshot 2024-03-30 at 00 56 57

Also, maybe rename plugins to scripts because plugins refers to something external to install.

@flawiddsouza
Copy link
Owner

We can't remove Plugins from the right click menu because a folder can have also have plugins. But a tab will be coming soon.

Also I have thought of renaming Plugins to Scripts recently but a lot of the exported data and the file workspaces has plugins in its filenames and inner values. Initially the plan was that Plugins would have capabilities to extend Restfox and could be installed from outside. But then I didn't find time to develop it further.

@eznix86
Copy link
Contributor

eznix86 commented Mar 30, 2024

We can't remove Plugins from the right click menu because a folder can have also have plugins. But a tab will be coming soon.

Also I have thought of renaming Plugins to Scripts recently but a lot of the exported data and the file workspaces has plugins in its filenames and inner values. Initially the plan was that Plugins would have capabilities to extend Restfox and could be installed from outside. But then I didn't find time to develop it further.

I see, thank you for taking the time for seeing the users' perspective.
Maybe it should a brand new feature then. Script tabs so there is no breaking change.

For functionality extension, I think it should be defined

@flawiddsouza
Copy link
Owner

Just implemented the Script tab:
image
This will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants