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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove content API
Oliver Güntherc139f93e70d3
diff --git a/db/migrate/20210615150558_aggregate_journals.rb b/db/migrate/20210615150558_aggregate_journals.rbindex 07dc557c963..769bcd656c6 100644--- a/db/migrate/20210615150558_aggregate_journals.rb+++ b/db/migrate/20210615150558_aggregate_journals.rb@@ -32,8 +32,9 @@ require_relative "migration_utils/utils"class AggregateJournals < ActiveRecord::Migration[6.1]include ::Migration::Utils- # Class has been removed by now+ # Classes have been removed by nowclass WikiContent < ApplicationRecord; end+ class MeetingContent < ApplicationRecord; end# Class has been changed in the meantime.# It received a status enum which's column does not yet exist when this migration runs.diff --git a/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb b/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rbindex 4813568e815..66dc5bdbbb6 100644--- a/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb+++ b/modules/meeting/lib/api/v3/attachments/attachments_by_meeting_content_api.rb@@ -32,23 +32,18 @@ module APImodule Attachmentsclass AttachmentsByMeetingContentAPI < ::API::OpenProjectAPIresources :attachments do- helpers API::V3::Attachments::AttachmentsByContainerAPI::Helpers-- helpers do- def container- meeting_content- end-- def get_attachment_self_path- api_v3_paths.attachments_by_meeting_content container.id- end+ get do+ status :goneend- get &API::V3::Attachments::AttachmentsByContainerAPI.read- post &API::V3::Attachments::AttachmentsByContainerAPI.create+ post do+ status :gone+ endnamespace :prepare do- post &API::V3::Attachments::AttachmentsByContainerAPI.prepare+ post do+ status :gone+ endendendenddiff --git a/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb b/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rbindex e46c74b1180..1d74caadca2 100644--- a/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb+++ b/modules/meeting/lib/api/v3/meetings/meeting_contents_api.rb@@ -32,20 +32,10 @@ module APImodule Meetingsclass MeetingContentsAPI < ::API::OpenProjectAPIresources :meeting_contents do- helpers do- def meeting_content- MeetingContent.find params[:id]- end- end-route_param :id doget do- ::API::V3::MeetingContents::MeetingContentRepresenter.new(- meeting_content, current_user:, embed_links: true- )+ status :goneend-- mount ::API::V3::Attachments::AttachmentsByMeetingContentAPIendendend