Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [DEV-7060] Set document in constructor of ElementStylerMark Goldsmith2020-02-191-6/+10
|
* [DEV-7060] Correct checkbox and noyes element ID retrievalMark Goldsmith2020-02-191-0/+150
|
* [DEV-6306] Access bucket data during rate eventAnthony Dalfonso2020-02-181-0/+175
| | | | | | | | When triggering a rate event, the handler was previously only able to use numeric values. It now processes string values by looking up the corresponding bucket value. Co-Authored-By: Austin Schaffer <austin.schaffer@ryansg.com>
* [DEV-6323] Send action to client for re-ratingShelly Shaver2020-02-032-0/+182
| | | | | | | | Delay action is sent if any raters have not completed rating and a re-try is needed. The __rate_pending count of pending suppliers is saved in ratedate and used to prevent post-rate messages from being processed by the delta processor.
* [DEV-6721] Pass canterm to individual ratersAustin Schaffer2020-01-312-0/+311
|
* [DEV-6325] Return previous rating results on rate callShelly Shaver2020-01-241-0/+56
|
* [DEV-6730] Store concluding_save with the reverse deltaAustin Schaffer2020-01-153-23/+29
|
* [DEV-6730] Post whether or not a save step will conclude the processAustin Schaffer2020-01-151-1/+6
|
* [DEV-6763] Include ratedata in data deltasAustin Schaffer2019-12-261-5/+20
|
* [DEV-6756] Prevent special chars from "local-part" of email addressJoseph Frazer2019-12-231-2/+13
| | | | | | | The `"(),:;<>@[\]`` are allowed in the "local-part" of an email address under certain circumstances, but our regex is not checking those circumstances. It is better if we do not allow them until we improve validation.
* [DEV-5312] Use milliseconds for timestampAustin Schaffer2019-12-191-1/+1
|
* [DEV-5312] Do not use Object.create when applying deltaAustin Schaffer2019-12-191-0/+6
|
* [DEV-6710] [WIP] Save environment on quote saveAustin Schaffer2019-12-191-3/+3
|
* [DEV-5312] Get delta processor program field from mongodbAustin Schaffer2019-12-182-1/+11
|
* [DEV-5312] Remove recursive avro schema and filter bucket keys starting with ↵Austin Schaffer2019-12-181-467/+59
| | | | two underscores
* [DEV-5312] Use formatted time when logging eventsAustin Schaffer2019-12-172-3/+3
|
* [DEV-5312] Log quote_id along with doc_idAustin Schaffer2019-12-172-6/+11
|
* [DEV-5312] Allow for arbitrary depth in bucket schemaAustin Schaffer2019-12-171-77/+527
|
* [DEV-5312] Create additional indexes and process less frequentlyAustin Schaffer2019-12-161-2/+6
|
* [DEV-5312] Define document meta data and restructure message writer.Austin Schaffer2019-12-126-477/+779
| | | | Add better tests for message writer
* DeltaProcessor: Correct delta applicationMike Gerwitz2019-12-121-85/+230
| | | | | | Deltas must be applied in reverse to reproduce the state of the bucket or rate data at that point in time, which is then paired with the delta that will transform it into the previous state.
* DeltaProcessor: Encapsulate getDeltas and remove redundant testsMike Gerwitz2019-12-121-123/+35
| | | | | | getDeltas should be encapsulated. It looks like it was public for the sake of the tests, and its behavior can be inferred by looking at the result of processing.
* DeltaProcessor: Remove redundant testsMike Gerwitz2019-12-121-146/+0
| | | | | These are covered by other tests and are testing too closely to the implementation. This should be encapsulated within the processor.
* EventMediator: Log error stack under contextMike Gerwitz2019-12-121-6/+12
|
* DeltaPublisher: Remove parsing from constructorMike Gerwitz2019-12-121-9/+67
|
* AvroFactory: Extract avro-js type definitions into src/typesMike Gerwitz2019-12-121-2/+3
| | | | | The declarations that were intended for the library were moved, but additional things that were outside of the library were kept in place.
* AmqpConnection: Propagate assertExchange promiseMike Gerwitz2019-12-121-0/+69
| | | | Failures were being ignored.
* [DEV-5312] Refactor class dependenciesAustin Schaffer2019-12-128-367/+776
| | | | Move create config functions out of the main delta-processor.ts file. Change some any types to more specific types. Define document structure better. Move prometheus logic out of processor class. Do not call logger directly, listen for events and log them. Change logger to more PSR-3 compliant style. Extract amqp connection into its own class. Create avro and mongo objects in factory.
* [DEV-5312] Add logic to apply delta to bucket then publish modified bucketAustin Schaffer2019-12-125-98/+627
|
* [DEV-5312] Generalize event subscribers and dispatchersAustin Schaffer2019-11-252-20/+17
|
* [DEV-5312] Reconnect AMQP when connection dropsAustin Schaffer2019-11-251-4/+2
|
* [DEV-5312] Add signal handling and prometheus monitoringAustin Schaffer2019-11-221-2/+4
|
* [DEV-5312] Call data-processor and instantiate classesAustin Schaffer2019-11-202-10/+327
|
* [DEV-5312] Add interface for amqp publisher and implement a delta publisherAustin Schaffer2019-11-122-2/+68
|
* [DEV-5312] Add preliminary processorAustin Schaffer2019-11-122-168/+299
|
* [DEV-5312] Add dao for deltasAustin Schaffer2019-11-121-0/+168
|
* bin/server: Convert to TypeScriptMike Gerwitz2019-11-121-28/+48
|
* [DEV-5312] Convert MongoServerDao to TSAustin Schaffer2019-11-117-260/+422
|
* [DEV-5312] Convert most parts of RatingService Publish to TSAustin Schaffer2019-11-112-1/+91
|
* [DEV-6353] Generate and save reverse deltas for ratingdata and step saveAustin Schaffer2019-11-071-19/+92
|
* [DEV-6353] Add function to create delta from one data set to anotherAustin Schaffer2019-11-071-0/+99
| | | | | The type of the delta must accomodate undefined and null values for array data, as well as null for a key value to represent removing a key
* [DEV-6353] Accept push data in MongoDaoAustin Schaffer2019-11-072-8/+75
|
* [DEV-6353] Get and set past rate dataAustin Schaffer2019-11-071-5/+5
|
* [DEV-6353] Add bucket definitionsAustin Schaffer2019-11-073-35/+92
|
* [DEV-6353] Convert DataProcessor to TSAustin Schaffer2019-11-072-417/+804
|
* RatingService: Fix initialRatedDate and lastRatedDate replyMike Gerwitz2019-10-311-1/+72
| | | | | Recent changes caused the quote to be read before it was mutated by _saveRatingData.
* RatingService#postProcessRaterData: Fix accidental indvRate changeMike Gerwitz2019-10-311-0/+46
| | | | | | | I accidentally changed id=>after when prototyping data for the _new_ deferred rating (not yet written). There were no tests for this code, which was originally written in July of 2012 (see private lovullo.git repo), so it was not caught until QA.
* RatingService: Improved error handlingMike Gerwitz2019-10-291-11/+98
| | | | This does only a slightly better job than before.
* RatingService: Return promiseMike Gerwitz2019-10-291-9/+35
| | | | | | This only replaces the callbacks at the highest level and starts to move toward proper error handling. The private methods do not yet properly propagate errors.
* RatingService: Save rating data to separate field (ratedata)Mike Gerwitz2019-10-291-2/+54
| | | | | | | | This adds ratedata to the quote collection. We use the existing saveQuote method so that this operation is atomic. We're also continuing to save to the bucket for now so as not to break existing code, but the intent in the future will be to remove all but necessary data that should be exposed to the client.