Giter Site home page Giter Site logo

Error in Template Functions about prest HOT 6 CLOSED

caiolul avatar caiolul commented on September 20, 2024
Error in Template Functions

from prest.

Comments (6)

arxdsilva avatar arxdsilva commented on September 20, 2024 2

Hi @caiolul , thanks for reporting, this is a valid problem that we dont solve right now. From what I can see in the code, we've opted to support queries only with this format:

https://.../_QUERIES/<folder>/<query>?field=<value1>&field=<value2>

As is said in this article, the RFC 3986 talks that web servers could have both the previous cited implementation and field=val1,val2 working, but neither are mandatory. Although I believe that having both working is great for us, so we definately should have it implemented in the future in prestd.

Thank you for reporting this, I'll keep this open so we can track this fix.

from prest.

vmesel avatar vmesel commented on September 20, 2024 2

@arxdsilva I'm going to work on this, if you want to pair, let me know!

from prest.

vmesel avatar vmesel commented on September 20, 2024 1

@avelino @arxdsilva can you guys take a look? I'm working with @caiolul at Mais Retorno and we went through this issue together

from prest.

vmesel avatar vmesel commented on September 20, 2024

Something we need to fix after solving this issue (if it's a real issue) is documenting this function better on the docs. Our docs don't offer a very descriptive way of using this function.

from prest.

vmesel avatar vmesel commented on September 20, 2024

As I spoke to @arxdsilva, it's not actually a bug. To send multiple parameters to inFormat function, you instantiate it with multiple calls of the same field on the URL.

An example:

I need to retrieve multiple hedge funds with IBOV and CDI as indexers, the query would be:

SELECT * FROM hedge_funds WHERE fund_benchmark in {{inFormat "benchmark_field" }}

And the URL to be called would be: /_QUERIES/your_awesome_query_folder/awesome_query?benchmark_field=IBOV&benchmark_field=CDI

from prest.

vmesel avatar vmesel commented on September 20, 2024

Solved!

from prest.

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.