Skip to content

Commit

Permalink
Merge pull request #185 from novaforgood/Max/email-whitelist
Browse files Browse the repository at this point in the history
Add multiple email domains
  • Loading branch information
legitmaxwu committed Sep 21, 2023
2 parents f810c2e + 30d0d15 commit 4d9458c
Show file tree
Hide file tree
Showing 10 changed files with 470 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ select_permissions:
permission:
columns:
- deleted
- domainWhitelists
- domainWhitelist
- name
- slug
Expand All @@ -19,4 +20,5 @@ select_permissions:
- slug
- deleted
- domainWhitelist
- domainWhitelists
filter: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- DROP VIEW "public"."public_space";
--
-- CREATE OR REPLACE VIEW "public"."public_space" AS
-- SELECT space.id,
-- space.name,
-- space.slug,
-- space.deleted,
-- space.attributes->>'domainWhitelist' as "domainWhitelist",
-- space.attributes->'domainWhitelists' as "domainWhitelists"
-- FROM space;
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DROP VIEW "public"."public_space";

CREATE OR REPLACE VIEW "public"."public_space" AS
SELECT space.id,
space.name,
space.slug,
space.deleted,
space.attributes->>'domainWhitelist' as "domainWhitelist",
space.attributes->'domainWhitelists' as "domainWhitelists"
FROM space;
1 change: 1 addition & 0 deletions mobile/src/lib/gql/from-shared/hasura.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ query PublicSpaceBySlug($slug: String!) {
id
name
domainWhitelist
domainWhitelists
slug
}
}
1 change: 1 addition & 0 deletions shared/graphql/hasura.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ query PublicSpaceBySlug($slug: String!) {
id
name
domainWhitelist
domainWhitelists
slug
}
}
Loading

0 comments on commit 4d9458c

Please sign in to comment.