Skip to content

Conversation

@abdimo101
Copy link
Member

@abdimo101 abdimo101 commented Oct 3, 2025

Description

This PR displays the numberOfDataset field in proposal table & the proposal details page under general information.

numberOfDatasets-details numberOfDatasets-table

Motivation

Background on use case, changes needed

Fixes:

Please provide a list of the fixes implemented in this PR

  • Items added

Changes:

Please provide a list of the changes implemented by this PR

  • changes made

Tests included

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)

Documentation

  • swagger documentation updated [required]
  • official documentation updated [nice-to-have]

official documentation info

If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included

Backend version

  • Does it require a specific version of the backend
  • which version of the backend is required:

Summary by Sourcery

New Features:

  • Render a new table row showing the proposal.numberOfDatasets value in the details view.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@abdimo101 abdimo101 requested a review from Junjiequan October 6, 2025 09:33
@abdimo101 abdimo101 changed the title feat: add numberOfDatasets field in proposal details page under general information feat: add numberOfDatasets in proposal table and the details page under general information Oct 6, 2025
@Junjiequan Junjiequan force-pushed the add-numberofdatasets-proposal branch from c1e620e to a27d98f Compare October 7, 2025 08:10
@Junjiequan Junjiequan enabled auto-merge (squash) October 7, 2025 08:10
@Junjiequan Junjiequan merged commit e66b068 into master Oct 7, 2025
7 checks passed
@Junjiequan Junjiequan deleted the add-numberofdatasets-proposal branch October 7, 2025 08:19
omkar-ethz added a commit that referenced this pull request Oct 20, 2025
## Description
As the new backend did not implemet history[] in /v3/datasets, history
was turned off / commented out in
#2041. Uncommented and
fixed type errors (some errors are automatically fixed by using the
v4.24.5 of scicat-sdk-ts-angular which includes
`ObsoleteDatasetOutputDto` with history field), as support for legacy
history was added in
SciCatProject/scicat-backend-next#2282

## Motivation


## Fixes:


## Changes:


## Tests included
- [x] Included for each change/fix?
- [x] Passing? (Merge will not be approved unless this is checked) 

## Documentation
- [ ] swagger documentation updated \[required\]
- [ ] official documentation updated \[nice-to-have\]

### official documentation info
If you have updated the official documentation, please provide PR # and
URL of the pages where the updates are included

## Backend version
- [x] Does it require a specific version of the backend
- which version of the backend is required: v4.24.5

## Screenshot
<img width="819" height="565" alt="history"
src="https://github.com/user-attachments/assets/d06379a2-e137-4f70-a8eb-0367c49971bb"
/>

## Summary by Sourcery

Enable dataset history in the lifecycle tab by updating the SDK version,
adding a custom type for history properties, reactivating the
parseHistoryItems method, and updating the corresponding unit test.

New Features:
- Restore and display dataset history entries in the lifecycle tab

Enhancements:
- Upgrade scicat-sdk-ts-angular to v4.25.0 to include history in
ObsoleteDatasetOutputDto
- Add HistoryWithProperties type to support dynamic history fields in
parsing logic

Tests:
- Un-comment and adapt the unit test for parseHistoryItems in
DatasetLifecycleComponent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants