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.

Admin UI: hidden:true doesn't work for inherited Relationship fields

See original GitHub issue

Expected behavior

Fields, declared with hidden:true should be invisible

Actual behavior

I have two collections, say Base and Child.

Both has the same field somefield. But for Base visibility is not set, and for Child this field is hidden. But I see the field in the admin UI for both collections.

Steps to reproduce the behavior

Create models with the following fields:

Base.add({
    somefield: { type: Types.Relationship, ref: 'Somefield' },
});

Child.add({
    somefield: { type: Types.Relationship, ref: 'Somefield', hidden: true, noedit: true },
});

Open admin UI

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
maxkoryukovcommented, May 26, 2016

@webteckie my problem - Admin UI, not DB, DB works good. UI looks as not expected.

0reactions
export-mikecommented, Mar 22, 2017

This issue is no longer an issue therefore I am closing. I’ve been adding tests using nightmare e2e framework and can see its no longer an issue https://github.com/keystonejs/keystone/commit/73d144ebe825f761e5afdd2e5b91ab95bd01408c

Read more comments on GitHub >

github_iconTop Results From Across the Web

Admin UI: cannot override inherited field with hidden:true #4973
When inheriting from a parent list, some fields may need to be hidden in some of the children. This appears to be the...
Read more >
How to hide some fields in django-admin? - Stack Overflow
In Django 1.8 exclude = ('fieldname',) does works with admin.ModelAdmin so one does not have to inherit from InlineModelAdmin anymore. – Dmitriy ...
Read more >
Overriding ServiceNow Form View Inheritance
This script runs on load of a particular table (Change request for example) and manipulates the form to remove any trace of a...
Read more >
Sharing Inheritance Limits and Considerations - Salesforce Help
Here are some things to consider when working with sharing inheritance. Sharing Inheritance Limits Sharing inheritance can be applied from a supported obj....
Read more >
visibility - CSS: Cascading Style Sheets - MDN Web Docs
The visibility CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or...
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