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

Post import status message #4384

Open
kaise-lafrai opened this issue Jan 15, 2025 · 1 comment
Open

Post import status message #4384

kaise-lafrai opened this issue Jan 15, 2025 · 1 comment
Assignees
Labels

Comments

@kaise-lafrai
Copy link
Contributor

Current Behavior

When one runs a post import twice on the same resource, the original status does not get overwritten. Figure out source of bug and fix.

Expected Behavior

When one runs a post import twice on the same resource, the post import status must reflect on the dashboard..

Steps To Reproduce

  1. Create a dataset with a data dictionary. Keep the data dictionary mode "disabled".
  2. Import the dataset and run post_import jobs.
  3. Confirm that the dashboard displays "N/A Disabled" error.
  4. Enable distribution reference mode for data dictionaries.
  5. Re-import the dataset, and run the post-import.
  6. Confirm that dashboard still displays the "N/A Disabled" error, even though the post-import alter was applied.

See https://jira.cms.gov/browse/WCMS-20631 for sample datasets and DD JSON.

Relevant log output (optional)

Anything else?

No response

@kaise-lafrai kaise-lafrai self-assigned this Jan 15, 2025
@kaise-lafrai
Copy link
Contributor Author

While attempting to reproduce with the steps above. Ran ddev drush cron and the following error appeared in the terminal.

TypeError: Drupal\metastore\DataDictionary\DataDictionaryDiscovery::getReferenceDictionaryId(): Return value must be of type ?string, none returned in /var/www/html/dkan/modules/metastore/src/DataDictionary/DataDictionaryDiscovery.php on line 89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant