Area: UI Issues
Sub-Area: Context Documents / Views Configuration
Applies to: OSS + Cloud
Issue
The Context Documents page shows an empty document tree, or a section that won't expand, even though the documents exist. Search inside the Documents page also returns nothing. The problem often starts right after an upgrade, and it can hit some users and not others on the same instance.
You Might Be Asking
- Why are my Context Documents missing from the Documents page when I know they exist?
- Why did the Documents sidebar go empty after we upgraded?
- Why do documents show up for one user but not for another?
- Why do documents come back when I clear my View?
Cause
The Documents page follows your active View. The document tree (the sidebar and the overview page) sends the active View with every document search. If the View doesn't include the Document type, the search returns zero documents and the tree is empty.
This started in DataHub Cloud v2.1.0 ("Document search scoped to the active View" in the v2.1.0 release notes) and in DataHub OSS v1.7.0. Views created before then often list only data assets, so they leave out documents.
The active View comes from one of these places:
- A View you picked in the View selector in the search bar.
- Your personal default View. It applies every time you open DataHub.
- The organization default View. It applies to every user who has no personal default.
On DataHub Cloud, when a new user clicks through the first-login welcome screen and the organization has no default View, DataHub makes the public "Data Expert" View that user's personal default. That View's Type filter doesn't include Document, so those users get an empty document tree. The other built-in public Views ("Data User", "Data Steward", "Data Engineer") don't include Document either.
Solution
-
Confirm a View is the cause. Look at the View selector in the search bar. If it shows a View name, click the clear (X) control on it ("Clear view"). The document tree reloads without the View. If your documents appear, the View was the cause.
Clearing lasts only until your next full page load. When DataHub loads again, it re-applies your personal default or the organization default. Use step 2 or step 3 for a lasting fix.
-
Remove your personal default View. Any user can do this for themselves.
- Go to Settings, Views. Your own Views are on the My Views tab (
/settings/views/personal). Public Views, including "Data Expert", are on the Public Views tab (/settings/views/public). - Find the View marked as your default, open its ... menu, and choose Remove as default.
- Clear the View in the search bar as in step 1.
If your organization has a default View, it applies to you once you have no personal default. If that View also leaves out documents, go to step 3.
- Go to Settings, Views. Your own Views are on the My Views tab (
-
Add Document to the View. This keeps the View and shows your documents.
- Open the View's ... menu and choose Edit.
- On the Build Filters tab, find the Type condition and add Document to its values.
- Save the View.
You can edit your own personal Views. Editing a public View (including the built-in "Data Expert" View and the organization default) needs the Manage Public Views privilege, which admins have by default. On DataHub Cloud, DataHub keeps your edits to the built-in Views when it restarts.
-
If you have the Manage Public Views privilege, you can also open the organization default View's ... menu on the Public Views tab and choose Remove organization default. This changes the default for every user in your organization, so prefer step 3.
See Views for how default Views work and who can change them.
To check from the browser, open your developer tools on the Documents page and find the searchDocuments GraphQL request. If its input has a viewUrn and the response has total: 0, the View is filtering out your documents.