-
Notifications
You must be signed in to change notification settings - Fork 91
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
ETQ admin j'ai une nouvelle interface pour les options de l'instruction #10935
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10935 +/- ##
==========================================
- Coverage 84.47% 77.71% -6.77%
==========================================
Files 1164 1164
Lines 25698 26381 +683
Branches 4862 4715 -147
==========================================
- Hits 21708 20501 -1207
- Misses 3990 5880 +1890 ☔ View full report in Codecov by Sentry. |
363f5a6
to
3187f81
Compare
3187f81
to
01f0063
Compare
app/models/logic/champ_value.rb
Outdated
MANAGED_TYPE_DE_CHAMP_BY_CATEGORY = TypeDeChamp::TYPE_DE_CHAMP_TO_CATEGORIE | ||
.filter { |k, _| k.in?(MANAGED_TYPE_DE_CHAMP) } | ||
.map { |k, v| { v => k } } | ||
.flat_map(&:to_a) | ||
.group_by(&:first) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
proposition
MANAGED_TYPE_DE_CHAMP_BY_CATEGORY = TypeDeChamp::TYPE_DE_CHAMP_TO_CATEGORIE | |
.filter { |k, _| k.in?(MANAGED_TYPE_DE_CHAMP) } | |
.map { |k, v| { v => k } } | |
.flat_map(&:to_a) | |
.group_by(&:first) | |
MANAGED_TYPE_DE_CHAMP_BY_CATEGORY = MANAGED_TYPE_DE_CHAMP.keys.map(&:to_sym) | |
.each_with_object(Hash.new { |h,k| h[k] = [] }) do |type, h| | |
h[TypeDeChamp::TYPE_DE_CHAMP_TO_CATEGORIE[type]] << type | |
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oui très bien ! je fais la modif
934662e
to
053910c
Compare
053910c
to
d979bf6
Compare
Correspond à une partie de #10766
Dans cette PR :
Routage inactif et pas de champ routable
AVANT
APRÈS
Routage inactif et champ routable
AVANT
APRÈS
Routage actif
AVANT
APRÈS