Skip to content

Commit

Permalink
[QOLDEV-933] drop redirection of private datasets
Browse files Browse the repository at this point in the history
- This is now a core feature, we don't need it in the plugin.
We also need to adjust its behaviour to optionally give 404 on deleted datasets for PURL.
  • Loading branch information
ThrawnCA committed Sep 24, 2024
1 parent 838b25c commit 4279bb5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 96 deletions.
6 changes: 1 addition & 5 deletions ckanext/qgov/common/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
from .user_creation import validators as user_creation_validators
from .user_creation.logic.actions import create as user_creation_create_actions

# workaround for https://github.com/ckan/ckan/issues/6678
from ckan.views import dataset as dataset_view, resource # noqa: F401

LOG = getLogger(__name__)

IP_ADDRESS = re.compile(r'^({0}[.]){{3}}{0}$'.format(r'[0-9]{1,3}'))
Expand Down Expand Up @@ -179,9 +176,8 @@ def get_blueprint(self):
user to the `came_from` URL if they are logged in.
:return:
"""
from .views import user, dataset, assets
from .views import user, assets
blueprints = user.get_blueprints()
blueprints.extend(dataset.get_blueprints())
blueprints.extend(assets.get_blueprints())
return blueprints

Expand Down
91 changes: 0 additions & 91 deletions ckanext/qgov/common/views/dataset.py

This file was deleted.

0 comments on commit 4279bb5

Please sign in to comment.