-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TDB: Fixe le filtre des indicateurs par plan action
Fixe en supprimant la vérification de droits sur les axes liés aux indicateurs, qui est déjà faite sur la vue `indicateur_definitions`.
- Loading branch information
Showing
12 changed files
with
600 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- Deploy tet:indicateur/detail to pg | ||
|
||
BEGIN; | ||
|
||
create or replace view indicateur_definitions | ||
as | ||
select c.id as collectivite_id, | ||
definition.id as indicateur_id, | ||
null::integer as indicateur_perso_id, | ||
definition.nom as nom, | ||
definition.description, | ||
definition.unite | ||
from collectivite c | ||
cross join indicateur_definition definition | ||
where is_authenticated() | ||
union all | ||
select definition.collectivite_id as collectivite_id, | ||
null::indicateur_id as indicateur_id, | ||
definition.id as indicateur_perso_id, | ||
definition.titre, | ||
definition.description, | ||
definition.unite | ||
from indicateur_personnalise_definition definition | ||
where can_read_acces_restreint(collectivite_id); | ||
comment on view indicateur_definitions | ||
is 'Les définitions des indicateurs prédéfinis et personnalisés'; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.