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: unique identifiers #2607

Merged
merged 3 commits into from
Nov 6, 2024
Merged

Conversation

shpran
Copy link
Contributor

@shpran shpran commented Nov 6, 2024

Fix for unique identifiers + removing unnecessary classes

@shpran shpran requested a review from gabrielfs7 November 6, 2024 01:00
$uniqueIdentifier = $this->resourceUniqueIdRetriever->retrieve($originalResource);

if ($uniqueIdentifier === null) {
$this->logger->info(sprintf('Cannot retrieve unique identifier for item %s', $originalResource->getUri()));
Copy link
Contributor

Choose a reason for hiding this comment

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

  • This should be an error exception. If this feature flag is active why would an Item/Test be missing this id and we masking the error?

Copy link
Contributor

@gabrielfs7 gabrielfs7 left a comment

Choose a reason for hiding this comment

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

Pre-approved as the expected behavior is working.

Test and styling will be fixed in the integration branch


use function Symfony\Component\DependencyInjection\Loader\Configurator\service;

class QtiIdentifierServiceProvider implements ContainerServiceProviderInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we call it QtiServiceProvider to avoid having to create new providers later for the same namespace qti

@shpran shpran force-pushed the fix/hkd-6/unique-identifiers branch from 6739e60 to 459efe0 Compare November 6, 2024 10:57
@shpran shpran merged commit 7532c53 into feat/HKD-6/integration Nov 6, 2024
@shpran shpran deleted the fix/hkd-6/unique-identifiers branch November 6, 2024 11:00
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.

2 participants