Skip to content
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

2021-05-07-01 #6185

Merged
merged 9 commits into from
May 7, 2021
Merged

2021-05-07-01 #6185

merged 9 commits into from
May 7, 2021

Conversation

LeSim
Copy link
Member

@LeSim LeSim commented May 7, 2021

Améliorations et correctifs

Technique

  • SuperAdmin : correction de l'affichage de la page /manager/dossiers
  • Suppression des tâches de déploiement after_party les plus anciennes (tasks: remove older after_party tasks #6177)
  • Corrige une configuration dans le smtp de dev
  • mise à jour d'administrate

kemenaran and others added 9 commits May 6, 2021 14:38
According to Rails i18n guide, enum values should be localized
as `<model>/<enum>`, not as sub-values to the attribute.

This fixes an exception in administrate when displaying a Dossier
in the Manager.

Note: we need to change the way GraphQL attributes are generated, because
`AASM::Core::State#display_name` doesn’t honor the `model/attribute.value`
convention (and instead tries to localize as `model.attribute/value`).
So instead we lookup the localized name using ActiveRecord.
In the previous commit, we cleaned up the localization of the
Dossier.state enum. This prevented administrate from crashing, but now
the dossier enum are no longer localized in the Manager.

By using a `Field::Enum` type, we instruct the administrate plugin
to look up our localized name for the Dossier state enum.
SuperAdmin : correction de l'affichage de la page `/manager/dossiers`
Suppression des tâches de déploiement `after_party` les plus anciennes (#6177)
Use explicit name to avoid unknown constant errors
@LeSim LeSim merged commit 03acf89 into production May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants