Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
0c65d1f6
Commit
0c65d1f6
authored
1 year ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Removed activities feature because it has been extracted into a separate activity plugin
parent
9eb9129e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!50
Upgraded to CKAN 2.10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
ckanext/odsh/plugin.py
+0
-2
0 additions, 2 deletions
ckanext/odsh/plugin.py
ckanext/odsh/views/user.py
+0
-9
0 additions, 9 deletions
ckanext/odsh/views/user.py
with
1 addition
and
11 deletions
CHANGELOG.md
+
1
−
0
View file @
0c65d1f6
...
...
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
Completely removed data requests.
-
Avoided the usage of the global context variable c where possible.
-
Removed deprecated subject mappings JSON template.
-
Removed deprecated activities feature (CKAN activities have been extracted into a separate activity plugin).
### Changed
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/plugin.py
+
0
−
2
View file @
0c65d1f6
...
...
@@ -74,8 +74,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
bp_user
.
add_url_rule
(
u
'
/user
'
,
endpoint
=
'
user_index
'
,
view_func
=
user
.
index
,
strict_slashes
=
False
)
# bp_user.add_url_rule(u'/user/register', view_func=user.register)
bp_user
.
add_url_rule
(
u
'
/user/activity/<id>
'
,
view_func
=
user
.
activity
)
bp_user
.
add_url_rule
(
u
'
/user/activity/<id>/<int:offset>
'
,
view_func
=
user
.
activity
)
# Dashboard
bp_dashboard
=
dashboard
.
blueprint
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/views/user.py
+
0
−
9
View file @
0c65d1f6
...
...
@@ -33,12 +33,3 @@ def read(id=None):
if
not
g
.
user
:
return
ckan_user_view
.
login
()
return
ckan_user_view
.
read
(
id
)
def
activity
(
id
,
offset
=
0
):
log
.
debug
(
"
views.user::activity
"
)
is_sysadmin
=
authz
.
is_sysadmin
(
g
.
user
)
if
not
is_sysadmin
:
toolkit
.
abort
(
403
)
return
ckan_user_view
.
activity
(
id
,
offset
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment