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

further renaming also in the api documentation

ulferts1fe452520891
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index 0693ddc9a12..a7e99a59c2e 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -49,7 +49,7 @@ OpenProject::FeatureDecisions.add :generate_work_package_subjects,
"automatically generated work package subjects."
OpenProject::FeatureDecisions.add :stages_and_gates,
- description: "Enables the under construction feature of stages and gates."
+ description: "Enables the under construction feature of phases."
OpenProject::FeatureDecisions.add :oidc_token_exchange,
description: "Enables the under construction OAuth2 token exchange, allowing " \
diff --git a/docs/api/apiv3/paths/projects.yml b/docs/api/apiv3/paths/projects.yml
index 6196ad98000..947f8bb63ae 100644
--- a/docs/api/apiv3/paths/projects.yml
+++ b/docs/api/apiv3/paths/projects.yml
@@ -26,7 +26,7 @@ get:
+ created_at: based on the time the project was created
+ id: based on projects' id.
+ latest_activity_at: based on the time the last activity was registered on a project.
- + lcsd_any: based on the project lifecycle steps active in a project.
+ + project_phase_any: based on the project phases active in a project.
+ name_and_identifier: based on both the name and the identifier.
+ parent_id: filters projects by their parent.
+ principal: based on members of the project.
@@ -40,8 +40,9 @@ get:
Each defined lifecycle step will also define a filter in this list endpoint. Given that the elements are not
static but rather dynamically created on each OpenProject instance, a list cannot be provided. Those filters follow the schema:
- + lcsd_gate_[id]: a filter on project lifecycle gates active in a project. The id is the id of the gate to query for.
- + lcsd_stage_[id]: a filter on project lifecycle stage active in a project. The id is the id of the stage to query for.
+ + project_start_gate_[id]: a filter on a project phase's start gate active in a project. The id is the id of the phase the gate belongs to.
+ + project_finish_gate_[id]: a filter on a project phase's finish gate active in a project. The id is the id of the phase the gate belongs to.
+ + project_phase_[id]: a filter on a project phase active in a project. The id is the id of the phase queried for.
example: '[{ "ancestor": { "operator": "=", "values": ["1"] }" }]'
- name: sortBy
schema:
diff --git a/spec/features/projects/life_cycle/overview_page/dialog/permission_spec.rb b/spec/features/projects/life_cycle/overview_page/dialog/permission_spec.rb
index 6641794b5ac..982c83ea190 100644
--- a/spec/features/projects/life_cycle/overview_page/dialog/permission_spec.rb
+++ b/spec/features/projects/life_cycle/overview_page/dialog/permission_spec.rb
@@ -29,7 +29,7 @@
require "spec_helper"
require_relative "../shared_context"
-RSpec.describe "Edit project stages and gates on project overview page", :js, with_flag: { stages_and_gates: true } do
+RSpec.describe "Edit project phases on project overview page", :js, with_flag: { stages_and_gates: true } do
include_context "with seeded projects and phases"
shared_let(:user) { create(:user) }
let(:overview_page) { Pages::Projects::Show.new(project) }
@@ -44,7 +44,7 @@ RSpec.describe "Edit project stages and gates on project overview page", :js, wi
overview_page.visit_page
end
- describe "with insufficient View Stages and Gates permissions" do
+ describe "with insufficient View phases permissions" do
let(:permissions) { %i[view_project] }
it "does not show the attributes sidebar" do
@@ -52,12 +52,12 @@ RSpec.describe "Edit project stages and gates on project overview page", :js, wi
end
end
- describe "with sufficient View Stages and Gates permissions" do
+ describe "with sufficient View phases permissions" do
let(:permissions) { %i[view_project view_project_phases] }
it "shows the attributes sidebar" do
overview_page.within_life_cycles_sidebar do
- expect(page).to have_text("Project lifecycle")
+ expect(page).to have_text("Project life cycle")
end
end
end
@@ -72,7 +72,7 @@ RSpec.describe "Edit project stages and gates on project overview page", :js, wi
end
end
- describe "with sufficient Edit Stages and Gates permissions" do
+ describe "with sufficient Edit phases permissions" do
let(:permissions) { %i[view_project view_project_phases edit_project edit_project_phases] }
it "shows the edit buttons" do
diff --git a/spec/features/projects/life_cycle/overview_page/dialog/update_spec.rb b/spec/features/projects/life_cycle/overview_page/dialog/update_spec.rb
index 469b66b3c43..b41cf2793a7 100644
--- a/spec/features/projects/life_cycle/overview_page/dialog/update_spec.rb
+++ b/spec/features/projects/life_cycle/overview_page/dialog/update_spec.rb
@@ -31,7 +31,7 @@
require "spec_helper"
require_relative "../shared_context"
-RSpec.describe "Edit project stages and gates on project overview page", :js, with_flag: { stages_and_gates: true } do
+RSpec.describe "Edit project phases on project overview page", :js, with_flag: { stages_and_gates: true } do
include_context "with seeded projects and phases"
shared_let(:overview) { create :overview, project: }
diff --git a/spec/features/projects/life_cycle/overview_page/sidebar_spec.rb b/spec/features/projects/life_cycle/overview_page/sidebar_spec.rb
index 469e7aa6b8e..5c47083dc77 100644
--- a/spec/features/projects/life_cycle/overview_page/sidebar_spec.rb
+++ b/spec/features/projects/life_cycle/overview_page/sidebar_spec.rb
@@ -43,14 +43,14 @@ RSpec.describe "Show project life cycles on project overview page", :js, with_fl
overview_page.expect_visible_sidebar
end
- context "when stages and gates are disabled", with_flag: { stages_and_gates: false } do
+ context "when phases are disabled", with_flag: { stages_and_gates: false } do
it "does not show the sidebar" do
overview_page.visit_page
overview_page.expect_no_visible_sidebar
end
end
- context "when all stages and gates are disabled for this project" do
+ context "when all phases are disabled for this project" do
before do
project_life_cycles.each { |p| p.toggle!(:active) }
end
@@ -62,7 +62,7 @@ RSpec.describe "Show project life cycles on project overview page", :js, with_fl
end
describe "with correct order and scoping" do
- it "shows the project stages and gates in the correct order" do
+ it "shows the project phases in the correct order" do
overview_page.visit_page
overview_page.within_life_cycles_sidebar do
@@ -92,7 +92,7 @@ RSpec.describe "Show project life cycles on project overview page", :js, with_fl
end
end
- it "does not show stages and gates not enabled for this project in a sidebar" do
+ it "does not show phases not enabled for this project in a sidebar" do
life_cycle_executing.toggle!(:active)
overview_page.visit_page
diff --git a/spec/features/projects/lists/order_spec.rb b/spec/features/projects/lists/order_spec.rb
index 3e8a9ec86c3..7bc83a7d6a3 100644
--- a/spec/features/projects/lists/order_spec.rb
+++ b/spec/features/projects/lists/order_spec.rb
@@ -414,7 +414,7 @@ RSpec.describe "Projects lists ordering", :js, with_settings: { login_required?:
end
end
- context "without permission to view stages and gates" do
+ context "without permission to view phases" do
before do
login_as(user)
visit projects_path