Back to bouncer

SalesCandy Git archive

bouncer

Checks whether a lead submission duplicates one received in the previous five minutes.

README

This repository implements a bouncer service to check for duplicate lead submissions. It specifically validates if a new lead submission matches one received within the preceding five-minute window.

The service accepts lead submission data as input and outputs a boolean or status indicating whether the submission is a duplicate within the defined time frame. No external inputs are required beyond the submission data itself.

Selected files and folders

  • README.md
  • app
  • package.json
  • serverless.yml

Reconstructed issues

Summaries inferred from the archive. Original issue records are unavailable here.

Incorrect 5-minute window logic

The logic for determining a duplicate submission was flawed, potentially using an incorrect time range calculation. This change corrected the duration check to accurately reflect the required five-minute window.

150b3d3675a4

Initial 5-minute duplicate check implementation

The initial implementation for checking duplicates within a five-minute window was established. This commit laid the groundwork for the core functionality of preventing rapid, redundant lead submissions.

7a565339573f

Refining lead creation scope

The previous logic incorrectly scoped lead creation based on hourly hash file changes. This revision refined the scope to focus purely on the five-minute submission window, improving accuracy.

150b3d3675a4

Selected commits

  1. Update to use graviton and remove unnecessary logs

    Reza Rosli ·

    73e70f0c8c694941d152fea881ecd9aff2cbc986

  2. upgarde to nodejs14

    Ele ·

    4a49e4456d6fac49819f619cc32a6f4e4a987ef5

  3. clean up code smell

    Ele ·

    0806beef5405c586024ef26eb4127d5c54c0de18

  4. Add renovate.json

    Renovate Bot ·

    01512a24b9921a68b550a4796d54900e55d2d6c5

  5. setup sonarQube

    Ele ·

    2c6de869b9d23b0b87121786434ce1f02e5eb08e

  6. Fix wrong range for 5mins duration. only created lead when hash file change hour

    Ele ·

    150b3d3675a4305bc121fbd8c728a02e2437249c

  7. update description for bouncer

    Ele ·

    0ad9e60d95f58c36fca062b0c2b754e5aaeb7c28

  8. Change All value to use SSM variable call.

    Ele ·

    a0d44fdeb397097284dd38fe3d3044f157c32641

  9. remove handler mount efs to new lambda use return instead of callback

    Ele ·

    5f937891069d76e42f035d32f17cdc1fe544e32c

  10. Code review by Reza

    Ele ·

    0f61ca64ebe028110f32b124957e135ba155ba3c

  11. - check lead data create within 5 minutes - delete 2n++ hour folder keep 1st and 2nd hour - validate hash

    Ele ·

    7a565339573f77f63cefd33ba9b0307fc97844ae

  12. Update README.md

    Ele Elyiana ·

    9a42275eefdd8f7be2e122225e266e1cdf9b7487