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.

Add Support for Hidden Relationships, Custom, and Computed Fields

See original GitHub issue

Overview

There may be a need to store non-user facing data as a custom or computed field. It may be an ID or UUID that corresponds with other automation systems that need that data to do its job. There may also be a need to store custom fields or large computed fields that are primarily used for automation and there is no need for a user to see them in the UI. Having a radio button that is: “Display on Advanced Tab: Yes/No” should do the trick. This should be done with a boolean attribute named advanced_ui. The default should be current behavior.

User Story

As Austin a Network Automation Engineer, I want to be able to hide a custom and computed field within the UI, but still have it available in the API, So that users don’t need to see data that is mainly for machine-to-machine communication (and not meant for user consumption).

I know this is done when:

  • When I can flag relationships, custom and computed fields to not be displayed on the object detail tab
  • I can view the “hidden” fields on the “Advanced” tab
  • No breaking changes should happen to the API, although the advanced_ui attribute should be exposed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
brobarecommented, Sep 14, 2021

One example use case I can think of on the Device model: Some of our external platforms (NMS and secrets vault) use integers as identifying information. I’d like to be able to sore this in a Custom Field, but, its not really going to provide much use for an operator looking at the device in the UI.

For example https://secrets.example.com/?secretid=1234. I’d want to store 1234 as a CF on the Device model, but this is not going to provide much (usable) information for a user looking at the device.

I would use the CF data for Custom Links (linked directly to the asset in the secrets platform). This way, I’d have a Custom Link that took the user directly to the entry in the secrets platform without having to search for it.

2reactions
glennmatthewscommented, Sep 8, 2021

Should there be an option in the UI to show hidden fields temporarily? To me it feels a bit counter to the general goal of UI/REST/GraphQL/API feature parity to have things that are specifically blocked from ever being available to one of them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic/Virtual field values using computed field property ...
In Drupal 7, adding computed properties to fields was achieved with hook_field_load() ... At field level: When defining a custom field type.
Read more >
Formulas vs other computed fields - Airtable Support
Computed fields (columns) are special field types where the values in the field are computed by Airtable automatically, rather than directly ...
Read more >
Rollup Field (Relationships) - ClickUp Help
The Rollup Field is part of our Relationships feature — collecting and displaying all the various Relationships and corresponding field...
Read more >
Many-to-many relationships in Power BI Desktop
Use relationships with a many-to-many cardinality in Power BI ... Or you may hide the workaround table, so it doesn't appear in the...
Read more >
Create Custom Fields with Calculations - Tableau Help
These fields are called calculated fields. This section provides all the documentation you need to get started with calculations in Tableau. Other articles...
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