dan13ram
b0ab6f1e2d
updated backend for brightId ( #362 )
...
* updated backend for brightId
* updated schema
* removed unwanted console logs
* made brightId context constant
2021-03-01 12:06:52 +05:30
Pacien Boisson
d094e1c4ba
Quest create handlers ( #340 )
...
* create quest handler
* Updating action schema and removing backend-only insert permissions
* Better handle auth bearer token
* Basic tests for creating quests
* Check if player has > 100 pSEED to allow creating a quest
* move quests actions into its own router
* create quest completion
* updateCompletion handler
* update types
* Improving handler input types
* Improve types and logic
* Removing types file and using autogenerated ones
* Reject other submissions when accepting a unique quest completion
* Fix linting errors
* Fix CreateQuestCompletionInput maybe
* error messages
* Puttin pSEED contractnaddress in config file
Co-authored-by: Hammad Jutt <jutt@ualberta.ca >
2021-02-22 12:58:31 +04:00
Pacien Boisson
8e461d5b5b
removing backend-only permissions and changing permissions for quest_completion updates
2021-02-18 21:00:43 -07:00
Pacien Boisson
0054ed6e3b
Fix repetition default value
2021-02-18 21:00:43 -07:00
Pacien Boisson
2bd0f12dcb
Fixing down migration
2021-02-18 21:00:43 -07:00
Pacien Boisson
bba8a7fd5d
Adding id field in quest_completion
2021-02-18 21:00:43 -07:00
Pacien Boisson
c0cb56be0a
change quest repetition to PERSONAL, RECURRING, UNIQUE
2021-02-18 21:00:43 -07:00
Pacien Boisson
dac85d32db
Use timestamptz instead of date
2021-02-18 21:00:43 -07:00
Pacien Boisson
ab6137ad0b
Permissions
2021-02-18 21:00:43 -07:00
Pacien Boisson
40118f6d75
Status defaults
2021-02-18 21:00:43 -07:00
Pacien Boisson
231ba8d479
Tracks
2021-02-18 21:00:43 -07:00
Pacien Boisson
f9f5a05b6a
Squash migrations
2021-02-18 21:00:43 -07:00
Pacien Boisson
a439bb44e1
Quest models
2021-02-18 21:00:43 -07:00
Hammad Jutt
b20c1fea27
Remove unused codegen stuff and update Hasura to latest version ( #314 )
2021-01-29 13:02:33 -07:00
Hammad Jutt
0dabebbe04
Add case in SC migration script where user doesnt already have a SC identityID ( #296 )
2021-01-21 20:05:49 -07:00
Alec LaLonde
5534ff1a45
Renamed player columns to be consistent snake_case ( #262 )
2021-01-06 22:08:58 -07:00
Alec LaLonde
c4a2b38484
Renamed table names to be consistent snake_case ( #255 )
2021-01-04 23:18:29 -07:00
Hammad Jutt
9bf127bfbd
Add permissions to select guilds
2020-12-20 01:14:21 -07:00
Hammad Jutt
7cefb64cbe
Add guildname field to uniquely identify guilds with friendly id
...
basically guild version of username
2020-12-20 01:14:21 -07:00
Hammad Jutt
6c44896b27
Squash Migrations for updating guild table
2020-12-19 20:19:12 -07:00
Pacien Boisson
0b45267732
Added some relationships:
...
- GuildType => Guilds
- guild_account > AccountType, Guild
2020-12-19 20:19:12 -07:00
Hammad Jutt
2b61060369
Setup Guilds table
2020-12-19 20:19:12 -07:00
Hammad Jutt
8f4db81181
Create Player Guilds Table
2020-12-19 20:19:12 -07:00
Alec LaLonde
63a357c498
Feature/add timezone backend ( #230 )
...
* Added tz column
* Updated hasura permissions on new table
2020-12-19 17:54:32 -07:00
Hammad Jutt
63ab1cd0ea
Setup Player Skills and complete setup flow ( #161 )
2020-10-16 11:04:22 -06:00
Hammad Jutt
4e1b434cce
Setup Mutations on web app ( #158 )
...
* create useSetupFlow hook
* Add availability hours and fix permissions in Hasura
* Implement mutation for About You section of profile setup
2020-10-16 00:11:07 -06:00
Hammad Jutt
1950a67bac
Setup PlayerTypes in backend ( #157 )
2020-10-15 19:02:08 -06:00
Hammad Jutt
91b94c48fe
Implement User Auth on Web ( #145 )
...
* Create "me" view for logged in user
* Implement user auth on web
* Fix type errors
* Setup static regeneration
* Disable next export
* Address PR feedback
2020-10-11 11:33:16 -06:00
Hammad Jutt
31f80171e2
Update skills and simplify skill categories ( #144 )
2020-10-11 00:39:20 -06:00
Hammad Jutt
de71feadde
Update backend to use enum tables + fix migration trigger ( #141 )
...
* Setup prettier-ignore and add more instructions on running backend
* Dont throw error when updating verified accounts
* Migrate account-type to use tables instead of native enum
* Migrate enneagram_type to use table instead of native enum
* Update schema and front end for new enum tables
* Fix type errors
2020-10-09 22:16:15 -06:00
Hammad Jutt
ab8782cf28
Fix handler for SourceCred migration ( #108 )
...
Was breaking before due to unique key conflicts because sourceCredIdentity IDs have potential to change around.
2020-09-06 18:59:48 -06:00
Hammad Jutt
6a569429d9
Remove incorrect migration
2020-08-26 02:52:05 -06:00
Hammad Jutt
025d612502
Create migration to add skills
2020-08-26 00:29:27 -06:00
Hammad Jutt
9cc01623d8
Add skill categories enum
2020-08-26 00:29:27 -06:00
Hammad Jutt
13ab1eef2f
Setup Trigger to fetch verified accounts from 3box when ETH address gets updated or user gets inserted
2020-08-21 23:04:26 -06:00
Hammad Jutt
caca26b1ce
Add Remote Schema for DAOHaus / Moloch Dao memberships
...
Uses the ethereum address of a specific player to fetch the Moloch DAOs that player is a member of
2020-08-21 10:57:31 -06:00
Hammad Jutt
a44fa49cfd
Remove constraint on Account, allowing a Player to have multiple identifiers of the same type
2020-08-21 10:57:31 -06:00
Hammad Jutt
f05f69ddc2
Add rank to publicly exposed fields on Player object
2020-08-17 01:40:03 -06:00
Hammad Jutt
59a0e8f627
Hotfix migration
2020-08-16 01:52:54 -06:00
Hammad Jutt
e39aa189e3
Implement Player Ranks
2020-08-16 01:52:20 -06:00
Hammad Jutt
1840efc886
Setup Cron trigger to handle sourceCred Migration
2020-08-16 01:45:27 -06:00
Hammad Jutt
c27c77eb74
Setup handler to migrate SC ledger accounts to Database Players
2020-08-16 01:45:27 -06:00
Hammad Jutt
9b83f0c70d
Update Hasura to 1.3.0
2020-08-04 21:09:51 -06:00
Hammad Jutt
bf8489f1b4
Remove unused remote relationship
2020-08-04 21:09:51 -06:00
Pacien Boisson
790a0cc78c
using a remote schema instead of an action for getBoxProfile
2020-08-04 21:09:51 -06:00
Pacien Boisson
a60aa62a94
add ethereumAddress to getBoxProfile
2020-08-04 21:09:51 -06:00
Pacien Boisson
51a4eddbbd
added getBoxProfile action
2020-08-04 21:09:51 -06:00
Pacien Boisson
7b3b6c2f82
Add ethereum_address to Player model in order to get the box profile
2020-08-04 20:29:08 -06:00
Pacien Boisson
6e0f0c9b66
using a remote schema instead of an action for getBoxProfile
2020-08-04 20:29:08 -06:00
Pacien Boisson
af728ac53d
add ethereumAddress to getBoxProfile
2020-08-04 20:29:08 -06:00