Skip to content

Conversation

@avdata99
Copy link
Member

Starting a proposal

@avdata99 avdata99 requested review from Copilot and pdelboca April 24, 2025 19:42
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 proposes changes related to API token handling and enhanced logging/plugin notifications in the datapusher-plus code.

  • Modify get_dp_plus_user_apitoken() to raise an exception when no API token is set.
  • Add various logging statements and a new plugin hook call (datastore_before_update) in jobs.py for enhanced datastore update tracking.
  • Introduce a new interface method (datastore_before_update) to standardize plugin notifications before datastore updates.

Reviewed Changes

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

File Description
ckanext/datapusher_plus/utils.py Updated the API token retrieval function to raise an exception instead of falling back to site_user.
ckanext/datapusher_plus/jobs.py Added informative logging statements and a plugin notification hook before datastore updates.
ckanext/datapusher_plus/interfaces.py Added a new interface method datastore_before_update for plugin integrations.

@avdata99 avdata99 merged commit 14f067c into okfn_tmp Apr 24, 2025
0 of 10 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.

2 participants