Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove hideMail flag from the frontend and documentation

Dombi Attila3c831661d76d
diff --git a/docs/api/apiv3/components/schemas/user_preferences_model.yml b/docs/api/apiv3/components/schemas/user_preferences_model.yml
index 0d59ee532a2..e361d424519 100644
--- a/docs/api/apiv3/components/schemas/user_preferences_model.yml
+++ b/docs/api/apiv3/components/schemas/user_preferences_model.yml
@@ -13,7 +13,6 @@ example:
method: "patch"
_type: UserPreferences
commentSortDescending: true
- hideMail: false
timeZone: "Europe/Berlin"
warnOnLeavingUnsaved: true
notifications:
diff --git a/docs/api/apiv3/paths/my_preferences.yml b/docs/api/apiv3/paths/my_preferences.yml
index 2e11f669105..606b3fa7041 100644
--- a/docs/api/apiv3/paths/my_preferences.yml
+++ b/docs/api/apiv3/paths/my_preferences.yml
@@ -19,7 +19,6 @@ get:
method: "patch"
_type: "UserPreferences"
commentSortDescending: true
- hideMail: false
timeZone: "Europe/Berlin"
warnOnLeavingUnsaved: true
notifications:
@@ -83,7 +82,6 @@ patch:
method: "patch"
_type: UserPreferences
commentSortDescending: true
- hideMail: false
timeZone: Europe/Berlin
warnOnLeavingUnsaved: true
notifications:
diff --git a/docs/api/apiv3/tags/userpreferences.yml b/docs/api/apiv3/tags/userpreferences.yml
index ad964904243..54e93e3f9e4 100644
--- a/docs/api/apiv3/tags/userpreferences.yml
+++ b/docs/api/apiv3/tags/userpreferences.yml
@@ -12,7 +12,6 @@ description: |-
| Property | Description | Type | Constraints | Supported operations |
|:----------------------:| ----------------------------------------------------------- | ---------- | ----------- | -------------------- |
| autoHidePopups | Whether to hide popups (e.g. success messages) after 5 seconds | Boolean | | READ / WRITE |
- | hideMail | Hide mail address from other users | Boolean | | READ / WRITE |
| notifications | The settings for the notifications to be received by the user | NotificationSetting | | READ / WRITE |
| timeZone | Current selected time zone | String | | READ / WRITE |
| commentSortDescending | Sort comments in descending order | Boolean | | READ / WRITE |
diff --git a/frontend/src/app/features/user-preferences/state/user-preferences.model.ts b/frontend/src/app/features/user-preferences/state/user-preferences.model.ts
index 27ec8b5c689..172a4ff16c8 100644
--- a/frontend/src/app/features/user-preferences/state/user-preferences.model.ts
+++ b/frontend/src/app/features/user-preferences/state/user-preferences.model.ts
@@ -16,7 +16,6 @@ export interface ImmediateRemindersSettings {
export interface IUserPreference {
autoHidePopups:boolean;
commentSortDescending:boolean;
- hideMail:boolean;
timeZone:string|null;
warnOnLeavingUnsaved:boolean;
workdays:number[];
diff --git a/frontend/src/app/features/user-preferences/state/user-preferences.store.ts b/frontend/src/app/features/user-preferences/state/user-preferences.store.ts
index 7d19eae5932..c5f8d658857 100644
--- a/frontend/src/app/features/user-preferences/state/user-preferences.store.ts
+++ b/frontend/src/app/features/user-preferences/state/user-preferences.store.ts
@@ -36,7 +36,6 @@ function createInitialState():IUserPreference {
return {
autoHidePopups: true,
commentSortDescending: false,
- hideMail: true,
timeZone: null,
warnOnLeavingUnsaved: true,
notifications: [],
diff --git a/spec/lib/api/v3/user_preferences/user_preference_representer_rendering_spec.rb b/spec/lib/api/v3/user_preferences/user_preference_representer_rendering_spec.rb
index 0c23e3199c3..fe56ac0aaaf 100644
--- a/spec/lib/api/v3/user_preferences/user_preference_representer_rendering_spec.rb
+++ b/spec/lib/api/v3/user_preferences/user_preference_representer_rendering_spec.rb
@@ -52,7 +52,6 @@ RSpec.describe API::V3::UserPreferences::UserPreferenceRepresenter,
subject(:generated) { representer.to_json }
- it { expect(subject).to have_json_path("hideMail") }
it { expect(subject).to have_json_path("timeZone") }
it { expect(subject).to have_json_path("commentSortDescending") }
it { expect(subject).to have_json_path("warnOnLeavingUnsaved") }