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.

Option to set "resourcetype" key

See original GitHub issue

This is an amazing package, thank you!

Would that be possible to provide an option to set resourcetype using some user-defined name? And also, to disable it completely as well (not adding it to the response)?

Cheers

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
denisorehovskycommented, Apr 10, 2018

You can change the resource type field name like this:

class ProjectPolymorphicSerializer(PolymorphicSerializer):
    resource_type_field_name = 'project_type'

Sorry, I haven’t included this in the documentation. When I have time I will do that.

About your second question. It’s not possible to remove the resourcetype field right now. May I ask, why do you need to remove it?

1reaction
denisorehovskycommented, Apr 10, 2018

I keep this issue open until we add documentation for changing the resource type field name. Thanks for the question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selecting Which Resources AWS Config Records
Before you can specify resource types for the resourceTypes key, you must set the allSupported and includeGlobalResourceTypes options to false or omit them....
Read more >
Azure resource providers and types
The resource type for a key vault is Microsoft.KeyVault/vaults. In this article, you learn how to: View all resource providers in Azure; Check ......
Read more >
Resources - Configuration Language | Terraform
Resources correspond to infrastructure objects like virtual networks or compute instances. Learn about resource types, syntax, behavior, and arguments.
Read more >
App resources overview
menu/, XML files that define app menus, such as an Options Menu, ... (the set of resources for a particular resource type that...
Read more >
Configuring Oracle Field Service Cloud
Use the plus icon to add a new key-value pair. You can add a maximum of 20 key-value pairs, after which the icon...
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