Skip to content

Commit

Permalink
feat: extend admin api to support proxy participants (#1038)
Browse files Browse the repository at this point in the history
* feat: extend admin api to support proxy participants

* image revert

* audit

* changes

* changes

* add filter

* update swagger
  • Loading branch information
kleyow authored May 31, 2024
1 parent 106e624 commit 5316df3
Show file tree
Hide file tree
Showing 14 changed files with 309 additions and 216 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ executors:
BASH_ENV: /etc/profile ## Ref: https://circleci.com/docs/env-vars/#alpine-linux
NVM_ARCH_UNOFFICIAL_OVERRIDE: x64-musl ## Ref: https://github.com/nvm-sh/nvm/issues/1102#issuecomment-550572252
docker:
- image: node:lts-alpine # Ref: https://hub.docker.com/_/node?tab=tags&page=1&name=alpine
- image: node:18-alpine3.19 # Ref: https://hub.docker.com/_/node?tab=tags&page=1&name=alpine

default-machine:
working_directory: *WORKING_DIR
Expand Down
6 changes: 4 additions & 2 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"GHSA-5854-jvxx-2cg9", // hapi-auth-basic>hapi>subtext
"GHSA-2mvq-xp48-4c77", // hapi-auth-basic>hapi>subtext
"GHSA-w5p7-h5w8-2hfq", // tap-spec>tap-out>trim
"GHSA-p9pc-299p-vxgp" // widdershins>yargs>yargs-parser
"GHSA-p9pc-299p-vxgp", // widdershins>yargs>yargs-parser
"GHSA-ghr5-ch3p-vcr6", // https://github.com/advisories/GHSA-ghr5-ch3p-vcr6
"GHSA-cgfm-xwp7-2cvr" // https://github.com/advisories/GHSA-cgfm-xwp7-2cvr
]
}
}
18 changes: 18 additions & 0 deletions migrations/950108_participantProxy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

exports.up = async (knex) => {
return await knex.schema.hasTable('participant').then(function(exists) {
if (exists) {
return knex.schema.alterTable('participant', (t) => {
t.boolean('isProxy').defaultTo(false).notNullable()

})
}
})
}

exports.down = function (knex) {
return knex.schema.alterTable('participant', (t) => {
t.dropColumn('isProxy')
})
}
Loading

0 comments on commit 5316df3

Please sign in to comment.