question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Advanced Response Filtering by scripting

See original GitHub issue

image

Script example:

export default function() {
    return resp.map(doc => {
        return {_key: doc._key, position: doc.position};
    })
}

So I can see two specific fields of all items.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
gschiercommented, Oct 25, 2017

You can sort of do this already with JSONPath, although the output isn’t very pleasent.

Something like $.*["_key","position"] will select both keys from every object in the root array.

1reaction
gschiercommented, Oct 31, 2017

Script filtering would definitely be more powerful, but it also adds a lot of complexity to the app. In the future, the plugin system should be powerful enough to support such a feature. For now, JSONPath seems to be working for most people 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Advanced Response Filtering by scripting
Script example: export default function() { return resp.map(doc => { return {_key: doc._key, position: doc.position}; }) } So I can see two ...
Read more >
Configure advanced features in Microsoft Defender for Endpoint
In this article. Enable advanced features; Automated investigation; Live response; Live response for servers; Live response unsigned script ...
Read more >
Filtering Responses - Qualtrics
Nesting condition sets allows you to create more advanced criteria to filter your data by. Example of nested logic. In the above example,...
Read more >
Submitting Feature Requests (Ideas) - BlazeMeter Docs
Read the related article: Tracking Your Feature Requests (Ideas) ... You can filter the portal to view your subscriptions with one click:.
Read more >
Create scripted filters - Product Documentation | ServiceNow
If you know JavaScript, you can create JavaScript functions for use in advanced filters. Before you begin. Role required: admin. Procedure.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found