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

Provide logging information when a dataset has already been imported #4334

Open
3 of 4 tasks
paul-m opened this issue Nov 7, 2024 · 0 comments
Open
3 of 4 tasks

Provide logging information when a dataset has already been imported #4334

paul-m opened this issue Nov 7, 2024 · 0 comments
Labels
feature request Good First Issue good issues for first time contributors

Comments

@paul-m
Copy link
Contributor

paul-m commented Nov 7, 2024

Feature Description

When a queue item is created to import an already-existing datastore, it can recognize that there is already a dataset and thus not re-import it.

This happens right about here in code:

if ($this->alreadyImported($data)) {

It would be helpful if this decision to not import the dataset was logged.

Detailed Feature Description

Add logging facilities to Drupal\datastore\Plugin\QueueWorker\ImportQueueWorker::processItem() such that it informs the user that the dataset already exists and will not be imported.

Problem and Motivation

It's convenient to know when this has happened.

Potential Benefits

Users will know when their datasets have been skipped for already existing, and they will be better equipped to validate or debug processes.

Target Audience

  • End Users
  • Developers
  • Administrators
  • Other

Possible Implementation

No response

Additional Context

No response

@paul-m paul-m added feature request Good First Issue good issues for first time contributors labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Good First Issue good issues for first time contributors
Projects
None yet
Development

No branches or pull requests

1 participant