Skip to content

build: upgrade angular version to v19 #1832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

Junjiequan
Copy link
Member

@Junjiequan Junjiequan commented Apr 23, 2025

Description

Short description of the pull request

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

Upgrade SciCat frontend to Angular version 19 and update related dependencies and API calls

New Features:

  • Migrated to Angular 17.3.12 and updated related dependencies

Enhancements:

  • Updated API method calls to use V3 versions
  • Updated type definitions to match new SDK
  • Refactored components to work with new Angular version

Chores:

  • Updated package.json dependencies
  • Updated Angular CLI and build configurations
  • Updated TypeScript version

… and DTOs

- Updated `datasetsControllerCount` to `datasetsControllerCountV3` in PoliciesDashboardComponent.
- Changed date input types in ProposalFilterComponent and DateRangeFilterComponent to `any`.
- Refactored SampleDetailComponent to use `CreateAttachmentV3Dto` and `OutputAttachmentV3Dto`.
- Modified TableVirtualScrollDataSource to emit `null` in filter updates.
- Updated FileUploaderComponent to use `OutputAttachmentV3Dto` for attachments.
- Changed thumbnail service to use `datasetsControllerThumbnailV3`.
- Refactored actions in datasets, proposals, samples, and user management to use new DTOs and API methods.
- Updated effects for datasets, instruments, jobs, logbooks, policies, proposals, published data, samples, and user management to utilize new API versions.
- Removed unused imports and adjusted state management to reflect new DTOs.
Copy link

@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 @Junjiequan - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider using feature flags to enable the new API endpoints instead of directly replacing the old ones.
  • It looks like there are a lot of API changes from v3 to v4, so make sure you've handled all the breaking changes.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

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.

- Updated Angular packages in package.json to version 18.2.13 for core modules, animations, forms, and others.
- Updated Angular DevKit packages to version 18.2.19.
- Refactored app.module.ts to use provideHttpClient and withInterceptorsFromDi for HTTP client configuration.
- Adjusted imports in various spec files to use provideHttpClient and removed HttpClientModule where applicable.
- Cleaned up unnecessary imports and improved the structure of the app.module.ts.
- Removed deprecated TypeScript compiler options from tsconfig.json.
@Junjiequan Junjiequan changed the title Swap 4671 scicat fe upgrade angular version to v19 build: upgrade angular version to v19 Apr 24, 2025
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.

1 participant