Skip to content

Commit

Permalink
Merge pull request #420 from puzzle/feature/418
Browse files Browse the repository at this point in the history
Revert participatory process grouping
  • Loading branch information
Kagemaru authored Mar 27, 2024
2 parents 37b5d5b + bec5f59 commit b307084
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 118 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

# We would love to do a prepend instead of what is happening here
# For whatever reason though the prepend never properly works
# Even if we include the module it doesn't get loaded
# Must be some crazy loading shenanigans
# Pry-ing into the customization class and using the following commands might be useful for future debugging:
# $ -a Decidim::ParticipatoryProcesses::ProcessFiltersCell
# $ -a DecidimZuerich::ParticipatoryProcesses::ProcessFiltersCell
Decidim::ParticipatoryProcesses::ProcessFiltersCell.class_eval do
def other_filters_with_value
@other_filters_with_value ||= [current_filter] + other_filters.select do |filter|
process_count_by_filter[filter].positive?
end
end
end

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion config/initializers/decidim_zuerich_customization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
[Decidim::ParticipatoryProcesses::Permissions, DecidimZuerich::ParticipatoryProcesses::Permissions],
[Decidim::Proposals::DiffRenderer, DecidimZuerich::Proposals::DiffRenderer],
[Decidim::Proposals::MapHelper, DecidimZuerich::Proposals::MapHelper],
[Decidim::ParticipatoryProcesses::ProcessFiltersCell, DecidimZuerich::ParticipatoryProcesses::ProcessFiltersCell],
[Decidim::ResourceLocatorPresenter, DecidimZuerich::ResourceLocatorPresenter],
[Decidim::ParticipatoryProcesses::ParticipatoryProcessHelper, DecidimZuerich::ParticipatoryProcesses::ParticipatoryProcessHelper],
[Decidim::System::RegisterOrganization, DecidimZuerich::System::RegisterOrganization],
Expand Down

0 comments on commit b307084

Please sign in to comment.