Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request eesast#149 from xiangmy21/dev
Browse files Browse the repository at this point in the history
refact: delete user table
  • Loading branch information
xiangmy21 authored Mar 10, 2024
2 parents 4890e0b + b73cc38 commit bf72314
Show file tree
Hide file tree
Showing 47 changed files with 131 additions and 356 deletions.
18 changes: 0 additions & 18 deletions metadata/actions.graphql
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
type Query {
user_by_role(
role: String!
): [user_by_role_user!]!
}

type user_by_role_user {
_id: String!
name: String!
department: String!
}

type user_by_role_users {
uuid: uuid!
realname: String!
department: String!
}

28 changes: 2 additions & 26 deletions metadata/actions.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
actions:
- name: user_by_role
definition:
kind: ""
handler: https://api.eesast.com/user/user_by_role
forward_client_headers: true
headers:
- name: x-hasura-action-secret
value_from_env: ACTION_SECRET
permissions:
- role: teacher
- role: root
- role: counselor
- role: student
actions: []
custom_types:
enums: []
input_objects: []
objects:
- name: user_by_role_user
relationships:
- field_mapping:
_id: _id
name: user
remote_table:
name: user
schema: public
source: default
type: object
- name: user_by_role_users
objects: []
scalars: []
Loading

0 comments on commit bf72314

Please sign in to comment.