Skip to content

Commit

Permalink
remove PROJECTROLES_HIDE_APP_LINKS support (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Mar 5, 2024
1 parent 46cb166 commit a3eb485
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Removed
- **General**
- SAML support (#1368)
- Python v3.8 support (#1382)
- **Projectroles**
- ``PROJECTROLES_HIDE_APP_LINKS`` setting (#1143)


v0.13.4 (2024-02-16)
Expand Down
2 changes: 0 additions & 2 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,6 @@ def set_logging(level=None):
PROJECTROLES_HIDE_PROJECT_APPS = env.list(
'PROJECTROLES_HIDE_PROJECT_APPS', None, []
)
# NOTE: This setting has been deprecated and will be removed in v0.14
PROJECTROLES_HIDE_APP_LINKS = env.list('PROJECTROLES_HIDE_APP_LINKS', None, [])

# Set limit for delegate roles per project (if 0, no limit is applied)
PROJECTROLES_DELEGATE_LIMIT = env.int('PROJECTROLES_DELEGATE_LIMIT', 1)
Expand Down
3 changes: 0 additions & 3 deletions docs/source/app_projectroles_settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ The following projectroles settings are **optional**:
app views and URLs are still accessible via other links or knowing the URL.
The names should correspond to the ``name`` property in project app plugins
(list)
``PROJECTROLES_HIDE_APP_LINKS``
**DEPRECATED**, use ``PROJECTROLES_HIDE_PROJECT_APPS`` instead. This will be
removed in v1.0
``PROJECTROLES_DELEGATE_LIMIT``
The number of delegate roles allowed per project. The amount is limited to 1
per project if not set, unlimited if set to 0. Will be ignored for remote
Expand Down
6 changes: 6 additions & 0 deletions docs/source/major_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ needs to use SAML on a SODAR Core based site, we are happy to review pull
requests to re-introduce it. Please note the implementation has to support
Django v4.2+.

PROJECTROLES_HIDE_APP_LINKS Removed
-----------------------------------

The ``PROJECTROLES_HIDE_APP_LINKS`` Django setting, which was deprecated in
v0.13, has been removed. Use ``PROJECTROLES_HIDE_PROJECT_APPS`` instead.


v0.13.4 (2024-02-16)
********************
Expand Down
3 changes: 0 additions & 3 deletions projectroles/templatetags/projectroles_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ def is_app_visible(plugin, project, user):
app_hidden = False
if plugin.name in getattr(settings, 'PROJECTROLES_HIDE_PROJECT_APPS', []):
app_hidden = True
# TODO: Remove this in SODAR Core v1.0 (see issue #1143)
elif plugin.name in getattr(settings, 'PROJECTROLES_HIDE_APP_LINKS', []):
app_hidden = True
if (
can_view_app
and not app_hidden
Expand Down
1 change: 0 additions & 1 deletion siteinfo/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
'PROJECTROLES_ENABLE_PROFILING',
'PROJECTROLES_ENABLE_SEARCH',
'PROJECTROLES_HELP_HIGHLIGHT_DAYS',
'PROJECTROLES_HIDE_APP_LINKS', # TODO: Remove in v1.0 (see issue #1143)
'PROJECTROLES_HIDE_PROJECT_APPS',
'PROJECTROLES_INLINE_HEAD_INCLUDE',
'PROJECTROLES_INVITE_EXPIRY_DAYS',
Expand Down

0 comments on commit a3eb485

Please sign in to comment.