Skip to content

Conversation

@milanmajchrak
Copy link
Collaborator

@milanmajchrak milanmajchrak commented Nov 11, 2025

Problem description

Analysis

(Write here, if there is needed describe some specific problem. Erase it, when it is not needed.)

Problems

(Write here, if some unexpected problems occur during solving issues. Erase it, when it is not needed.)

Sync verification

If en.json5 or cs.json5 translation files were updated:

  • Run yarn run sync-i18n -t src/assets/i18n/cs.json5 -i to synchronize messages, and changes are included in this PR.

Manual Testing (if applicable)

Copilot review

  • Requested review from Copilot

@jr-rk
Copy link

jr-rk commented Nov 13, 2025

metadata service tests were failing because of this change -> #1070

@jr-rk jr-rk requested a review from Copilot November 13, 2025 09:07
Copilot finished reviewing on behalf of jr-rk November 13, 2025 09:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR re-enables the CI/CD pipeline's linting, circular dependency checks, and unit tests that were previously commented out, along with the necessary test fixes to ensure they pass.

Key Changes

  • Re-enabled lint, circular dependency checks, and unit test execution in GitHub Actions workflow
  • Fixed test setups to use proper Angular testing patterns (beforeEach instead of beforeAll with async, proper injection context)
  • Updated tests to align with CLARIN customizations that removed certain UI elements (version numbers, dates, summaries)

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
.github/workflows/build.yml Uncommented linting, circular dependency checks, and unit test steps in the CI pipeline
src/app/item-page/versions/item-versions.component.spec.ts Fixed async test setup patterns, added proper cleanup in afterEach hooks, and updated comments about CLARIN-specific UI changes
src/app/core/metadata/metadata.service.spec.ts Removed trailing space from mock translation strings to match actual implementation
src/app/bitstream-page/legacy-bitstream-url-redirect.guard.spec.ts Added TestBed configuration and wrapped resolver calls in injection context to support Angular's inject() function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jr-rk jr-rk self-assigned this Nov 13, 2025
@jr-rk jr-rk linked an issue Nov 19, 2025 that may be closed by this pull request
@milanmajchrak milanmajchrak merged commit 5d50b1f into dtq-dev Nov 19, 2025
11 checks passed
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.

UFAL/Refactor UNIT tests

3 participants