Skip to content

Commit

Permalink
Release OpenProject 12.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Feb 23, 2023
2 parents 472fb4b + d528775 commit a232d4e
Show file tree
Hide file tree
Showing 23 changed files with 191 additions and 80 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/eslint-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: opf/action-eslint@v2
- uses: actions/setup-node@v3
with:
node-version: '18.13'
cache: npm
cache-dependency-path: frontend/package-lock.json
- uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-check
workdir: 'frontend/'
eslint_flags: 'src/'
8 changes: 1 addition & 7 deletions app/controllers/work_packages/bulk_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def destroy
def setup_edit
@available_statuses = @projects.map { |p| Workflow.available_statuses(p) }.inject(&:&)
@custom_fields = @projects.map(&:all_work_package_custom_fields).inject(&:&)
@assignables = @responsibles = possible_assignees
@assignables = @responsibles = Principal.possible_assignee(@projects)
@types = @projects.map(&:types).inject(&:&)
end

Expand All @@ -102,12 +102,6 @@ def destroy_work_packages(work_packages)
end
end

def possible_assignees
@projects.inject(Principal.all) do |scope, project|
scope.where(id: Principal.possible_assignee(project))
end
end

def attributes_for_update
return {} unless params.has_key? :work_package

Expand Down
4 changes: 2 additions & 2 deletions app/models/journal/notification_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def with_first(send_notifications)
end

def log_warning(send_notifications)
return if active == send_notifications
return if active? == send_notifications

message = <<~MSG
Ignoring setting journal notifications to '#{send_notifications}' as a parent block already set it to #{active}"
Ignoring setting journal notifications to '#{send_notifications}' as a parent block already set it to #{active?}"
MSG
Rails.logger.debug message
end
Expand Down
15 changes: 10 additions & 5 deletions app/models/principals/scopes/possible_assignee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ module PossibleAssignee
# * Group
# User instances need to be non locked (status).
# Only principals with a role marked as assignable in the project are returned.
# @project [Project] The project for which eligible candidates are to be searched
# If more than one project is given, the principals need to be assignable in all of the projects (intersection).
# @project [Project, [Project]] The project for which eligible candidates are to be searched
# @return [ActiveRecord::Relation] A scope of eligible candidates
def possible_assignee(project)
not_locked
.includes(:members)
.references(:members)
.merge(Member.assignable.of(project))
where(
id: Member
.assignable
.of(project)
.group('user_id')
.having(["COUNT(DISTINCT(project_id, user_id)) = ?", Array(project).count])
.select('user_id')
)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/services/base_services/write.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def instance_class
end

def set_attributes_params(params)
params
params.except(:send_notifications)
end
end
end
6 changes: 5 additions & 1 deletion app/services/groups/add_users_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def persist(call)
def after_perform(call)
Groups::CreateInheritedRolesService
.new(model, current_user: user, contract_class:)
.call(user_ids: params[:ids], message: params[:message])
.call(
user_ids: params[:ids],
message: params[:message],
send_notifications: params.fetch(:send_notifications, true)
)

call
end
Expand Down
2 changes: 1 addition & 1 deletion app/services/groups/update_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def after_perform(call)
if new_user_ids.any?
db_call = ::Groups::AddUsersService
.new(call.result, current_user: user)
.call(ids: new_user_ids)
.call(ids: new_user_ids, send_notifications: params.fetch(:send_notifications, true))

call.add_dependent!(db_call)
end
Expand Down
40 changes: 20 additions & 20 deletions config/locales/crowdin/js-ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ ru:
delete_confirmation: |
Вы уверены, что хотите удалить этот файл? Это действие необратимо.
draggable_hint: |
Перетащите в поле редактора для вставки изображения или прикрепления ссылки. Закрытые поля будут открыты в течение перетаскивания.
Перенесите в поле редактора для вставки изображения или прикрепления ссылки. Закрытые поля будут открыты в процессе переноса.
autocomplete_select:
placeholder:
multi: "Добавить \"%{name}\""
single: "Выбрать \"%{name}\""
single: "Выберите \"%{name}\""
remove: "Удалить %{name}"
active: "Активировать %{label} %{name}"
backup:
Expand All @@ -43,7 +43,7 @@ ru:
Здесь вы можете запустить резервное копирование. Продолжительность процесса зависит от объема данных (особенно вложений). О завершении процесса вам будет сообщено письмом.
note: >
Новая резервная копия создается поверх предыдущий. Число создаваемых резервных копий в день ограничено.
last_backup: Последняя резервное копирование
last_backup: Последнее резервное копирование
last_backup_from: Последняя резервная копия от
title: Резервное копирование OpenProject
options: Параметры
Expand All @@ -56,7 +56,7 @@ ru:
button_add_watcher: "Добавить наблюдателя"
button_add: "Добавить"
button_back: "Назад"
button_back_to_list_view: "Назад к списку"
button_back_to_list_view: "Вернуться к просмотру списка"
button_cancel: "Отмена"
button_close: "Закрыть"
button_change_project: "Изменить проект"
Expand All @@ -72,7 +72,7 @@ ru:
button_details_view: "Детальный просмотр"
button_duplicate: "Дублировать"
button_edit: "Править"
button_filter: "Фильтровать"
button_filter: "Фильтр"
button_collapse_all: "Свернуть все"
button_expand_all: "Развернуть все"
button_advanced_filter: "Расширенный фильтр"
Expand All @@ -85,10 +85,10 @@ ru:
button_open_fullscreen: "Открыть полноэкранный просмотр"
button_show_cards: "В виде карточек"
button_show_list: "В виде списка"
button_show_table: "Показать вид таблицы"
button_show_table: "В виде таблицы"
button_show_gantt: "Показать в виде диаграммы Ганта"
button_show_fullscreen: "Показать полноэкранный режим"
button_more_actions: "Другие действия"
button_show_fullscreen: "Полноэкранный просмотр"
button_more_actions: "Больше действий"
button_quote: "Цитировать"
button_save: "Сохранить"
button_settings: "Настройки"
Expand Down Expand Up @@ -147,7 +147,7 @@ ru:
button: 'Ссылки на дочерние страницы'
include_parent: 'Включить родителя'
text: '[Placeholder] Ссылки на дочерние страницы'
page: 'Вики-страница'
page: 'Wiki страница'
this_page: 'эта страница'
hint: |
Оставьте это поле пустым, чтобы перечислить все дочерние страницы текущей страницы. Если вы хотите описать другую страницу, укажите ее заголовок или идентифицирующую строку.
Expand All @@ -162,12 +162,12 @@ ru:
toc: 'Содержание'
toolbar_help: 'Кликните для выбора виджета и показа панели инструментов. Кликните дважды для редактирования виджета'
wiki_page_include:
button: 'Включить содержание другой вики страницы'
text: '[Placeholder] включая вики страницы'
page: 'Wiki-страница'
button: 'Включить содержание другой wiki страницы'
text: '[Placeholder] включенная wiki страница'
page: 'Wiki страница'
not_set: '(Страница пока не установлена)'
hint: |
Включите содержание другой вики-страницы, указав её название или строку. Вы можете включить вики-страницы из другого проекта, разделив их двоеточием, как в следующем примере.
Включите содержание другой wiki страницы, указав её название или строку. Вы можете включить wiki страницы из другого проекта, разделив их двоеточием, как в следующем примере.
work_package_button:
button: 'Вставить кнопку создания пакета работ'
type: 'Тип пакета работ'
Expand Down Expand Up @@ -508,7 +508,7 @@ ru:
quick_add_button: 'Нажмите на значок плюс (+) в заголовке навигации, чтобы <b>создать новый проект</b> или <b>пригласить коллег</b>.'
sidebar_arrow: "Используйте стрелку возврата в левом верхнем углу, чтобы вернуться в <b>главное меню</b> проекта."
welcome: 'Совершите вводный трехминутный тур для знакомства с наиболее <b>важными особенностями</b>. <br>Рекомендуем пройти все шаги до конца. Пройти вводный тур повторно можно в любое время.'
wiki: 'В пределах <b>вики</b> возможно документирование и обмен знаниями в вашей команде.'
wiki: 'В пределах <b>wiki</b> возможно документирование и обмен знаниями в вашей команде.'
backlogs:
overview: "Управляйте своей работой в представлении <b>backlogs</b>."
sprints: "Справа у вас есть бэклог продукта и бэклог ошибок, слева у вас есть соответствующие спринты. Здесь вы можете создать <b>эпики, пользовательские истории и ошибки</b>, приоритизировать через перетаскивание и добавить их в спринт."
Expand Down Expand Up @@ -552,10 +552,10 @@ ru:
date_alerts:
milestone_date: 'Дата контрольной точки'
overdue: 'Просрочено'
overdue_since: 'с %{difference_in_days}'
overdue_since: 'на %{difference_in_days}'
property_today: 'сегодня'
property_is: 'находится в %{difference_in_days}'
property_was: 'был %{difference_in_days} назад'
property_was: 'была %{difference_in_days} назад'
property_is_deleted: 'удалено'
upsale:
title: 'Дата оповещения'
Expand Down Expand Up @@ -690,8 +690,8 @@ ru:
news_commented: 'Комментарий к новости'
document_added: 'Добавлены документы'
forum_messages: 'Новые сообщения форума'
wiki_page_added: 'Wiki-страница добавлена'
wiki_page_updated: 'Wiki-страница обновлена'
wiki_page_added: 'Wiki страница добавлена'
wiki_page_updated: 'Wiki страница обновлена'
membership_added: 'Членство добавлено'
membership_updated: 'Членство обновлено'
title: 'Почтовые напоминания'
Expand Down Expand Up @@ -859,7 +859,7 @@ ru:
ee_only: 'Дополнение корпоративной версии'
wiki_formatting:
strong: "Жирный"
italic: "Наклонный"
italic: "Курсив"
underline: "Подчёркнутый"
deleted: "Удалено"
code: "Встроенный код"
Expand All @@ -871,7 +871,7 @@ ru:
quote: "Цитата"
unquote: "Убрать цитирование"
preformatted_text: "Предварительно отформатированный текст"
wiki_link: "Ссылка на вики-страницу"
wiki_link: "Ссылка на wiki страницу"
image: "Изображение"
work_packages:
bulk_actions:
Expand Down
4 changes: 2 additions & 2 deletions config/locales/crowdin/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ ru:
reset: "Восстановить значения по умолчанию"
type_color_text: |
Выбранный цвет выделяет разные типы
в диаграммах Ганта или таблицах рабочих пакетов. Поэтому рекомендуется использовать насыщенный цвет.
в диаграммах Ганта или таблицах пакетов работ. Поэтому рекомендуется использовать насыщенный цвет.
versions:
overview:
no_results_title_text: В настоящее время пакетов работ для этой версии нет.
Expand Down Expand Up @@ -2985,7 +2985,7 @@ ru:
<b>Определить рабочие дни недели</b><br/> Нерабочие дни пропускаются при планировании пакетов работ и исключаются при расчете продолжительности. Это можно переопределить на уровне рабочих пакетов.
change_button: "Изменить рабочие дни"
warning: >
Изменение дней недели, считающихся рабочими днями, может повлиять на начало и завершение всех пакетов работ во всех проектах в данном случае.
Изменение дней недели, считающихся рабочими днями, может повлиять на начало и завершение всех пакетов работ во всех проектах в данной системе.
journal_note:
changed: _**Рабочие дни** изменены (%{changes})._
days:
Expand Down
2 changes: 1 addition & 1 deletion config/locales/crowdin/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ tr:
base: "Genel Hata:"
blocks_ids: "Engellenen iş paketlerinin ID'leri"
category: "Kategori"
comment: "Yorum"
comment: "Yorumlar"
comments: "Yorum"
content: "İçerik"
color: "Renk"
Expand Down
17 changes: 4 additions & 13 deletions docs/development/accessibility-checklist/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Accessibility checklist

Web sites should be:
For every new OpenProject release we need to ensure accessibility for all newly developed features. We strive to comply to the [Web Content Accessibility Guidelines (WCAG) 2.1](https://www.w3.org/TR/WCAG21/).

* Perceivable
* Operable
* Understandable
* Robust
> Web Content Accessibility Guidelines (WCAG) 2.1 covers a wide range of recommendations for making Web content more accessible. Following these guidelines will make content more accessible to a wider range of people with disabilities, including accommodations for blindness and low vision, deafness and hearing loss, limited movement, speech disabilities, photosensitivity, and combinations of these, and some accommodation for learning disabilities and cognitive limitations; but will not address every user need for people with these disabilities. These guidelines address accessibility of web content on desktops, laptops, tablets, and mobile devices. Following these guidelines will also often make Web content more usable to users in general.
To help development teams prioritize accessibility implementation and remediation efforts we strive for Level AA (indicates overall accessibility and removal of significant barriers to accessing content).

## 1. Perceivable - Using senses for web content (sight, hearing and/or touch)

Expand Down Expand Up @@ -69,11 +68,3 @@ Web sites should be:

## 4. Robust - Content can be used reliably by a wide variety of user agents, including assistive technologies
* Markup is used in a way that facilitates accessibility. This includes following the HTML/XHTML specifications and using forms, form labels, frame titles, etc. appropriately.

## 5. Additional information
* [WCAG checklist](https://webaim.org/standards/wcag/checklist) (English)
* [BITV checklist](https://www.barrierefreies-webdesign.de/richtlinien/verwaltung/bitv-2.0.html) (German)

Screen reader used for accessibility tests (DTAG):

* JAWS 18 (with Chrome (latest version), German language settings, activated accessibility mode)
Loading

0 comments on commit a232d4e

Please sign in to comment.