Skip to content
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

fix: pci filename is used as identifier, not path #2656

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

augustas
Copy link
Collaborator

@augustas augustas commented Jan 9, 2025

Fixes a regression in PCI listing.

PCI filename should be used as identifier, not full path.

How to test

  • Update local TAO to 2025.01 community version
  • Navigate to PCI list
  • Witness that all PCIs are present as expected

@augustas augustas requested a review from oatymart January 9, 2025 15:12
Copy link

github-actions bot commented Jan 9, 2025

Version

Target Version 30.25.5
Last version 30.25.4

There are 0 BREAKING CHANGE, 0 feature, 1 fix

Copy link

github-actions bot commented Jan 9, 2025

Front-end summary Node 18

💯 Total ✅ Passed ⏭️ Skipped ❌ Failed
287 287 0 0

@augustas augustas requested review from mccar and vbyndych January 9, 2025 15:29
@@ -145,7 +145,7 @@ private function getAll()

foreach ($contents as $file) {
if ($file['type'] === 'file') {
$identifier = $file['path'];
$identifier = basename($file['path']);
Copy link

Choose a reason for hiding this comment

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

test would be nice :P

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I agree, this class is tested by integration test, but we don't run them automatically and they are neglected and failing. For this particular case vendor/bin/phpunit taoQtiItem/test/integration/portableElement/PortableElementServiceTest.php --bootstrap generis/test/bootstrap.php would have shown this issue

Copy link
Contributor

@vbyndych vbyndych left a comment

Choose a reason for hiding this comment

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

Review Checklist

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code respects code style rules
  • New code respects best practices
  • New code is not subject to concurrency issues (if applicable)
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful
  • Pull request's target is not master
  • Commits are following conventional commits
  • Commits messages are meaningful
  • Commits are atomic

Copy link
Contributor

@oatymart oatymart left a comment

Choose a reason for hiding this comment

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

It works, PCIs are back.

@augustas augustas merged commit 996b6af into develop Jan 9, 2025
5 checks passed
@augustas augustas deleted the fix/REL-1909/pci-identifier-in-local branch January 9, 2025 16:04
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.

5 participants