GithubHelp home page GithubHelp logo

Comments (5)

abainczyk avatar abainczyk commented on August 29, 2024 1

Hi, there already is the possibility to assign multiple URLs to a project and choose, e.g. for a test execution, against which URL tests are executed. I get your point that frontend and backend may be on different servers and that there is the need for your suggestion.

The only issue I see here is how to deal with the import and export of symbols. I can imagine that on export, the absolute URL is exported (although specified as relative to a base URL) and on import, it is checked if there exists a URL in the project that is a prefix of the URL in the action and select this one. What do you think about this?

from alex.

abainczyk avatar abainczyk commented on August 29, 2024 1

This is implemented with 1b6ea8d

from alex.

Benuhx avatar Benuhx commented on August 29, 2024

Would be great if you would implement it that way. Sounds really good :-)

from alex.

MazeChaZer avatar MazeChaZer commented on August 29, 2024

Having multiple base URLs would be great 👍
I'm not sure if the automatic conversion to absolute URLs is a good idea. It might be surprising for the user that, if he forgets to configure the base URLs, some URLs are suddenly absolute after import. Another problem I see is that the export results will be different depending on the configuration/environment. If I'm testing production and do an export, the export file will contain the URLs of the production environment. If I test locally, the URLs will be that of the local environment. That's why I would prefer that for each symbol the label of the base URL + the relative URL would be exported. If the base URL doesn't exist during import, an error would be thrown, saying which base URLs are missing. One requirement for this to work would be that the label of the base URL is a mandatory input. I would even go so far as to say that absolute URLs might not be needed at all. In most (if not all) cases it's better to use a base URL + relative path.

from alex.

MazeChaZer avatar MazeChaZer commented on August 29, 2024

Edit: This is not correct, nevermind.

One small additional point: Automatic conversion to absolute URLs would not allow for base URLs like http://localhost:3000/api/v1, after one export/import the base URL would become http://localhost:3000.

from alex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.