Skip to content

All DOIs view#1846

Merged
louise-davies merged 2 commits intodevelopfrom
datapublications-view
Feb 24, 2026
Merged

All DOIs view#1846
louise-davies merged 2 commits intodevelopfrom
datapublications-view

Conversation

@louise-davies
Copy link
Copy Markdown
Member

Description

Add a "browse all datapublications" view so that open data users etc. can see all the DOIs that DLS will have.

Note that we currently have to separate out into user-defined and session DOIs in order to filter out versions. I will check with DLS whether they want to exclude versions and if they want to see all of them in a view together or whether separate is fine.

Also would like a open/closed data filter, but that code is commented out as datagateway-api doesn't support it yet. see ral-facilities/datagateway-api#527

Testing instructions

Add a set up instructions describing how the reviewer should test the code

  • Review code
  • Check Actions build
  • Review changes to test coverage
  • Go to /browse/datapublication and see if you can see all the DOIs as an anon user

@louise-davies louise-davies added enhancement New feature or request datagateway-dataview Issues corresponding to the dataview component. This component supersedes datagateway-table labels Feb 23, 2026
@louise-davies louise-davies added the user feedback Issues that were raised by users label Feb 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 99.22780% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.71%. Comparing base (ed70854) to head (eca9156).
⚠️ Report is 22 commits behind head on develop.

Files with missing lines Patch % Lines
...iew/src/views/table/dls/dlsDOITables.component.tsx 98.87% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1846      +/-   ##
===========================================
+ Coverage    96.69%   96.71%   +0.01%     
===========================================
  Files          219      219              
  Lines        30914    31042     +128     
  Branches      4624     4646      +22     
===========================================
+ Hits         29893    30021     +128     
+ Misses        1017     1016       -1     
- Partials         4        5       +1     
Flag Coverage Δ
common 95.37% <ø> (ø)
dataview 98.57% <99.22%> (+0.01%) ⬆️
download 96.95% <ø> (ø)
search 95.61% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@joshdimanteto joshdimanteto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I made some changes to the commented out code for filtering null values in the publicationDate. Since the PR is now up on dg-api, this PR will require a small change to the CI because it branches off the “remove older Python version” PR. Specifically, Python 3.9 will need to be updated to Python 3.10.

Comment on lines +177 to +184
// TODO: add back in when we can query for is not null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { neq: null },
// }),
// },
]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: add back in when we can query for is not null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { neq: null },
// }),
// },
]
// TODO: add back in when we can query for is not null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { isnull: false },
// }),
// },
]

ral-facilities/datagateway-api#528

Comment on lines +199 to +205
// TODO: add back in when we can query for is null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { eq: null },
// }),
// },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: add back in when we can query for is null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { eq: null },
// }),
// },
// TODO: add back in when we can query for is null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { isnull: true },
// }),
// },

ral-facilities/datagateway-api#528

Comment on lines +319 to +325
// TODO: add back in when we can query for is not null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { neq: null },
// }),
// },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: add back in when we can query for is not null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { neq: null },
// }),
// },
// TODO: add back in when we can query for is not null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { isnull: false },
// }),
// },

ral-facilities/datagateway-api#528

Comment on lines +335 to +341
// TODO: add back in when we can query for is null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { eq: null },
// }),
// },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// TODO: add back in when we can query for is null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { eq: null },
// }),
// },
// TODO: add back in when we can query for is null
// {
// filterType: 'where',
// filterValue: JSON.stringify({
// publicationDate: { isnull: true },
// }),
// },

ral-facilities/datagateway-api#528

@louise-davies
Copy link
Copy Markdown
Member Author

@joshdimanteto I just left the code in as "pseudo-code" to give the idea of what we want to do. I'll merge it in as is and it can be fixed when the PR on the API gets merged

@louise-davies louise-davies merged commit b6627ac into develop Feb 24, 2026
14 of 15 checks passed
@louise-davies louise-davies deleted the datapublications-view branch February 24, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datagateway-dataview Issues corresponding to the dataview component. This component supersedes datagateway-table enhancement New feature or request user feedback Issues that were raised by users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants