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

Create transactions resource #92

Merged
merged 61 commits into from
Jan 30, 2022
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
d86d3c4
adds empty files/folders for transaction dto, create-transaction, con…
DXRovang Dec 1, 2021
bbadaff
imports TypeOrmModule and TransactionsRepository into transactions.mo…
DXRovang Dec 1, 2021
f01163b
begins filling in transactions.repository
DXRovang Dec 1, 2021
99105ed
adds basic columns to transaction.entity
DXRovang Dec 1, 2021
4cd9bf3
recreates transactions.repository
DXRovang Dec 1, 2021
ed96735
adds basic create-transaction.dto info and installs class-validator/c…
DXRovang Dec 1, 2021
97bd9ac
adds TransactionStatus
DXRovang Dec 1, 2021
9a21a28
establishes a create-transactions function
DXRovang Dec 4, 2021
ee66825
establishes a get-transactions function
DXRovang Dec 4, 2021
c2fd00e
establishes a get-transaction-byID function
DXRovang Dec 4, 2021
d4482ad
establishes a delete-transaction function
DXRovang Dec 4, 2021
19641b6
establishes an update-transaction function
DXRovang Dec 4, 2021
441161e
adds status to filterDto
DXRovang Dec 4, 2021
4f79002
provides a single filter (status) for getting transactions
DXRovang Dec 4, 2021
2fc3690
adds search function, commented out for later development
DXRovang Dec 4, 2021
41f020e
adds filter methods for all params
DXRovang Dec 5, 2021
42acf1d
adds GlobalPipes & ValidationPipe to main
DXRovang Dec 5, 2021
c628594
temp disables @IsEnum in get-transactions, adds custom mssg to create…
DXRovang Dec 5, 2021
09b06a3
changes all id types to number
DXRovang Dec 5, 2021
2435700
changes validation type for numbers, moves enum validation to create
DXRovang Dec 5, 2021
6ab802a
changes created_at to type Date
DXRovang Dec 5, 2021
9d9b551
cleans up repository
DXRovang Dec 5, 2021
54d42c4
imports User, Asset, and Organization into the Transaction Entity
DXRovang Dec 5, 2021
8835a93
adds int to @column
DXRovang Dec 5, 2021
0d2e15e
attempts to connect transaction.entity with user.entity
DXRovang Dec 5, 2021
e902ace
cleans up extraneous code
DXRovang Dec 5, 2021
00f977f
adds eager to relationships
DXRovang Dec 5, 2021
199059d
last commit before draft
DXRovang Dec 6, 2021
b2de999
adds custom get-user decorator
DXRovang Dec 7, 2021
9ded60e
adds user to transaction controller, service, and repo create methods
DXRovang Dec 7, 2021
83750f8
connects donater_user to transaction
DXRovang Dec 8, 2021
764645c
connects donater_organization to transactions
DXRovang Dec 8, 2021
3b21155
corrects name/type of donater_user & donater_organization, comments o…
DXRovang Dec 8, 2021
96cc2f0
attempts to connect assets to transactions
DXRovang Dec 8, 2021
8aad7e4
connects transactions with recipient
DXRovang Dec 9, 2021
edc2d1a
first attempt at updating asset from the createTransaction service
DXRovang Dec 9, 2021
1105b26
connects assets to transactions BECAUSE OF KEVIN!!!
DXRovang Dec 9, 2021
ccb6ac3
restores structure
DXRovang Dec 10, 2021
a48879f
restructures transaction resource to mirror other modules (#95)
DXRovang Dec 10, 2021
2ec09bc
reinitialized db after merge
DXRovang Dec 10, 2021
b971e75
gets rid of class-transformer dependency and unnecessary await in ser…
DXRovang Dec 17, 2021
2d23ab0
adds @JoinColumn to message and asset entities
DXRovang Dec 17, 2021
a537868
deletes eager from organiztion entity
DXRovang Dec 17, 2021
f179828
reinstalls class-transformer
DXRovang Jan 8, 2022
2d7ce19
deletes eager:true for now
DXRovang Jan 8, 2022
8de7f2b
adds @IsOptional to donater_organization
DXRovang Jan 8, 2022
355f91f
changes all @IsOptional to ?
DXRovang Jan 8, 2022
2613bff
cleans up some unused code, adds type to imports
DXRovang Jan 9, 2022
165390f
adds class-transformer to server
DXRovang Jan 9, 2022
84af5df
eliminates validator from get-dto
DXRovang Jan 12, 2022
cd14334
adds @IsOptional to create-dto
DXRovang Jan 12, 2022
83b9fd0
merge origin main
jd2rogers2 Jan 23, 2022
a87d72c
format
jd2rogers2 Jan 23, 2022
20224e2
fix tests (imports) and fix lints (unused filterDto)
jd2rogers2 Jan 23, 2022
f6dc030
clean up entity decorators, clean up dtos
jd2rogers2 Jan 23, 2022
26036ad
auto date in entity, make status optional so default is used
jd2rogers2 Jan 23, 2022
826dddf
remove unused import
jd2rogers2 Jan 23, 2022
3970102
use typeorm decorator for date col
jd2rogers2 Jan 26, 2022
68d1d25
use filtering correctly (with where) in service
jd2rogers2 Jan 29, 2022
fe39084
Merge branch 'main' of https://github.com/Nonprofit-Exchange-Hub/web-…
jd2rogers2 Jan 29, 2022
4e049f7
remove created date from dto
jd2rogers2 Jan 30, 2022
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
deletes eager from organiztion entity
  • Loading branch information
DXRovang committed Dec 17, 2021
commit a537868dc11312417df57f9c596af2948b352f0e
2 changes: 1 addition & 1 deletion server/src/organizations/entities/organization.entity.ts
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ export class Organization {
@Column('int')
tax_exempt_id: number;

@OneToMany(() => Transaction, (transaction)=> transaction.donater_organization || transaction.recipient, { eager: true})
@OneToMany(() => Transaction, (transaction)=> transaction.donater_organization || transaction.recipient)
transactions: Transaction[];

}