0.25.2 • Published 4 years ago
@random-guys/pro-vcs v0.25.2
pro-vcs
Database abstraction to simplify review request workflow
How to install
Run yarn add @random-guys/pro-vcs
How it works
TODO
- Less complex code
- Timestamps
- Introduction of transactions for better concurrency guarantees
- Arrange tests
- True data uniqueness by taking
object_stateinto consideration - proxy
ModelNotFounderrors frominplacemethods toInconsistentStateerror
Pending Tests
event.repocreate- object is in
createdstate prohubis notified- DB constraints are held
- object is in
createApproved- object is in
stablestate
- object is in
assertExists- throws
DuplicateModelErroronly when duplicate exists
- throws
get- return
frozenforcreated/updated/deletedwhen request is not from owner - return
stableobjects as is - patches objects for
updatedowners
- return
byQuery- same as
get - hides
createdobjects by default - shows
createdobjects onallowNew
- same as
all- same as
get - same as
byQuery
- same as
list- same as
all
- same as
update- updates
createdobjects - updates
updatedobjects - returns patched object
- sends patches to
prohubforcreatedobjects - sends patches to
prohubforupdatedobjects - throws
InvalidOperationfordeletedobjects - create a new update for a
stableobject - send a new event for
stableobjects - throws
InvalidOperationfor objects not owner by user
- updates
delete- sends close event to
prohubforcreatedobjects - sends close event to
prohubforupdatedobjects - sends close event to
prohubfordeletedobjects - undo
updatedobjects - undo
deletedobjects - deletes
createdevents - creates new
deletedevent forstableobjects - throws
InvalidOperationfor objects not owner by user
- sends close event to
merge- stabilises
createdobjects - stabilises
updatedobjects with the new data. i.e other users can now see the changes - obliterates
deletedobjects - throws
InvalidOperationforstableobjects - stabilises
createdwith additional updates - stabilises
updatedwith additional updates
- stabilises
reject- cleans up
createdobjects - reverts
updated/deletedobjects - throws
InvalidOperationforstableobjects - reverts
updatedwith additional updates
- cleans up
merge.apponApproveonRejectonChecks
0.25.2
4 years ago
0.25.1
5 years ago
0.25.0
5 years ago
0.24.2
5 years ago
0.24.1
5 years ago
0.24.0
5 years ago
0.23.0
5 years ago
0.22.1-rc.2
5 years ago
0.22.1-rc.1
5 years ago
0.22.0
5 years ago
0.21.2
5 years ago
0.21.1
5 years ago
0.21.0
5 years ago
0.20.2
5 years ago
0.20.1
5 years ago
0.20.0
5 years ago
0.19.1
5 years ago
0.19.0
5 years ago
0.18.2
6 years ago
0.18.1
6 years ago
0.18.0
6 years ago
0.17.0
6 years ago
0.16.0
6 years ago
0.15.1
6 years ago
0.15.0
6 years ago
0.14.0
6 years ago
0.13.0
6 years ago
0.12.0
6 years ago
0.11.3
6 years ago
0.11.2
6 years ago
0.11.1
6 years ago
0.10.2
6 years ago
0.10.1
6 years ago
0.10.0
6 years ago
0.9.0
6 years ago
0.8.2
6 years ago
0.8.1
6 years ago
0.8.0
6 years ago
0.7.3
6 years ago
0.7.2
6 years ago
0.7.1
6 years ago
0.7.0
6 years ago
0.6.0
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago