TEAM41CS2340 / BuzzFunds

Spring 2014 CS 2340 Team 41 Group Project
0 stars 1 forks source link

DB Transaction object update #3

Closed aschenoni closed 10 years ago

aschenoni commented 10 years ago

The new transaction object needs to look like this:

Transaction:
        ID (string)
        Name (string)
        Category (string)
        Type (string)
        Amount (double)
        CreationDate (string)
        EffectiveDate (string)

with a modified get url of:

/transaction?user=foo&account=foo-bar&id=a45b6066ad7716fc&name=Sample%20Deposit&amount=13.37&category=salary&type=d&insDate=2014-04-20&effDate=2014-04-20
aschenoni commented 10 years ago

@mischif in the transaction URL, you have id=a45b6066ad7716fc -- a hexadecimal ID. Where did this number come from? MongoDB comes up with an id for each object automatically (as a failsafe way to keep the objects unique no matter what), is this the id object you are representing? if so I recommend removing it from the URL, MongoDB makes these on its own

mischif commented 10 years ago

The id is generated on the client side because I thought we'd roll back transactions by deleting them from the server, but apparently I misunderstood what we needed to do in a rollback and the id field can be disregarded (at least, for now).