Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactors user data queries #98

Merged
merged 79 commits into from
Sep 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
ac57850
renames users table
xwilson03 Aug 3, 2024
6eb7a3c
moves registration data fields to user data
xwilson03 Aug 3, 2024
12691fa
moves all profile data into user data
xwilson03 Aug 3, 2024
bdc6d33
moves some user data into registration data
xwilson03 Aug 3, 2024
4e391d8
TEMP: removes migrations:apply step from build
xwilson03 Aug 3, 2024
a4a84ad
removes checkedIn from user data
xwilson03 Aug 3, 2024
e128066
organizes fields for user and reg data
xwilson03 Aug 3, 2024
0b01091
renames reg data to hacker data
xwilson03 Aug 3, 2024
1f1af2f
adds serial PK to user data
xwilson03 Aug 3, 2024
fe47e2a
shortens lengthy column names
xwilson03 Aug 3, 2024
4488f94
updates userdata-hackerdata relation name
xwilson03 Aug 3, 2024
b6f174b
renames booleans
xwilson03 Aug 3, 2024
4eaee36
updates package lock
xwilson03 Aug 3, 2024
01a10b8
changes naming convention for user data tables
xwilson03 Aug 3, 2024
9eeafa2
updates trivial instances of changed schema columns
xwilson03 Aug 3, 2024
f8760a9
removes commented references to old schema
xwilson03 Aug 3, 2024
34088c0
updates scanner checkin action
xwilson03 Aug 3, 2024
6a3fdc8
updates more trivial substitutions
xwilson03 Aug 4, 2024
fd75399
reverts serial id change
xwilson03 Aug 4, 2024
b1b25dd
fixes team members relation
xwilson03 Aug 4, 2024
5e8c1e6
adds db migration
xwilson03 Aug 4, 2024
1cb2689
updates checkin page
xwilson03 Aug 5, 2024
d118050
slightly refactors checkin
xwilson03 Aug 5, 2024
b61c3c9
updates user interface
xwilson03 Aug 5, 2024
11468ac
updates and simplifies admin user table component
xwilson03 Aug 5, 2024
aebcde3
restructures user type interface
xwilson03 Aug 6, 2024
1478e2e
updates server sections of admin user table
xwilson03 Aug 6, 2024
a70247a
adds commonData relation to hackerData
xwilson03 Aug 6, 2024
bb6ce86
updates team page
xwilson03 Aug 6, 2024
e4a9950
updates trivial schema references
xwilson03 Aug 6, 2024
5ffeffd
updates last known references
xwilson03 Aug 7, 2024
3d609b2
deletes unused code in event columns
xwilson03 Aug 7, 2024
5c8d395
replaces last profileData refs
xwilson03 Aug 7, 2024
209e243
updates pass scanner
xwilson03 Aug 7, 2024
0dff0ea
runs formatter
xwilson03 Aug 7, 2024
5d66688
Merge remote-tracking branch 'origin/dev' into feat/refactor-user-schema
xwilson03 Aug 11, 2024
6b620f9
fixes schoolID rename
xwilson03 Aug 13, 2024
6cd422a
patcches user section of admin panel
xwilson03 Aug 14, 2024
5c146bd
slightly refactors scanner code
xwilson03 Aug 14, 2024
73a92be
slightly simplifies leaveTeam action
xwilson03 Aug 14, 2024
5a5edad
fixes scanner page
xwilson03 Aug 15, 2024
45febfc
adjusts formatting
xwilson03 Aug 15, 2024
a277824
adjusts whitespace
xwilson03 Aug 15, 2024
2179bdb
fixes admin export
xwilson03 Aug 15, 2024
fc1e67a
reruns formatter
xwilson03 Aug 15, 2024
828e842
moves and renames schema types
xwilson03 Aug 10, 2024
6970cea
adds prepared getUser function
xwilson03 Aug 10, 2024
d6ab8f6
adds prepared getHacker function
xwilson03 Aug 10, 2024
33655d9
converts types to interfaces for intellisense
xwilson03 Aug 11, 2024
74db1ba
substitutes getUser across files
xwilson03 Aug 11, 2024
68abd1e
makes hacker team data optional
xwilson03 Aug 17, 2024
ba19c25
shortens admin scanner imports
xwilson03 Aug 17, 2024
083b576
removes withTeam default from getHacker
xwilson03 Aug 17, 2024
02756a1
integrates getHacker function
xwilson03 Aug 17, 2024
d65bad3
substitutes InferModel calls
xwilson03 Aug 17, 2024
53645f8
refactors scanner queries
xwilson03 Aug 18, 2024
2f92331
restructures helper functions
xwilson03 Aug 18, 2024
fee83c4
adds search by hackerTag to hacker functions
xwilson03 Aug 18, 2024
6542e91
adds user search by tag
xwilson03 Aug 18, 2024
6f5489d
adds getAllUsers function
xwilson03 Aug 18, 2024
5b1f104
adds getAllHackers functions
xwilson03 Aug 18, 2024
35c7f26
integrates getByTag functions
xwilson03 Aug 18, 2024
1c19eb6
integrates getAll functions
xwilson03 Aug 18, 2024
493b984
refactors admin checkin in-place
xwilson03 Aug 18, 2024
3a7bf22
adds team interface definition
xwilson03 Aug 20, 2024
c1b7e7c
runs formatter
xwilson03 Aug 22, 2024
dff44bf
moves invite relation to hacker data
xwilson03 Sep 8, 2024
82425a1
updates references to invite relation
xwilson03 Sep 8, 2024
a422b9b
trims schema imports
xwilson03 Sep 8, 2024
a8488a6
reruns formatter
xwilson03 Sep 8, 2024
b7393b4
merges latest 'feat/refactor-user-schema' changes
xwilson03 Sep 8, 2024
fc51ac1
comments out prepared functions
xwilson03 Sep 10, 2024
0803b8c
reruns formatter
xwilson03 Sep 10, 2024
aa8392b
Merge remote-tracking branch 'origin/dev' into chore/adds-user-query-…
christianhelp Sep 11, 2024
c1b8e70
updates formschema
christianhelp Sep 11, 2024
88a2997
updates lock file
christianhelp Sep 11, 2024
92993aa
updates scanner types
christianhelp Sep 11, 2024
eb28734
fixes import issue
christianhelp Sep 11, 2024
4461ad4
removes unused type
christianhelp Sep 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removes withTeam default from getHacker
xwilson03 committed Aug 17, 2024
commit 083b57604a2be39f2f672dde014a1dc0e6a4cbe6
2 changes: 1 addition & 1 deletion packages/db/functions.ts
Original file line number Diff line number Diff line change
@@ -27,6 +27,6 @@ const _getHackerAlone = db.query.userCommonData
with: { hackerData: true }
}).prepare("getHacker");

export function getHacker(clerkID: string, withTeam: boolean = false) : Promise<Hacker | undefined> {
export function getHacker(clerkID: string, withTeam: boolean) : Promise<Hacker | undefined> {
return (withTeam) ? _getHackerWithTeam.execute({_clerkID: clerkID}) : _getHackerAlone.execute({_clerkID: clerkID});
}