-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500er auf Prod #472
Comments
@larsUE Aus der Fehlermeldung vermute ich, dass es mit Wie soll ich damit umgehen? Soll ich mehr Zeit investieren?
|
Weitere Zeit investieren für genauere Analyse @Kagemaru |
Es scheint ein Problem mit den share tokens zu sein, da beim hinzufügen dieses Menu Items, menu.add_item :assembly_share_tokens,
I18n.t("menu.share_tokens", scope: "decidim.admin"),
decidim_admin_assemblies.assembly_share_tokens_path(current_assembly),
active: is_active_link?(decidim_admin_assemblies.assembly_share_tokens_path(current_participatory_space)),
if: allowed_to?(:read, :share_tokens, current_participatory_space: current_participatory_space) Es gibt einen ekligen Hack um dies zu umgehen: class Object
def current_assembly
@current_assembly ||= begin
model = organization_assemblies if defined?(organization_assemblies)
model ||= Decidim::Assembly
model.find_by!(
slug: params[:assembly_slug] || params[:slug]
)
end
end
end Dies setzt current_assembly quasi als globale Methode. Falls wir uns für einen Fix auf unserer Seite entscheiden, würde ich dies noch mit anderen Mitarbeitern besprechen, da ich momentan keinen besseren Weg sehe. |
Translation for @microstudi and @paarals: We are experiencing a 500 server error on the following pages: The error is as follows:
This problem occurs due to the share tokens, because when this menu item is added, menu.add_item :assembly_share_tokens,
I18n.t("menu.share_tokens", scope: "decidim.admin"),
decidim_admin_assemblies.assembly_share_tokens_path(current_assembly),
active: is_active_link?(decidim_admin_assemblies.assembly_share_tokens_path(current_participatory_space)),
if: allowed_to?(:read, :share_tokens, current_participatory_space: current_participatory_space) There would be a very hacky solution to this, which sets current_assembly as the global method. But maybe you have a better idea? class Object
def current_assembly
@current_assembly ||= begin
model = organization_assemblies if defined?(organization_assemblies)
model ||= Decidim::Assembly
model.find_by!(
slug: params[:assembly_slug] || params[:slug]
)
end
end
end |
@Kagemaru Please implement hacky solution until we have a better solution. |
Auf diesen beiden Komponenten kriegen wir einen 500er:
https://mitwirken.stadt-zuerich.ch/admin/assemblies/anmeldung/components/550/manage/
https://mitwirken.stadt-zuerich.ch/admin/assemblies/anmeldung/components/551/manage/
Allenfalls hat das einen Zusammenhang mit den Access Links.
The text was updated successfully, but these errors were encountered: